diff --git a/changelog.md b/changelog.md index 4be80064..b866f9d8 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,28 @@ +## Version 28.2.0 + +*Date: Wed Oct 02 2024* + +**Improvements** + +- **Sped up sorting animation in the Account Manager.** Raised by [#8760](https://github.com/tradingview/charting_library/issues/8760) `Trading Platform Only` + +## Version 28.2.0 + +*Date: Tue Oct 01 2024* + +**New Features** + +- **Added `Rank Correlation Index` indicator.** +- **Support building seconds bars from ticks.** Trading Platform now supports building seconds bars from ticks for symbols configured to support it. Compatible symbols must set the [`build_seconds_from_ticks`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#build_seconds_from_ticks) flag to `true`. Additionally, [`has_seconds`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#has_seconds) and [`has_ticks`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#has_ticks) must be `true`, and [`seconds_multipliers`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.LibrarySymbolInfo#seconds_multipliers) must be an empty array or only contain multipliers that the datafeed provides itself. `Trading Platform Only` + +**Improvements** + +- **Added an option to customize the default Volume MA calculation in the Volume indicator.** By default, the Volume MA, optionally plotted in the Volume indicator, used the SMA calculation. We have now introduced two additional options: EMA and WMA. +- **Added new event to `SubscribeEventsMap`.** The [`timeframe_interval`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.SubscribeEventsMap#timeframe_interval) event is triggered when the one of the bottom left intervals is selected or the [`setTimeFrame`](https://www.tradingview.com/charting-library-docs/latest/api/interfaces/Charting_Library.IChartWidgetApi#settimeframe) API is used. +- **Added a symbol change to MACD indicator.** It is now possible to change the targeted symbol when plotting MACD indicator without using the main series. ## Version 28.1.0 diff --git a/charting_library/bundles/ar.101.4517d8dd1585d66847fa.js b/charting_library/bundles/ar.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/ar.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/ar.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/ar.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/ar.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/ar.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/ar.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/ar.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/ar.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/ar.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/ar.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/ar.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/ar.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/ar.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/ar.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/ar.2238.d638344d73126d8add4d.js b/charting_library/bundles/ar.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/ar.2238.d638344d73126d8add4d.js rename to charting_library/bundles/ar.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/ar.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/ar.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/ar.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/ar.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/ar.2364.26e8b776a77b5171378c.js b/charting_library/bundles/ar.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/ar.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/ar.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/ar.2530.92a80ead64dfba712aee.js b/charting_library/bundles/ar.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/ar.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/ar.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/ar.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/ar.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/ar.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/ar.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/ar.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/ar.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/ar.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/ar.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/ar.359.0c687d4250a6e817ca07.js b/charting_library/bundles/ar.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/ar.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/ar.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/ar.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/ar.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/ar.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/ar.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/ar.4026.7fd0f0d599a897631492.js b/charting_library/bundles/ar.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/ar.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/ar.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/ar.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/ar.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/ar.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/ar.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/ar.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/ar.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/ar.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/ar.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/ar.4166.370b248aa3a4216cb655.js b/charting_library/bundles/ar.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/ar.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/ar.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/ar.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/ar.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/ar.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/ar.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/ar.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/ar.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/ar.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/ar.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/ar.5757.95d725830862fe7f95a6.js b/charting_library/bundles/ar.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/ar.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/ar.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/ar.6150.106e94ed53021dc4c472.js b/charting_library/bundles/ar.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/ar.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/ar.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/ar.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/ar.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/ar.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/ar.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/ar.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/ar.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/ar.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/ar.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/ar.6703.1743a792578849679683.js b/charting_library/bundles/ar.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/ar.6703.1743a792578849679683.js rename to charting_library/bundles/ar.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/ar.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/ar.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/ar.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/ar.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/ar.6822.2544321c5d68460201d9.js b/charting_library/bundles/ar.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/ar.6822.2544321c5d68460201d9.js rename to charting_library/bundles/ar.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/ar.711.d3421dced32340eeb9f4.js b/charting_library/bundles/ar.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/ar.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/ar.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/ar.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/ar.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/ar.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/ar.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/ar.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/ar.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/ar.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/ar.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/ar.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/ar.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/ar.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/ar.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/ar.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/ar.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/ar.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/ar.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/ar.877.587bafd928ddad2f966a.js b/charting_library/bundles/ar.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/ar.877.587bafd928ddad2f966a.js rename to charting_library/bundles/ar.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/ar.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/ar.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/ar.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/ar.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/ar.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/ar.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/ar.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/ar.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/ca_ES.101.4517d8dd1585d66847fa.js b/charting_library/bundles/ca_ES.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/ca_ES.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/ca_ES.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/ca_ES.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/ca_ES.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/ca_ES.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/ca_ES.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/ca_ES.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/ca_ES.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/ca_ES.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/ca_ES.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/ca_ES.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/ca_ES.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/ca_ES.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/ca_ES.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/ca_ES.2238.d638344d73126d8add4d.js b/charting_library/bundles/ca_ES.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/ca_ES.2238.d638344d73126d8add4d.js rename to charting_library/bundles/ca_ES.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/ca_ES.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/ca_ES.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/ca_ES.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/ca_ES.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/ca_ES.2364.26e8b776a77b5171378c.js b/charting_library/bundles/ca_ES.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/ca_ES.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/ca_ES.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/ca_ES.2530.92a80ead64dfba712aee.js b/charting_library/bundles/ca_ES.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/ca_ES.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/ca_ES.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/ca_ES.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/ca_ES.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/ca_ES.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/ca_ES.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/ca_ES.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/ca_ES.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/ca_ES.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/ca_ES.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/ca_ES.359.0c687d4250a6e817ca07.js b/charting_library/bundles/ca_ES.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/ca_ES.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/ca_ES.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/ca_ES.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/ca_ES.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/ca_ES.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/ca_ES.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/ca_ES.4026.7fd0f0d599a897631492.js b/charting_library/bundles/ca_ES.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/ca_ES.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/ca_ES.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/ca_ES.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/ca_ES.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/ca_ES.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/ca_ES.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/ca_ES.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/ca_ES.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/ca_ES.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/ca_ES.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/ca_ES.4166.370b248aa3a4216cb655.js b/charting_library/bundles/ca_ES.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/ca_ES.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/ca_ES.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/ca_ES.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/ca_ES.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/ca_ES.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/ca_ES.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/ca_ES.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/ca_ES.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/ca_ES.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/ca_ES.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/ca_ES.5757.95d725830862fe7f95a6.js b/charting_library/bundles/ca_ES.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/ca_ES.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/ca_ES.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/ca_ES.6150.106e94ed53021dc4c472.js b/charting_library/bundles/ca_ES.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/ca_ES.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/ca_ES.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/ca_ES.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/ca_ES.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/ca_ES.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/ca_ES.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/ca_ES.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/ca_ES.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/ca_ES.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/ca_ES.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/ca_ES.6703.1743a792578849679683.js b/charting_library/bundles/ca_ES.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/ca_ES.6703.1743a792578849679683.js rename to charting_library/bundles/ca_ES.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/ca_ES.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/ca_ES.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/ca_ES.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/ca_ES.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/ca_ES.6822.2544321c5d68460201d9.js b/charting_library/bundles/ca_ES.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/ca_ES.6822.2544321c5d68460201d9.js rename to charting_library/bundles/ca_ES.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/ca_ES.711.d3421dced32340eeb9f4.js b/charting_library/bundles/ca_ES.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/ca_ES.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/ca_ES.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/ca_ES.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/ca_ES.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/ca_ES.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/ca_ES.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/ca_ES.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/ca_ES.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/ca_ES.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/ca_ES.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/ca_ES.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/ca_ES.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/ca_ES.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/ca_ES.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/ca_ES.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/ca_ES.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/ca_ES.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/ca_ES.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/ca_ES.877.587bafd928ddad2f966a.js b/charting_library/bundles/ca_ES.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/ca_ES.877.587bafd928ddad2f966a.js rename to charting_library/bundles/ca_ES.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/ca_ES.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/ca_ES.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/ca_ES.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/ca_ES.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/ca_ES.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/ca_ES.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/ca_ES.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/ca_ES.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/cs.101.4517d8dd1585d66847fa.js b/charting_library/bundles/cs.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/cs.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/cs.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/cs.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/cs.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/cs.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/cs.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/cs.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/cs.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/cs.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/cs.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/cs.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/cs.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/cs.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/cs.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/cs.2238.d638344d73126d8add4d.js b/charting_library/bundles/cs.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/cs.2238.d638344d73126d8add4d.js rename to charting_library/bundles/cs.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/cs.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/cs.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/cs.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/cs.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/cs.2364.26e8b776a77b5171378c.js b/charting_library/bundles/cs.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/cs.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/cs.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/cs.2530.92a80ead64dfba712aee.js b/charting_library/bundles/cs.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/cs.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/cs.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/cs.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/cs.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/cs.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/cs.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/cs.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/cs.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/cs.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/cs.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/cs.359.0c687d4250a6e817ca07.js b/charting_library/bundles/cs.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/cs.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/cs.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/cs.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/cs.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/cs.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/cs.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/cs.4026.7fd0f0d599a897631492.js b/charting_library/bundles/cs.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/cs.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/cs.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/cs.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/cs.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/cs.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/cs.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/cs.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/cs.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/cs.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/cs.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/cs.4166.370b248aa3a4216cb655.js b/charting_library/bundles/cs.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/cs.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/cs.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/cs.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/cs.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/cs.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/cs.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/cs.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/cs.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/cs.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/cs.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/cs.5757.95d725830862fe7f95a6.js b/charting_library/bundles/cs.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/cs.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/cs.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/cs.6150.106e94ed53021dc4c472.js b/charting_library/bundles/cs.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/cs.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/cs.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/cs.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/cs.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/cs.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/cs.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/cs.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/cs.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/cs.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/cs.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/cs.6703.1743a792578849679683.js b/charting_library/bundles/cs.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/cs.6703.1743a792578849679683.js rename to charting_library/bundles/cs.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/cs.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/cs.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/cs.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/cs.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/cs.6822.2544321c5d68460201d9.js b/charting_library/bundles/cs.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/cs.6822.2544321c5d68460201d9.js rename to charting_library/bundles/cs.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/cs.711.d3421dced32340eeb9f4.js b/charting_library/bundles/cs.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/cs.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/cs.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/cs.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/cs.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/cs.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/cs.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/cs.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/cs.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/cs.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/cs.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/cs.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/cs.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/cs.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/cs.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/cs.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/cs.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/cs.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/cs.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/cs.877.587bafd928ddad2f966a.js b/charting_library/bundles/cs.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/cs.877.587bafd928ddad2f966a.js rename to charting_library/bundles/cs.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/cs.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/cs.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/cs.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/cs.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/cs.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/cs.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/cs.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/cs.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/custom-themes-api.04a666b53959a4b9f24c.js b/charting_library/bundles/custom-themes-api.04a666b53959a4b9f24c.js deleted file mode 100644 index b8d6baa5..00000000 --- a/charting_library/bundles/custom-themes-api.04a666b53959a4b9f24c.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2413],{20688:(o,r,l)=>{l.r(r),l.d(r,{CustomThemesApi:()=>t});var c=l(57626),e=l(36986);class t{async applyCustomThemes(o){const r=(0,e.getChartingLibraryGlobalContext)(),l=r.tradingViewApi.themes().getCurrentThemeName();(0,c.overrideStandardThemes)(o),await r.tradingViewApi.themes().setStdTheme(l,void 0,!0)}async resetCustomThemes(){const o=(0,e.getChartingLibraryGlobalContext)(),r=o.tradingViewApi.themes().getCurrentThemeName();(0,c.restoreStandardThemes)(),await o.tradingViewApi.themes().setStdTheme(r,void 0,!0)}}},57626:(o,r,l)=>{l.r(r),l.d(r,{addCustomThemesRootClass:()=>$,overrideStandardThemes:()=>L,removeCustomThemesRootClass:()=>A,restoreStandardThemes:()=>O});var c=l(30551),e=l(26843),t=l(85662) -;const a=JSON.parse('{"color-background-primary":"color-white","color-background-secondary":"color-cold-gray-50","color-background-tertiary":"color-cold-gray-100","color-background-dark-primary":"color-cold-gray-800","color-background-dark-secondary":"color-white","color-background-disabled":"color-cold-gray-150","color-background-special-primary":"color-white","color-background-special-secondary":"color-tv-blue-50","color-background-special-tertiary":"color-tv-blue-100","color-background-page-platform":"color-white","color-background-page-promo":"color-black","color-background-page-social":"color-white","color-background-dialog-simple":"color-white","color-background-dialog-complicated":"color-white","color-background-dialog-promo":"color-white","color-background-dialog-fullscreen":"color-white","color-content-icons-primary":"color-cold-gray-900","color-content-icons-secondary":"color-cold-gray-550","color-content-icons-tertiary":"color-cold-gray-300","color-content-text-promo-primary":"color-white","color-content-text-promo-secondary":"color-cold-gray-200","color-content-text-promo-tertiary":"color-cold-gray-450","color-content-text-social-primary":"color-cold-gray-900","color-content-text-social-secondary":"color-cold-gray-550","color-content-text-social-tertiary":"color-cold-gray-300","color-divider-line-primary-special":"color-cold-gray-900","color-divider-line-secondary-special":"color-tv-blue-100","color-divider-line-primary":"color-cold-gray-150","color-divider-line-secondary":"color-cold-gray-100","color-link-primary-default":"color-tv-blue-500","color-link-primary-hover":"color-tv-blue-600","color-link-primary-active":"color-tv-blue-700","color-link-secondary-default":"color-tv-blue-300","color-link-secondary-hover":"color-tv-blue-400","color-link-secondary-active":"color-tv-blue-500","color-static-transparent":"color-transparent","color-static-warning":"color-tan-orange-500","color-static-danger":"color-ripe-red-500","color-static-highlight":"color-tv-blue-50","color-static-neutral":"color-cold-gray-550","color-static-success":"color-minty-green-500","color-button-content-disabled":"color-cold-gray-300","color-button-content-ghost-neutral-bold-default":"color-cold-gray-900","color-button-content-ghost-neutral-bold-hover":"color-cold-gray-900","color-button-content-ghost-neutral-bold-active":"color-white","color-button-content-ghost-accent-default":"color-tv-blue-500","color-button-content-ghost-accent-hover":"color-tv-blue-500","color-button-content-ghost-accent-active":"color-white","color-button-content-ghost-neutral-default":"color-cold-gray-900","color-button-content-ghost-neutral-hover":"color-cold-gray-900","color-button-content-ghost-neutral-active":"color-cold-gray-900","color-button-content-ghost-neutral-is-selected":"color-cold-gray-900","color-button-content-primary-neutral-bold-default":"color-white","color-button-content-primary-neutral-bold-hover":"color-white","color-button-content-primary-neutral-bold-active":"color-white","color-button-content-primary-accent-default":"color-white","color-button-content-primary-accent-hover":"color-white","color-button-content-primary-accent-active":"color-white","color-button-content-primary-neutral-default":"color-cold-gray-900","color-button-content-primary-neutral-hover":"color-cold-gray-900","color-button-content-primary-neutral-active":"color-cold-gray-900","color-button-content-primary-neutral-is-selected":"color-cold-gray-900","color-button-content-primary-success-default":"color-white","color-button-content-primary-success-hover":"color-white","color-button-content-primary-success-active":"color-white","color-button-content-primary-accent-light-default":"color-tv-blue-600","color-button-content-primary-accent-light-hover":"color-tv-blue-600","color-button-content-primary-accent-light-active":"color-tv-blue-600","color-button-content-primary-accent-light-is-selected":"color-tv-blue-600","color-button-content-primary-danger-default":"color-white","color-button-content-primary-danger-hover":"color-white","color-button-content-primary-danger-active":"color-white","color-button-content-quiet-primary-neutral-bold-default":"color-cold-gray-900","color-button-content-quiet-primary-neutral-bold-hover":"color-white","color-button-content-quiet-primary-neutral-bold-active":"color-white","color-button-content-quiet-primary-neutral-default":"color-cold-gray-900","color-button-content-quiet-primary-neutral-hover":"color-cold-gray-900","color-button-content-quiet-primary-neutral-active":"color-cold-gray-900","color-button-content-quiet-primary-neutral-is-selected":"color-cold-gray-900","color-button-content-quiet-primary-accent-light-default":"color-tv-blue-500","color-button-content-quiet-primary-accent-light-hover":"color-tv-blue-500","color-button-content-quiet-primary-accent-light-active":"color-tv-blue-500","color-button-content-secondary-neutral-bold-default":"color-cold-gray-900","color-button-content-secondary-neutral-bold-hover":"color-white","color-button-content-secondary-neutral-bold-active":"color-white","color-button-content-secondary-accent-default":"color-tv-blue-500","color-button-content-secondary-accent-hover":"color-white","color-button-content-secondary-accent-active":"color-white","color-button-content-secondary-neutral-default":"color-cold-gray-900","color-button-content-secondary-neutral-hover":"color-cold-gray-900","color-button-content-secondary-neutral-active":"color-cold-gray-900","color-button-content-secondary-neutral-is-selected":"color-cold-gray-900","color-button-content-secondary-success-default":"color-minty-green-500","color-button-content-secondary-success-hover":"color-white","color-button-content-secondary-success-active":"color-white","color-button-content-secondary-accent-light-default":"color-tv-blue-600","color-button-content-secondary-accent-light-hover":"color-tv-blue-600","color-button-content-secondary-accent-light-active":"color-tv-blue-600","color-button-content-secondary-accent-light-is-selected":"color-tv-blue-600","color-button-content-secondary-danger-default":"color-ripe-red-500","color-button-content-secondary-danger-hover":"color-white","color-button-content-secondary-danger-active":"color-white","color-button-fill&border-disabled":"color-cold-gray-150","color-button-fill&border-ghost-neutral-bold-default":"color-static-transparent","color-button-fill&border-ghost-neutral-bold-hover":"color-cold-gray-800","color-button-fill&border-ghost-neutral-bold-active":"color-cold-gray-700","color-button-fill&border-ghost-accent-default":"color-static-transparent","color-button-fill&border-ghost-accent-hover":"color-tv-blue-500","color-button-fill&border-ghost-accent-active":"color-tv-blue-700","color-button-fill&border-ghost-neutral-default":"color-static-transparent","color-button-fill&border-ghost-neutral-hover":"color-cold-gray-100","color-button-fill&border-ghost-neutral-active":"color-cold-gray-150","color-button-fill&border-ghost-neutral-is-selected":"color-static-transparent","color-button-fill&border-ghost-accent-light-default":"color-static-transparent","color-button-fill&border-ghost-accent-light-hover":"color-tv-blue-100","color-button-fill&border-ghost-accent-light-active":"color-tv-blue-200","color-button-fill&border-ghost-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-primary-neutral-bold-default":"color-cold-gray-900","color-button-fill&border-primary-neutral-bold-hover":"color-cold-gray-800","color-button-fill&border-primary-neutral-bold-active":"color-cold-gray-700","color-button-fill&border-primary-accent-default":"color-tv-blue-500","color-button-fill&border-primary-accent-hover":"color-tv-blue-600","color-button-fill&border-primary-accent-active":"color-tv-blue-700","color-button-fill&border-primary-neutral-default":"color-cold-gray-100","color-button-fill&border-primary-neutral-hover":"color-cold-gray-150","color-button-fill&border-primary-neutral-active":"color-cold-gray-200","color-button-fill&border-primary-neutral-is-selected":"color-cold-gray-100","color-button-fill&border-primary-success-default":"color-minty-green-500","color-button-fill&border-primary-success-hover":"color-minty-green-600","color-button-fill&border-primary-success-active":"color-minty-green-700","color-button-fill&border-primary-accent-light-default":"color-tv-blue-50","color-button-fill&border-primary-accent-light-hover":"color-tv-blue-100","color-button-fill&border-primary-accent-light-active":"color-tv-blue-200","color-button-fill&border-primary-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-primary-danger-default":"color-ripe-red-500","color-button-fill&border-primary-danger-hover":"color-ripe-red-600","color-button-fill&border-primary-danger-active":"color-ripe-red-700","color-button-fill&border-quiet-primary-neutral-bold-default":"color-white","color-button-fill&border-quiet-primary-neutral-bold-hover":"color-cold-gray-900","color-button-fill&border-quiet-primary-neutral-bold-active":"color-cold-gray-800","color-button-fill&border-quiet-primary-accent-default":"color-white","color-button-fill&border-quiet-primary-accent-hover":"color-tv-blue-500","color-button-fill&border-quiet-primary-accent-active":"color-tv-blue-600","color-button-fill&border-quiet-primary-neutral-default":"color-white","color-button-fill&border-quiet-primary-neutral-hover":"color-cold-gray-100","color-button-fill&border-quiet-primary-neutral-active":"color-cold-gray-150","color-button-fill&border-quiet-primary-neutral-is-selected":"color-cold-gray-100","color-button-fill&border-quiet-primary-success-default":"color-white","color-button-fill&border-quiet-primary-success-hover":"color-minty-green-500","color-button-fill&border-quiet-primary-success-active":"color-minty-green-600","color-button-fill&border-quiet-primary-accent-light-default":"color-white","color-button-fill&border-quiet-primary-accent-light-hover":"color-tv-blue-50","color-button-fill&border-quiet-primary-accent-light-active":"color-tv-blue-100","color-button-fill&border-quiet-primary-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-quiet-primary-danger-default":"color-white","color-button-fill&border-quiet-primary-danger-hover":"color-ripe-red-500","color-button-fill&border-quiet-primary-danger-active":"color-ripe-red-600","color-button-fill&border-secondary-neutral-bold-default":"color-cold-gray-900","color-button-fill&border-secondary-neutral-bold-hover":"color-cold-gray-800","color-button-fill&border-secondary-neutral-bold-active":"color-cold-gray-700","color-button-fill&border-secondary-accent-default":"color-tv-blue-500","color-button-fill&border-secondary-accent-hover":"color-tv-blue-600","color-button-fill&border-secondary-accent-active":"color-tv-blue-700","color-button-fill&border-secondary-neutral-default":"color-cold-gray-150","color-button-fill&border-secondary-neutral-hover":"color-cold-gray-100","color-button-fill&border-secondary-neutral-active":"color-cold-gray-150","color-button-fill&border-secondary-neutral-is-selected":"color-cold-gray-100","color-button-fill&border-secondary-success-default":"color-minty-green-500","color-button-fill&border-secondary-success-hover":"color-minty-green-600","color-button-fill&border-secondary-success-active":"color-minty-green-700","color-button-fill&border-secondary-accent-light-default":"color-tv-blue-50","color-button-fill&border-secondary-accent-light-hover":"color-tv-blue-100","color-button-fill&border-secondary-accent-light-active":"color-tv-blue-200","color-button-fill&border-secondary-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-secondary-danger-default":"color-ripe-red-500","color-button-fill&border-secondary-danger-hover":"color-ripe-red-600","color-button-fill&border-secondary-danger-active":"color-ripe-red-700","color-text-field-border-default":"color-cold-gray-200","color-text-field-border-hover":"color-cold-gray-350","color-text-field-border-active":"color-tv-blue-500","color-text-field-border-disabled":"color-cold-gray-200","color-text-field-border-error":"color-ripe-red-500","color-text-field-border-focus-not-active":"color-tv-blue-500","color-text-field-border-focus-read-only":"color-tv-blue-500","color-text-field-border-read-only":"color-cold-gray-200","color-text-field-border-success":"color-minty-green-500","color-text-field-border-warning":"color-tan-orange-500","color-text-field-border-with-value":"color-cold-gray-200","color-text-field-description-default":"color-cold-gray-550","color-text-field-description-error":"color-ripe-red-500","color-text-field-description-success":"color-minty-green-500","color-text-field-description-warning":"color-tan-orange-500","color-text-field-fill-default":"color-static-transparent","color-text-field-fill-disabled":"color-cold-gray-100","color-text-field-fill-focus-read-only":"color-cold-gray-50","color-text-field-fill-read-only":"color-cold-gray-50","color-text-field-label-default":"color-cold-gray-550","color-text-field-label-error":"color-ripe-red-500","color-text-field-label-link":"color-tv-blue-500","color-text-field-label-success":"color-minty-green-500","color-text-field-label-warning":"color-tan-orange-500","color-text-field-left-slot-icon-default":"color-cold-gray-550","color-text-field-left-slot-icon-disabled":"color-cold-gray-350","color-text-field-placeholder-default":"color-cold-gray-550","color-text-field-placeholder-disabled":"color-cold-gray-350","color-text-field-right-slot-arrows-bg-default":"color-static-transparent","color-text-field-right-slot-arrows-bg-hover":"color-cold-gray-100","color-text-field-right-slot-arrows-bg-active":"color-cold-gray-150","color-text-field-right-slot-icons-and-text-default":"color-cold-gray-550","color-text-field-right-slot-icons-and-text-disabled":"color-cold-gray-350","color-text-field-right-slot-icons-and-text-active":"color-cold-gray-900","color-text-field-right-slot-icons-and-text-error":"color-ripe-red-500","color-text-field-right-slot-icons-and-text-hover":"color-cold-gray-900","color-text-field-value-default":"color-cold-gray-900","color-text-field-value-disabled":"color-cold-gray-550","color-counter-fill-danger":"color-ripe-red-500","color-counter-content-danger":"color-white","color-counter-fill-accent":"color-tv-blue-500","color-counter-content-accent":"color-white","color-counter-fill-accent-light":"color-tv-blue-50","color-counter-content-accent-light":"color-tv-blue-600","color-counter-fill-neutral-bold":"color-black","color-counter-content-neutral-bold":"color-white","color-counter-fill-neutral":"color-cold-gray-100","color-counter-content-neutral":"color-cold-gray-900","color-counter-border-primary":"color-white","color-counter-border-secondary":"color-white","color-counter-border-tertiary":"color-white","color-filter-select-fill&border-checked-default":"color-tv-blue-50","color-filter-select-fill&border-checked-hover":"color-tv-blue-100","color-filter-select-fill&border-checked-active":"color-tv-blue-200","color-filter-select-fill&border-checked-isOpened":"color-tv-blue-100","color-filter-select-content-checked-accent-default":"color-tv-blue-600","color-filter-select-content-checked-accent-hover":"color-tv-blue-600","color-filter-select-content-checked-accent-active":"color-tv-blue-600","color-filter-select-content-checked-neutral-default":"color-cold-gray-900","color-filter-select-content-checked-neutral-hover":"color-cold-gray-900","color-filter-select-content-checked-neutral-active":"color-cold-gray-900","color-filter-select-fill&border-not-checked-default":"color-cold-gray-150","color-filter-select-fill&border-not-checked-hover":"color-cold-gray-100","color-filter-select-fill&border-not-checked-active":"color-cold-gray-150","color-filter-select-fill&border-not-checked-isOpened":"color-cold-gray-100","color-filter-select-content-not-checked-default":"color-cold-gray-550","color-filter-select-content-not-checked-hover":"color-cold-gray-550","color-filter-select-content-not-checked-active":"color-cold-gray-550","color-symbol-change-positive":"color-minty-green-600","color-symbol-change-neutral":"color-cold-gray-900","color-symbol-change-negative":"color-ripe-red-600","color-symbol-rating-positive":"color-minty-green-600","color-symbol-rating-neutral":"color-cold-gray-550","color-symbol-rating-negative":"color-ripe-red-600","color-other-transparent":"color-transparent","color-shadow-primary-neutral-extra-heavy":"#00000033","color-shadow-primary-neutral-light":"color-cold-gray-150","color-shadow-secondary-neutral-light":"color-cold-gray-150","color-other-modal-background":"#9598a180","color-other-shadow-primary-neutral-extra-heavy":"#00000033","color-other-shadow-primary-neutral-light":"color-cold-gray-150","color-other-shadow-secondary-neutral-light":"color-cold-gray-150","color-background-primary-accent-extra-light":"color-tv-blue-50","color-background-primary-accent-light":"color-tv-blue-100","color-background-primary-inverse":"color-white","color-background-primary-neutral-bold":"color-cold-gray-800","color-background-primary-neutral-extra-heavy":"color-black","color-background-primary-neutral-extra-light":"color-cold-gray-50","color-background-primary-neutral-light":"color-cold-gray-100","color-background-primary-neutral-normal":"color-cold-gray-150","color-background-secondary-inverse":"color-white","color-background-tertiary-inverse":"color-white","color-container-fill-primary-accent":"color-tv-blue-500","color-container-fill-primary-accent-bold":"color-tv-blue-700","color-container-fill-primary-accent-extra-light":"color-tv-blue-50","color-container-fill-primary-accent-light":"color-tv-blue-100","color-container-fill-primary-accent-normal":"color-tv-blue-200","color-container-fill-primary-accent-semi-bold":"color-tv-blue-600","color-container-fill-primary-accent-alt1-normal":"color-deep-blue-a400","color-container-fill-primary-accent-alt2-bold":"color-sky-blue-700","color-container-fill-primary-danger":"color-ripe-red-500","color-container-fill-primary-danger-bold":"color-ripe-red-700","color-container-fill-primary-danger-extra-light":"color-ripe-red-50","color-container-fill-primary-danger-light":"color-ripe-red-100","color-container-fill-primary-danger-normal":"color-ripe-red-200","color-container-fill-primary-danger-semi-bold":"color-ripe-red-600","color-container-fill-primary-inverse":"color-white","color-container-fill-primary-neutral":"color-cold-gray-400","color-container-fill-primary-neutral-bold":"color-cold-gray-700","color-container-fill-primary-neutral-extra-bold":"color-cold-gray-800","color-container-fill-primary-neutral-extra-heavy":"color-black","color-container-fill-primary-neutral-extra-light":"color-cold-gray-100","color-container-fill-primary-neutral-heavy":"color-cold-gray-900","color-container-fill-primary-neutral-light":"color-cold-gray-150","color-container-fill-primary-neutral-normal":"color-cold-gray-200","color-container-fill-primary-neutral-thin":"color-cold-gray-50","color-container-fill-primary-neutral-medium":"color-cold-gray-550","color-container-fill-primary-success":"color-minty-green-500","color-container-fill-primary-success-bold":"color-minty-green-700","color-container-fill-primary-success-extra-light":"color-minty-green-50","color-container-fill-primary-success-light":"color-minty-green-100","color-container-fill-primary-success-normal":"color-minty-green-200","color-container-fill-primary-success-semi-bold":"color-minty-green-600","color-container-fill-primary-warning":"color-tan-orange-500","color-container-fill-primary-warning-bold":"color-tan-orange-700","color-container-fill-primary-warning-extra-light":"color-tan-orange-50","color-container-fill-primary-warning-light":"color-tan-orange-100","color-container-fill-primary-warning-normal":"color-tan-orange-200","color-container-fill-primary-warning-semi-bold":"color-tan-orange-600","color-container-fill-quaternary-inverse":"color-white","color-container-fill-secondary-accent-extra-light":"color-tv-blue-50","color-container-fill-secondary-accent-light":"color-tv-blue-100","color-container-fill-secondary-accent-normal":"color-tv-blue-200","color-container-fill-secondary-accent":"color-tv-blue-a400","color-container-fill-secondary-accent-semi-bold":"color-tv-blue-600","color-container-fill-secondary-inverse":"color-white","color-container-fill-secondary-neutral":"color-cold-gray-550","color-container-fill-secondary-neutral-extra-heavy":"color-black","color-container-fill-secondary-neutral-extra-light":"color-cold-gray-100","color-container-fill-secondary-neutral-heavy":"color-cold-gray-900","color-container-fill-secondary-neutral-light":"color-cold-gray-150","color-container-fill-secondary-neutral-normal":"color-cold-gray-300","color-container-fill-secondary-neutral-semi-bold":"color-cold-gray-600","color-container-fill-secondary-danger-bold":"color-ripe-red-700","color-container-fill-secondary-success-semi-bold":"color-minty-green-600","color-container-fill-secondary-warning-semi-bold":"color-tan-orange-600","color-container-fill-tertiary-accent":"color-tv-blue-a600","color-container-fill-tertiary-accent-bold":"color-tv-blue-a900","color-container-fill-tertiary-accent-light":"color-tv-blue-100","color-container-fill-tertiary-inverse":"color-white","color-container-fill-tertiary-neutral":"color-cold-gray-450","color-container-fill-tertiary-neutral-heavy":"color-cold-gray-900","color-container-fill-quinary-inverse":"color-white","color-content-primary-accent":"color-tv-blue-500","color-content-primary-accent-bold":"color-tv-blue-700","color-content-primary-accent-light":"color-tv-blue-300","color-content-primary-accent-normal":"color-tv-blue-400","color-content-primary-accent-semi-bold":"color-tv-blue-600","color-content-primary-accent-other-normal":"color-deep-blue-a400","color-content-primary-accent-other-bold":"color-sky-blue-700","color-content-primary-attention":"color-banana-yellow-700","color-content-primary-danger":"color-ripe-red-500","color-content-primary-danger-bold":"color-ripe-red-700","color-content-primary-danger-semi-bold":"color-ripe-red-600","color-content-primary-inverse":"color-white","color-content-primary-negative":"color-ripe-red-600","color-content-primary-neutral":"color-cold-gray-550","color-content-primary-neutral-bold":"color-cold-gray-900","color-content-primary-neutral-extra-light":"color-cold-gray-200","color-content-primary-neutral-light":"color-cold-gray-300","color-content-primary-neutral-normal":"color-cold-gray-450","color-content-primary-neutral-semi-bold":"color-cold-gray-700","color-content-primary-positive":"color-minty-green-600","color-content-primary-success":"color-minty-green-500","color-content-primary-success-bold":"color-minty-green-700","color-content-primary-success-semi-bold":"color-minty-green-600","color-content-primary-warning":"color-tan-orange-500","color-content-primary-warning-bold":"color-tan-orange-700","color-content-primary-warning-semi-bold":"color-tan-orange-600","color-content-secondary-accent":"color-tv-blue-500","color-content-secondary-accent-semi-bold":"color-tv-blue-600","color-content-secondary-inverse":"color-white","color-content-secondary-neutral":"color-cold-gray-650","color-content-secondary-neutral-bold":"color-cold-gray-900","color-content-secondary-neutral-medium":"color-cold-gray-750","color-content-secondary-neutral-semi-bold":"color-cold-gray-850","color-content-secondary-warning-semi-bold":"color-tan-orange-600","color-content-secondary-success-semi-bold":"color-minty-green-600","color-content-tertiary-accent":"color-tv-blue-500","color-content-tertiary-accent-bold":"color-tv-blue-700","color-content-tertiary-accent-semi-bold":"color-tv-blue-600","color-content-tertiary-inverse":"color-white","color-content-quaternary-accent":"color-tv-blue-a400","color-content-quaternary-accent-semi-bold":"color-tv-blue-600","color-content-quinary-accent":"color-tv-blue-500","color-content-quinary-accent-semi-bold":"color-tv-blue-600","color-content-quinary-accent-bold":"color-tv-blue-700","color-border-primary-accent":"color-tv-blue-500","color-border-primary-accent-extra-light":"color-tv-blue-50","color-border-primary-danger":"color-ripe-red-500","color-border-primary-inverse":"color-white","color-border-primary-neutral":"color-cold-gray-350","color-border-primary-neutral-bold":"color-cold-gray-650","color-border-primary-neutral-extra-bold":"color-cold-gray-900","color-border-primary-neutral-extra-heavy":"color-black","color-border-primary-neutral-light":"color-cold-gray-150","color-border-primary-neutral-normal":"color-cold-gray-200","color-border-primary-neutral-semi-bold":"color-cold-gray-550","color-border-primary-success":"color-minty-green-500","color-border-primary-warning":"color-tan-orange-500","color-border-secondary-inverse":"color-white","color-border-secondary-neutral":"color-cold-gray-300","color-border-secondary-neutral-normal":"color-cold-gray-200","color-border-tertiary-inverse":"color-white","color-border-primary-neutral-extra-light":"color-cold-gray-100","color-overlay-accent-1-light":"#2962ff26","color-overlay-accent-1-normal":"#2962ff4d","color-overlay-accent-1-bold":"#2962ff66","color-overlay-accent-2-light":"#00acc126","color-overlay-accent-2-normal":"#00acc14d","color-overlay-accent-2-bold":"#00acc166","color-overlay-accent-3-light":"#9c27b026","color-overlay-accent-3-normal":"#9c27b04d","color-overlay-accent-3-bold":"#9c27b066","color-overlay-accent-4-light":"#5e35b126","color-overlay-accent-4-normal":"#5e35b14d","color-overlay-accent-4-bold":"#5e35b166","color-overlay-negative-1-light":"#cc2f3c26","color-overlay-negative-1-normal":"#cc2f3c4d","color-overlay-negative-1-bold":"#cc2f3c66","color-overlay-negative-2-light":"#e91e6326","color-overlay-negative-2-normal":"#e91e634d","color-overlay-negative-2-bold":"#e91e6366","color-overlay-neutral-1-light":"#5d606b26","color-overlay-neutral-1-normal":"#5d606b4d","color-overlay-neutral-1-bold":"#5d606b66","color-overlay-neutral-2-light":"#00000026","color-overlay-neutral-2-normal":"#0000004d","color-overlay-neutral-2-bold":"#00000066","color-overlay-positive-1-light":"#08998126","color-overlay-positive-1-normal":"#0899814d","color-overlay-positive-1-bold":"#08998166","color-overlay-positive-2-light":"#08995026","color-overlay-positive-2-normal":"#0899504d","color-overlay-positive-2-bold":"#08995066","color-overlay-positive-3-light":"#43a04726","color-overlay-positive-3-normal":"#43a0474d","color-overlay-positive-3-bold":"#43a04766","color-overlay-warning-1-light":"#ff980026","color-overlay-warning-1-normal":"#ff98004d","color-overlay-warning-1-bold":"#ff980066","color-overlay-warning-2-light":"#fdd83526","color-overlay-warning-2-normal":"#fdd8354d","color-overlay-warning-2-bold":"#fdd83566"}'),n=JSON.parse('{"color-background-primary":"color-black","color-background-secondary":"color-cold-gray-850","color-background-tertiary":"color-cold-gray-800","color-background-dark-primary":"color-cold-gray-700","color-background-dark-secondary":"color-cold-gray-850","color-background-disabled":"color-cold-gray-750","color-background-special-primary":"color-black","color-background-special-secondary":"color-tv-blue-a900","color-background-special-tertiary":"color-tv-blue-a800","color-background-page-platform":"color-cold-gray-900","color-background-page-promo":"color-black","color-background-page-social":"color-black","color-background-dialog-simple":"color-cold-gray-850","color-background-dialog-complicated":"color-cold-gray-850","color-background-dialog-promo":"color-cold-gray-850","color-background-dialog-fullscreen":"color-black","color-content-icons-primary":"color-cold-gray-200","color-content-icons-secondary":"color-cold-gray-450","color-content-icons-tertiary":"color-cold-gray-650","color-content-text-promo-primary":"color-white","color-content-text-promo-secondary":"color-cold-gray-200","color-content-text-promo-tertiary":"color-cold-gray-450","color-content-text-social-primary":"color-cold-gray-200","color-content-text-social-secondary":"color-cold-gray-450","color-content-text-social-tertiary":"color-cold-gray-650","color-divider-line-primary-special":"color-tv-blue-200","color-divider-line-secondary-special":"color-tv-blue-a800","color-divider-line-primary":"color-cold-gray-750","color-divider-line-secondary":"color-cold-gray-800","color-link-primary-default":"color-tv-blue-300","color-link-primary-hover":"color-tv-blue-400","color-link-primary-active":"color-tv-blue-500","color-link-secondary-default":"color-tv-blue-a200","color-link-secondary-hover":"color-tv-blue-400","color-link-secondary-active":"color-tv-blue-500","color-static-warning":"color-tan-orange-500","color-static-danger":"color-ripe-red-500","color-static-highlight":"color-tv-blue-a900","color-static-neutral":"color-cold-gray-450","color-static-success":"color-minty-green-500","color-button-content-disabled":"color-cold-gray-650","color-button-content-ghost-neutral-bold-default":"color-cold-gray-200","color-button-content-ghost-neutral-bold-hover":"color-white","color-button-content-ghost-neutral-bold-active":"color-cold-gray-900","color-button-content-ghost-accent-default":"color-tv-blue-500","color-button-content-ghost-accent-hover":"color-tv-blue-500","color-button-content-ghost-accent-active":"color-white","color-button-content-ghost-neutral-default":"color-cold-gray-200","color-button-content-ghost-neutral-hover":"color-white","color-button-content-ghost-neutral-active":"color-white","color-button-content-ghost-neutral-is-selected":"color-cold-gray-200","color-button-content-primary-neutral-bold-default":"color-cold-gray-900","color-button-content-primary-neutral-bold-hover":"color-cold-gray-900","color-button-content-primary-neutral-bold-active":"color-cold-gray-900","color-button-content-primary-accent-default":"color-white","color-button-content-primary-accent-hover":"color-white","color-button-content-primary-accent-active":"color-white","color-button-content-primary-neutral-default":"color-white","color-button-content-primary-neutral-hover":"color-white","color-button-content-primary-neutral-active":"color-white","color-button-content-primary-neutral-is-selected":"color-white","color-button-content-primary-success-default":"color-white","color-button-content-primary-success-hover":"color-white","color-button-content-primary-success-active":"color-white","color-button-content-primary-accent-light-default":"color-tv-blue-200","color-button-content-primary-accent-light-hover":"color-tv-blue-200","color-button-content-primary-accent-light-active":"color-tv-blue-200","color-button-content-primary-accent-light-is-selected":"color-tv-blue-200","color-button-content-primary-danger-default":"color-white","color-button-content-primary-danger-hover":"color-white","color-button-content-primary-danger-active":"color-white","color-button-content-quiet-primary-neutral-bold-default":"color-cold-gray-200","color-button-content-quiet-primary-neutral-bold-hover":"color-cold-gray-900","color-button-content-quiet-primary-neutral-bold-active":"color-cold-gray-900","color-button-content-quiet-primary-neutral-default":"color-cold-gray-200","color-button-content-quiet-primary-neutral-hover":"color-white","color-button-content-quiet-primary-neutral-active":"color-white","color-button-content-quiet-primary-neutral-is-selected":"color-white","color-button-content-quiet-primary-accent-light-default":"color-tv-blue-500","color-button-content-quiet-primary-accent-light-hover":"color-tv-blue-100","color-button-content-quiet-primary-accent-light-active":"color-tv-blue-100","color-button-content-secondary-neutral-bold-default":"color-white","color-button-content-secondary-neutral-bold-hover":"color-cold-gray-900","color-button-content-secondary-neutral-bold-active":"color-cold-gray-900","color-button-content-secondary-accent-default":"color-tv-blue-500","color-button-content-secondary-accent-hover":"color-white","color-button-content-secondary-accent-active":"color-white","color-button-content-secondary-neutral-default":"color-cold-gray-200","color-button-content-secondary-neutral-hover":"color-white","color-button-content-secondary-neutral-active":"color-white","color-button-content-secondary-neutral-is-selected":"color-white","color-button-content-secondary-success-default":"color-minty-green-500","color-button-content-secondary-success-hover":"color-white","color-button-content-secondary-success-active":"color-white","color-button-content-secondary-accent-light-default":"color-tv-blue-200","color-button-content-secondary-accent-light-hover":"color-tv-blue-200","color-button-content-secondary-accent-light-active":"color-tv-blue-200","color-button-content-secondary-accent-light-is-selected":"color-tv-blue-200","color-button-content-secondary-danger-default":"color-ripe-red-500","color-button-content-secondary-danger-hover":"color-white","color-button-content-secondary-danger-active":"color-white","color-button-fill&border-disabled":"color-cold-gray-750","color-static-transparent":"color-transparent","color-button-fill&border-ghost-neutral-bold-default":"color-static-transparent","color-button-fill&border-ghost-neutral-bold-hover":"color-cold-gray-100","color-button-fill&border-ghost-neutral-bold-active":"color-cold-gray-200","color-button-fill&border-ghost-accent-default":"color-static-transparent","color-button-fill&border-ghost-accent-hover":"color-tv-blue-500","color-button-fill&border-ghost-accent-active":"color-tv-blue-700","color-button-fill&border-ghost-neutral-default":"color-static-transparent","color-button-fill&border-ghost-neutral-hover":"color-cold-gray-800","color-button-fill&border-ghost-neutral-active":"color-cold-gray-750","color-button-fill&border-ghost-neutral-is-selected":"color-static-transparent","color-button-fill&border-ghost-accent-light-default":"color-static-transparent","color-button-fill&border-ghost-accent-light-hover":"color-tv-blue-a700","color-button-fill&border-ghost-accent-light-active":"color-tv-blue-900","color-button-fill&border-ghost-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-primary-neutral-bold-default":"color-white","color-button-fill&border-primary-neutral-bold-hover":"color-cold-gray-100","color-button-fill&border-primary-neutral-bold-active":"color-cold-gray-200","color-button-fill&border-primary-accent-default":"color-tv-blue-500","color-button-fill&border-primary-accent-hover":"color-tv-blue-600","color-button-fill&border-primary-accent-active":"color-tv-blue-700","color-button-fill&border-primary-neutral-default":"color-cold-gray-800","color-button-fill&border-primary-neutral-hover":"color-cold-gray-750","color-button-fill&border-primary-neutral-active":"color-cold-gray-700","color-button-fill&border-primary-neutral-is-selected":"color-cold-gray-800","color-button-fill&border-primary-success-default":"color-minty-green-500","color-button-fill&border-primary-success-hover":"color-minty-green-600","color-button-fill&border-primary-success-active":"color-minty-green-700","color-button-fill&border-primary-accent-light-default":"color-tv-blue-a800","color-button-fill&border-primary-accent-light-hover":"color-tv-blue-a700","color-button-fill&border-primary-accent-light-active":"color-tv-blue-900","color-button-fill&border-primary-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-primary-danger-default":"color-ripe-red-500","color-button-fill&border-primary-danger-hover":"color-ripe-red-600","color-button-fill&border-primary-danger-active":"color-ripe-red-700","color-button-fill&border-quiet-primary-neutral-bold-default":"color-black","color-button-fill&border-quiet-primary-neutral-bold-hover":"color-white","color-button-fill&border-quiet-primary-neutral-bold-active":"color-cold-gray-100","color-button-fill&border-quiet-primary-accent-default":"color-black","color-button-fill&border-quiet-primary-accent-hover":"color-tv-blue-500","color-button-fill&border-quiet-primary-accent-active":"color-tv-blue-600","color-button-fill&border-quiet-primary-neutral-default":"color-black","color-button-fill&border-quiet-primary-neutral-hover":"color-cold-gray-800","color-button-fill&border-quiet-primary-neutral-active":"color-cold-gray-750","color-button-fill&border-quiet-primary-neutral-is-selected":"color-cold-gray-800","color-button-fill&border-quiet-primary-success-default":"color-black","color-button-fill&border-quiet-primary-success-hover":"color-minty-green-500","color-button-fill&border-quiet-primary-success-active":"color-minty-green-600","color-button-fill&border-quiet-primary-accent-light-default":"color-black","color-button-fill&border-quiet-primary-accent-light-hover":"color-tv-blue-a800","color-button-fill&border-quiet-primary-accent-light-active":"color-tv-blue-a700","color-button-fill&border-quiet-primary-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-quiet-primary-danger-default":"color-black","color-button-fill&border-quiet-primary-danger-hover":"color-ripe-red-500","color-button-fill&border-quiet-primary-danger-active":"color-ripe-red-600","color-button-fill&border-secondary-neutral-bold-default":"color-white","color-button-fill&border-secondary-neutral-bold-hover":"color-cold-gray-100","color-button-fill&border-secondary-neutral-bold-active":"color-cold-gray-200","color-button-fill&border-secondary-accent-default":"color-tv-blue-500","color-button-fill&border-secondary-accent-hover":"color-tv-blue-600","color-button-fill&border-secondary-accent-active":"color-tv-blue-700","color-button-fill&border-secondary-neutral-default":"color-cold-gray-700","color-button-fill&border-secondary-neutral-hover":"color-cold-gray-800","color-button-fill&border-secondary-neutral-active":"color-cold-gray-750","color-button-fill&border-secondary-neutral-is-selected":"color-cold-gray-800","color-button-fill&border-secondary-success-default":"color-minty-green-500","color-button-fill&border-secondary-success-hover":"color-minty-green-600","color-button-fill&border-secondary-success-active":"color-minty-green-700","color-button-fill&border-secondary-accent-light-default":"color-tv-blue-a800","color-button-fill&border-secondary-accent-light-hover":"color-tv-blue-a700","color-button-fill&border-secondary-accent-light-active":"color-tv-blue-900","color-button-fill&border-secondary-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-secondary-danger-default":"color-ripe-red-500","color-button-fill&border-secondary-danger-hover":"color-ripe-red-600","color-button-fill&border-secondary-danger-active":"color-ripe-red-700","color-text-field-border-default":"color-cold-gray-650","color-text-field-border-hover":"color-cold-gray-500","color-text-field-border-active":"color-tv-blue-500","color-text-field-border-disabled":"color-cold-gray-800","color-text-field-border-error":"color-ripe-red-500","color-text-field-border-focus-not-active":"color-tv-blue-500","color-text-field-border-focus-read-only":"color-tv-blue-500","color-text-field-border-read-only":"color-cold-gray-800","color-text-field-border-success":"color-minty-green-500","color-text-field-border-warning":"color-tan-orange-500","color-text-field-border-with-value":"color-cold-gray-650","color-text-field-description-default":"color-cold-gray-450","color-text-field-description-error":"color-ripe-red-500","color-text-field-description-success":"color-minty-green-500","color-text-field-description-warning":"color-tan-orange-500","color-text-field-fill-default":"color-static-transparent","color-text-field-fill-disabled":"color-cold-gray-800","color-text-field-fill-focus-read-only":"color-cold-gray-850","color-text-field-fill-read-only":"color-cold-gray-850","color-text-field-label-default":"color-cold-gray-450","color-text-field-label-error":"color-ripe-red-500","color-text-field-label-link":"color-tv-blue-500","color-text-field-label-success":"color-minty-green-500","color-text-field-label-warning":"color-tan-orange-500","color-text-field-left-slot-icon-default":"color-cold-gray-450","color-text-field-left-slot-icon-disabled":"color-cold-gray-650","color-text-field-placeholder-default":"color-cold-gray-450","color-text-field-placeholder-disabled":"color-cold-gray-650","color-text-field-right-slot-arrows-bg-default":"color-static-transparent","color-text-field-right-slot-arrows-bg-hover":"color-cold-gray-800","color-text-field-right-slot-arrows-bg-active":"color-cold-gray-750","color-text-field-right-slot-icons-and-text-default":"color-cold-gray-450","color-text-field-right-slot-icons-and-text-disabled":"color-cold-gray-650","color-text-field-right-slot-icons-and-text-active":"color-cold-gray-200","color-text-field-right-slot-icons-and-text-error":"color-ripe-red-500","color-text-field-right-slot-icons-and-text-hover":"color-cold-gray-200","color-text-field-value-default":"color-cold-gray-200","color-text-field-value-disabled":"color-cold-gray-450","color-counter-fill-danger":"color-ripe-red-500","color-counter-content-danger":"color-white","color-counter-fill-accent":"color-tv-blue-500","color-counter-content-accent":"color-white","color-counter-fill-accent-light":"color-tv-blue-a800","color-counter-content-accent-light":"color-tv-blue-100","color-counter-fill-neutral-bold":"color-white","color-counter-content-neutral-bold":"color-black","color-counter-fill-neutral":"color-cold-gray-800","color-counter-content-neutral":"color-cold-gray-200","color-counter-border-primary":"color-black","color-counter-border-secondary":"color-cold-gray-900","color-counter-border-tertiary":"color-cold-gray-850","color-filter-select-fill&border-checked-default":"color-tv-blue-a800","color-filter-select-fill&border-checked-hover":"color-tv-blue-a700","color-filter-select-fill&border-checked-active":"color-tv-blue-900","color-filter-select-fill&border-checked-isOpened":"color-tv-blue-a700","color-filter-select-content-checked-accent-default":"color-tv-blue-200","color-filter-select-content-checked-accent-hover":"color-tv-blue-200","color-filter-select-content-checked-accent-active":"color-tv-blue-200","color-filter-select-content-checked-neutral-default":"color-white","color-filter-select-content-checked-neutral-hover":"color-white","color-filter-select-content-checked-neutral-active":"color-white","color-filter-select-fill&border-not-checked-default":"color-cold-gray-700","color-filter-select-fill&border-not-checked-hover":"color-cold-gray-800","color-filter-select-fill&border-not-checked-active":"color-cold-gray-750","color-filter-select-fill&border-not-checked-isOpened":"color-cold-gray-800","color-filter-select-content-not-checked-default":"color-cold-gray-450","color-filter-select-content-not-checked-hover":"color-cold-gray-450","color-filter-select-content-not-checked-active":"color-cold-gray-450","color-symbol-change-positive":"color-minty-green-400","color-symbol-change-neutral":"color-cold-gray-200","color-symbol-change-negative":"color-ripe-red-400","color-symbol-rating-positive":"color-minty-green-400","color-symbol-rating-neutral":"color-cold-gray-450","color-symbol-rating-negative":"color-ripe-red-400","color-other-transparent":"color-transparent","color-shadow-primary-neutral-extra-heavy":"#00000066","color-shadow-primary-neutral-light":"color-cold-gray-750","color-shadow-secondary-neutral-light":"color-cold-gray-700","color-other-modal-background":"#0c0e1580","color-other-shadow-primary-neutral-extra-heavy":"#00000066","color-other-shadow-primary-neutral-light":"color-cold-gray-750","color-other-shadow-secondary-neutral-light":"color-cold-gray-700","color-background-primary-accent-extra-light":"color-tv-blue-a900","color-background-primary-accent-light":"color-tv-blue-a800","color-background-primary-inverse":"color-black","color-background-primary-neutral-bold":"color-cold-gray-700","color-background-primary-neutral-extra-heavy":"color-black","color-background-primary-neutral-extra-light":"color-cold-gray-850","color-background-primary-neutral-light":"color-cold-gray-800","color-background-primary-neutral-normal":"color-cold-gray-750","color-background-secondary-inverse":"color-cold-gray-900","color-background-tertiary-inverse":"color-cold-gray-850","color-container-fill-primary-accent":"color-tv-blue-500","color-container-fill-primary-accent-bold":"color-tv-blue-700","color-container-fill-primary-accent-extra-light":"color-tv-blue-a900","color-container-fill-primary-accent-light":"color-tv-blue-a800","color-container-fill-primary-accent-normal":"color-tv-blue-a700","color-container-fill-primary-accent-semi-bold":"color-tv-blue-600","color-container-fill-primary-accent-alt1-normal":"color-deep-blue-a100","color-container-fill-primary-accent-alt2-bold":"color-sky-blue-300","color-container-fill-primary-danger":"color-ripe-red-500","color-container-fill-primary-danger-bold":"color-ripe-red-700","color-container-fill-primary-danger-extra-light":"color-ripe-red-a900","color-container-fill-primary-danger-light":"color-ripe-red-a800","color-container-fill-primary-danger-normal":"color-ripe-red-a700","color-container-fill-primary-danger-semi-bold":"color-ripe-red-600","color-container-fill-primary-inverse":"color-black","color-container-fill-primary-neutral":"color-cold-gray-600","color-container-fill-primary-neutral-bold":"color-cold-gray-200","color-container-fill-primary-neutral-extra-bold":"color-cold-gray-100","color-container-fill-primary-neutral-extra-heavy":"color-white","color-container-fill-primary-neutral-extra-light":"color-cold-gray-800","color-container-fill-primary-neutral-heavy":"color-white","color-container-fill-primary-neutral-light":"color-cold-gray-750","color-container-fill-primary-neutral-normal":"color-cold-gray-700","color-container-fill-primary-neutral-thin":"color-cold-gray-850","color-container-fill-primary-neutral-medium":"color-cold-gray-450","color-container-fill-primary-success":"color-minty-green-500","color-container-fill-primary-success-bold":"color-minty-green-700","color-container-fill-primary-success-extra-light":"color-minty-green-a900","color-container-fill-primary-success-light":"color-minty-green-a800","color-container-fill-primary-success-normal":"color-minty-green-a700","color-container-fill-primary-success-semi-bold":"color-minty-green-600","color-container-fill-primary-warning":"color-tan-orange-500","color-container-fill-primary-warning-bold":"color-tan-orange-700","color-container-fill-primary-warning-extra-light":"color-tan-orange-a900","color-container-fill-primary-warning-light":"color-tan-orange-a800","color-container-fill-primary-warning-normal":"color-tan-orange-a700","color-container-fill-primary-warning-semi-bold":"color-tan-orange-600","color-container-fill-quaternary-inverse":"color-white","color-container-fill-secondary-accent-extra-light":"color-tv-blue-a800","color-container-fill-secondary-accent-light":"color-tv-blue-a700","color-container-fill-secondary-accent-normal":"color-tv-blue-900","color-container-fill-secondary-accent":"color-tv-blue-a100","color-container-fill-secondary-accent-semi-bold":"color-tv-blue-300","color-container-fill-secondary-inverse":"color-cold-gray-900","color-container-fill-secondary-neutral":"color-cold-gray-450","color-container-fill-secondary-neutral-extra-heavy":"color-black","color-container-fill-secondary-neutral-extra-light":"color-cold-gray-700","color-container-fill-secondary-neutral-heavy":"color-cold-gray-200","color-container-fill-secondary-neutral-light":"color-cold-gray-800","color-container-fill-secondary-neutral-normal":"color-cold-gray-600","color-container-fill-secondary-neutral-semi-bold":"color-cold-gray-400","color-container-fill-secondary-danger-bold":"color-ripe-red-300","color-container-fill-secondary-success-semi-bold":"color-minty-green-300","color-container-fill-secondary-warning-semi-bold":"color-tan-orange-300","color-container-fill-tertiary-accent":"color-tv-blue-a100","color-container-fill-tertiary-accent-bold":"color-tv-blue-a900","color-container-fill-tertiary-accent-light":"color-tv-blue-800","color-container-fill-tertiary-inverse":"color-cold-gray-850","color-container-fill-tertiary-neutral":"color-cold-gray-550","color-container-fill-tertiary-neutral-heavy":"color-tv-blue-200","color-container-fill-quinary-inverse":"color-cold-gray-800","color-content-primary-accent":"color-tv-blue-500","color-content-primary-accent-bold":"color-tv-blue-600","color-content-primary-accent-light":"color-tv-blue-300","color-content-primary-accent-normal":"color-tv-blue-400","color-content-primary-accent-semi-bold":"color-tv-blue-500","color-content-primary-accent-other-normal":"color-deep-blue-a100","color-content-primary-accent-other-bold":"color-sky-blue-300","color-content-primary-attention":"color-banana-yellow-800","color-content-primary-danger":"color-ripe-red-500","color-content-primary-danger-bold":"color-ripe-red-300","color-content-primary-danger-semi-bold":"color-ripe-red-400","color-content-primary-inverse":"color-black","color-content-primary-negative":"color-ripe-red-400","color-content-primary-neutral":"color-cold-gray-450","color-content-primary-neutral-bold":"color-cold-gray-200","color-content-primary-neutral-extra-light":"color-cold-gray-650","color-content-primary-neutral-light":"color-cold-gray-650","color-content-primary-neutral-normal":"color-cold-gray-550","color-content-primary-neutral-semi-bold":"color-cold-gray-300","color-content-primary-positive":"color-minty-green-400","color-content-primary-success":"color-minty-green-500","color-content-primary-success-bold":"color-minty-green-300","color-content-primary-success-semi-bold":"color-minty-green-400","color-content-primary-warning":"color-tan-orange-500","color-content-primary-warning-bold":"color-tan-orange-300","color-content-primary-warning-semi-bold":"color-tan-orange-400","color-content-secondary-accent":"color-tv-blue-400","color-content-secondary-accent-semi-bold":"color-tv-blue-200","color-content-secondary-inverse":"color-cold-gray-900","color-content-secondary-neutral":"color-cold-gray-450","color-content-secondary-neutral-bold":"color-white","color-content-secondary-neutral-medium":"color-cold-gray-300","color-content-secondary-neutral-semi-bold":"color-cold-gray-150","color-content-secondary-warning-semi-bold":"color-tan-orange-300","color-content-secondary-success-semi-bold":"color-minty-green-300","color-content-tertiary-accent":"color-tv-blue-100","color-content-tertiary-accent-bold":"color-tv-blue-200","color-content-tertiary-accent-semi-bold":"color-tv-blue-100","color-content-tertiary-inverse":"color-white","color-content-quaternary-accent":"color-tv-blue-a100","color-content-quaternary-accent-semi-bold":"color-tv-blue-300","color-content-quinary-accent":"color-tv-blue-300","color-content-quinary-accent-semi-bold":"color-tv-blue-400","color-content-quinary-accent-bold":"color-tv-blue-500","color-border-primary-accent":"color-tv-blue-500","color-border-primary-accent-extra-light":"color-tv-blue-a800","color-border-primary-danger":"color-ripe-red-500","color-border-primary-inverse":"color-black","color-border-primary-neutral":"color-cold-gray-500","color-border-primary-neutral-bold":"color-cold-gray-350","color-border-primary-neutral-extra-bold":"color-white","color-border-primary-neutral-extra-heavy":"color-white","color-border-primary-neutral-light":"color-cold-gray-700","color-border-primary-neutral-normal":"color-cold-gray-800","color-border-primary-neutral-semi-bold":"color-cold-gray-450","color-border-primary-success":"color-minty-green-500","color-border-primary-warning":"color-tan-orange-500","color-border-secondary-inverse":"color-cold-gray-900","color-border-secondary-neutral":"color-cold-gray-700","color-border-secondary-neutral-normal":"color-cold-gray-650","color-border-tertiary-inverse":"color-cold-gray-850","color-border-primary-neutral-extra-light":"color-cold-gray-800","color-overlay-accent-1-light":"#448aff33","color-overlay-accent-1-normal":"#448aff66","color-overlay-accent-1-bold":"#448aff80","color-overlay-accent-2-light":"#00bcd433","color-overlay-accent-2-normal":"#00bcd466","color-overlay-accent-2-bold":"#00bcd480","color-overlay-accent-3-light":"#ea80fc33","color-overlay-accent-3-normal":"#ea80fc66","color-overlay-accent-3-bold":"#ea80fc80","color-overlay-accent-4-light":"#b388ff33","color-overlay-accent-4-normal":"#b388ff66","color-overlay-accent-4-bold":"#b388ff66","color-overlay-negative-1-light":"#f2364533","color-overlay-negative-1-normal":"#f2364566","color-overlay-negative-1-bold":"#f2364580","color-overlay-negative-2-light":"#ff408133","color-overlay-negative-2-normal":"#ff408166","color-overlay-negative-2-bold":"#ff408180","color-overlay-neutral-1-light":"#b2b5be33","color-overlay-neutral-1-normal":"#b2b5be66","color-overlay-neutral-1-bold":"#b2b5be80","color-overlay-neutral-2-light":"#ffffff33","color-overlay-neutral-2-normal":"#ffffff66","color-overlay-neutral-2-bold":"#ffffff80","color-overlay-positive-1-light":"#22ab9433","color-overlay-positive-1-normal":"#22ab9466","color-overlay-positive-1-bold":"#22ab9480","color-overlay-positive-2-light":"#22ab6733","color-overlay-positive-2-normal":"#22ab6766","color-overlay-positive-2-bold":"#4caf5033","color-overlay-positive-3-light":"#4caf5033","color-overlay-positive-3-normal":"#4caf5066","color-overlay-positive-3-bold":"#4caf5080","color-overlay-warning-1-light":"#ff980033","color-overlay-warning-1-normal":"#ff980066","color-overlay-warning-1-bold":"#ff980080","color-overlay-warning-2-light":"#fdd83533","color-overlay-warning-2-normal":"#fdd83566","color-overlay-warning-2-bold":"#fdd83580"}') -;var d=l(579),i=l(20913),b=l(23420) -;const g=JSON.parse('{"light":{"color-body-bg-superdark-legacy":"color-cold-gray-900","color-chart-active-outline":"color-tv-blue-500","color-ui-loading-indicator-bg":"color-white","color-ui-slider-horizontal-bg":"#f4f7f9","color-ui-slider-horizontal-border":"#c9cbcd","color-default-active-bg":"#ececec","color-btn-disabled-bg":"color-cold-gray-150","color-button-text-color":"color-white","color-btn-danger":"color-ripe-red-400","color-btn-danger-hover":"color-ripe-red-600","color-btn-danger-active":"color-ripe-red-700","color-data-table-cell-border":"#e6eaef","color-data-table-cell-status-bg":"#e6e9ed","color-data-table-cell-red-background-bg":"#f4ecec","color-data-table-cell-blue-background-bg":"#eaf3fb","color-data-table-tbody-hover-bg":"#f3f5f9","color-data-table-btn-hover":"color-cold-gray-650","color-sortable-after-border":"#919691","color-data-table-stroke-grayed":"#999999","color-data-table-thead-bg":"color-cold-gray-50","color-white-border":"color-cold-gray-200","color-opacity-bg":"color-white","color-header-border":"color-cold-gray-150","color-widgetbar-titles":"color-cold-gray-900","color-headerspace-btn-active-bg":"color-cold-gray-100","color-headerspace-btn-icon-color":"color-cold-gray-900","color-widget-header-border":"color-cold-gray-150","color-widget-header-title-color":"color-cold-gray-900","color-drag-icon":"color-cold-gray-300","color-floating-toolbar-shadow":"color-cold-gray-550","color-item-shortcut-active-text":"color-white","color-item-toolbox-active-text":"color-white","color-separator":"color-cold-gray-100","color-custom-button":"color-cold-gray-900","color-custom-button-hover":"color-cold-gray-100","color-empty-state-text":"color-cold-gray-900","color-background":"color-white","color-tab-hover":"color-cold-gray-100","color-force-transparent":"transparent","color-title":"color-cold-gray-300","color-disabled-title":"color-cold-gray-300","color-hovered-button-background":"color-cold-gray-150","color-selected-hovered-button-background":"color-tv-blue-200","color-child-of-selected-hovered-button-background":"color-tv-blue-100","color-hovered-background":"color-cold-gray-100","color-rename-input-background":"color-white","color-dialog-background":"color-white","color-warn-text":"color-tan-orange-600","color-common-tooltip-force-transparent":"transparent","color-common-tooltip-hotkey-text":"color-tan-orange-500","color-common-tooltip-hotkey-divider":"color-cold-gray-600","color-tooltip-force-transparent":"transparent","color-broker-card-background":"color-white","color-templates-dialog-body-border":"color-cold-gray-150","color-indicators-text":"color-cold-gray-900","color-highlight-search":"color-tv-blue-200","color-sort-button":"color-cold-gray-900","color-sort-button-bg-hover":"color-cold-gray-100","color-load-chart-dialog-text":"color-cold-gray-900","color-search-border":"color-cold-gray-150","color-properties-dialog-borders":"color-cold-gray-150","color-pointer":"color-white","color-input-text":"color-cold-gray-900","color-input-border":"color-cold-gray-200","color-empty-border":"color-black","color-empty-line":"color-ripe-red-400","color-swatch-border-hover":"color-cold-gray-200","color-active-border":"color-tv-blue-500","color-selected-border":"color-cold-gray-900","color-drawer-backdrop":"color-cold-gray-400","color-dialog-text":"color-cold-gray-900","color-text":"color-cold-gray-900","color-popup-table-background":"color-white","color-tooltip-wizard-bg":"color-tv-blue-500","color-header-hovered-button-bg-disabled":"color-white","color-header-text-disabled":"color-cold-gray-300","color-button-background":"color-cold-gray-100","color-icon":"color-cold-gray-900","color-hovered-watchlist-button-bg-disabled":"transparent","color-tv-dom-panel-header-bg":"color-cold-gray-50","color-header-title-symbol-exchange":"color-cold-gray-650","color-properties-dialog-tab-bg":"color-cold-gray-100","color-properties-dialog-defaults-text":"color-cold-gray-900","color-active-tab-text-color":"color-cold-gray-900","color-bg":"color-cold-gray-50","color-caret-hover":"color-cold-gray-100","color-icon-hover":"color-cold-gray-900","color-text-input":"color-cold-gray-900","color-input-bg":"color-white","color-input-border-hover":"color-cold-gray-350","color-suggestion-text":"#4a4a4a","color-background-hover":"color-cold-gray-100","color-background-selected":"color-tv-blue-50","color-icon-background-selected-hover":"color-tv-blue-200","color-add-dialog-text":"color-cold-gray-900","color-top-border-content":"color-cold-gray-150","color-item-row-bg-hover":"color-cold-gray-100","color-item-row-text":"color-cold-gray-900","color-item-bg-selected":"color-tv-blue-100","color-favorite-study-template-text":"color-cold-gray-900","color-favorite-study-template-text-hover":"color-black","color-favorite-study-template-border":"color-cold-gray-200","color-favorite-study-template-bg-hover":"color-cold-gray-100","color-active-layout-text":"color-white","color-dot-bg":"color-cold-gray-300","color-info-icon":"color-cold-gray-200","color-close-button-separator":"color-cold-gray-150","color-toast-bg":"color-white","color-main-content-text":"color-cold-gray-900","color-context-menu-separator-hint":"color-cold-gray-400","color-informer-intent-warning":"color-tan-orange-500","color-informer-intent-warning-bg":"color-white","color-informer-intent-warning-border":"color-tan-orange-500","color-informer-light-warning-bg":"color-tan-orange-50","color-informer-intent-danger":"color-ripe-red-500","color-informer-intent-danger-bg":"color-white","color-informer-intent-danger-border":"color-ripe-red-500","color-informer-light-danger-bg":"color-ripe-red-50","color-informer-intent-success":"color-minty-green-500","color-informer-intent-success-bg":"color-white","color-informer-intent-success-border":"color-minty-green-500","color-informer-light-success-bg":"color-minty-green-50","color-informer-intent-default":"color-cold-gray-550","color-informer-intent-default-bg":"color-white","color-informer-intent-default-border":"color-cold-gray-150","color-informer-light-default-bg":"color-cold-gray-100","color-informer-text-content":"color-cold-gray-900","color-circle-logo-letter":"color-white","color-circle-logo-background":"color-cold-gray-150","color-tooltip-background":"color-white","color-tooltip-text":"color-cold-gray-900","color-tooltip-card-shadow":"color-cold-gray-500","color-menu-wrapper":"transparent","color-scroll-fade":"color-white","color-option-active-bg":"#ececec","color-option-hover-bg":"#f2f2f2","color-tv-button-group-primary":"#ffffff","color-force-button-transparent":"transparent","color-short-position-bg":"#ffdbe1","color-long-position-bg":"#d8f0fa","color-tv-dom-widget-main-value-border":"color-cold-gray-50","color-red-price":"color-ripe-red-500","color-blue-price":"color-tv-blue-500","color-buy-border-hover":"color-tv-blue-500","color-buy-border-active":"color-tv-blue-500","color-sell-border-hover":"color-ripe-red-500","color-sell-border-active":"color-ripe-red-500","color-meter-buy-bg":"color-tv-blue-50","color-meter-buy-active-bg":"color-tv-blue-100","color-meter-sell-bg":"color-ripe-red-50","color-meter-sell-active-bg":"color-ripe-red-100","color-dom-widget-nav-border":"color-cold-gray-50","color-dom-widget-button-ask":"color-tv-blue-500","color-dom-widget-button-bid":"color-ripe-red-500","color-dom-widget-button-hover-ask":"color-tv-blue-600","color-dom-widget-button-hover-bid":"color-ripe-red-600","color-dom-widget-button-active-ask":"color-tv-blue-700","color-dom-widget-button-active-bid":"color-ripe-red-700","color-dom-widget-button-close-cross":"color-cold-gray-300","color-dom-widget-button-disabled":"color-cold-gray-150","color-overall-volume-text-bid":"color-tv-blue-500","color-overall-volume-text-ask":"color-ripe-red-500","color-overall-volume-bid":"color-tv-blue-50","color-overall-volume-ask":"color-ripe-red-50","color-dom-widget-lock-active":"color-cold-gray-900","color-cross-white":"color-white","color-arrow-stroke":"color-cold-gray-300","color-arrow-text":"color-cold-gray-900","color-arrow-text-hover":"color-black","color-favorite-checked":"color-banana-yellow-700","color-delayed-warning":"color-tan-orange-600","color-button-text":"color-cold-gray-900","color-wrap-text":"color-cold-gray-400","color-item-selected":"color-tv-blue-100","color-btn-primary-disabled-bg":"color-cold-gray-150","color-btn-primary-disabled-border":"color-cold-gray-150","color-btn-secondary-disabled-bg":"transparent","color-btn-secondary-disabled-border":"color-cold-gray-150","color-btn-disabled-content":"color-cold-gray-300","color-btn-brand-primary-default-bg":"color-tv-blue-500","color-btn-brand-primary-default-border":"color-tv-blue-500","color-btn-brand-primary-default-content":"color-white","color-btn-brand-primary-hover-bg":"color-tv-blue-600","color-btn-brand-primary-hover-border":"color-tv-blue-600","color-btn-brand-primary-hover-content":"color-white","color-btn-brand-primary-active-bg":"color-tv-blue-700","color-btn-brand-primary-active-border":"color-tv-blue-700","color-btn-brand-primary-active-content":"color-white","color-btn-brand-secondary-default-bg":"transparent","color-btn-brand-secondary-default-border":"color-tv-blue-500","color-btn-brand-secondary-default-content":"color-tv-blue-500","color-btn-brand-secondary-hover-bg":"color-tv-blue-600","color-btn-brand-secondary-hover-border":"color-tv-blue-600","color-btn-brand-secondary-hover-content":"color-white","color-btn-brand-secondary-active-bg":"color-tv-blue-700","color-btn-brand-secondary-active-border":"color-tv-blue-700","color-btn-brand-secondary-active-content":"color-white","color-btn-gray-primary-default-bg":"color-cold-gray-100","color-btn-gray-primary-default-border":"color-cold-gray-100","color-btn-gray-primary-default-content":"color-cold-gray-900","color-btn-gray-primary-hover-bg":"color-cold-gray-150","color-btn-gray-primary-hover-border":"color-cold-gray-150","color-btn-gray-primary-hover-content":"color-cold-gray-900","color-btn-gray-primary-active-bg":"color-cold-gray-200","color-btn-gray-primary-active-border":"color-cold-gray-200","color-btn-gray-primary-active-content":"color-cold-gray-900","color-btn-gray-secondary-default-bg":"transparent","color-btn-gray-secondary-default-border":"color-cold-gray-150","color-btn-gray-secondary-default-content":"color-cold-gray-900","color-btn-gray-secondary-hover-bg":"color-cold-gray-100","color-btn-gray-secondary-hover-border":"color-cold-gray-100","color-btn-gray-secondary-hover-content":"color-cold-gray-900","color-btn-gray-secondary-active-bg":"color-cold-gray-150","color-btn-gray-secondary-active-border":"color-cold-gray-150","color-btn-gray-secondary-active-content":"color-cold-gray-900","color-btn-green-primary-default-bg":"color-minty-green-500","color-btn-green-primary-default-border":"color-minty-green-500","color-btn-green-primary-default-content":"color-white","color-btn-green-primary-hover-bg":"color-minty-green-600","color-btn-green-primary-hover-border":"color-minty-green-600","color-btn-green-primary-hover-content":"color-white","color-btn-green-primary-active-bg":"color-minty-green-700","color-btn-green-primary-active-border":"color-minty-green-700","color-btn-green-primary-active-content":"color-white","color-btn-green-secondary-default-bg":"transparent","color-btn-green-secondary-default-border":"color-minty-green-500","color-btn-green-secondary-default-content":"color-minty-green-500","color-btn-green-secondary-hover-bg":"color-minty-green-600","color-btn-green-secondary-hover-border":"color-minty-green-600","color-btn-green-secondary-hover-content":"color-white","color-btn-green-secondary-active-bg":"color-minty-green-700","color-btn-green-secondary-active-border":"color-minty-green-700","color-btn-green-secondary-active-content":"color-white","color-btn-red-primary-default-bg":"color-ripe-red-500","color-btn-red-primary-default-border":"color-ripe-red-500","color-btn-red-primary-default-content":"color-white","color-btn-red-primary-hover-bg":"color-ripe-red-600","color-btn-red-primary-hover-border":"color-ripe-red-600","color-btn-red-primary-hover-content":"color-white","color-btn-red-primary-active-bg":"color-ripe-red-700","color-btn-red-primary-active-border":"color-ripe-red-700","color-btn-red-primary-active-content":"color-white","color-btn-red-secondary-default-bg":"transparent","color-btn-red-secondary-default-border":"color-ripe-red-500","color-btn-red-secondary-default-content":"color-ripe-red-500","color-btn-red-secondary-hover-bg":"color-ripe-red-600","color-btn-red-secondary-hover-border":"color-ripe-red-600","color-btn-red-secondary-hover-content":"color-white","color-btn-red-secondary-active-bg":"color-ripe-red-700","color-btn-red-secondary-active-border":"color-ripe-red-700","color-btn-red-secondary-active-content":"color-white","color-btn-black-primary-default-bg":"color-cold-gray-900","color-btn-black-primary-default-border":"color-cold-gray-900","color-btn-black-primary-default-content":"color-white","color-btn-black-primary-hover-bg":"color-cold-gray-800","color-btn-black-primary-hover-border":"color-cold-gray-800","color-btn-black-primary-hover-content":"color-white","color-btn-black-primary-active-bg":"color-cold-gray-700","color-btn-black-primary-active-border":"color-cold-gray-700","color-btn-black-primary-active-content":"color-white","color-btn-black-secondary-default-bg":"transparent","color-btn-black-secondary-default-border":"color-cold-gray-900","color-btn-black-secondary-default-content":"color-cold-gray-900","color-btn-black-secondary-hover-bg":"color-cold-gray-800","color-btn-black-secondary-hover-border":"color-cold-gray-800","color-btn-black-secondary-hover-content":"color-white","color-btn-black-secondary-active-bg":"color-cold-gray-700","color-btn-black-secondary-active-border":"color-cold-gray-700","color-btn-black-secondary-active-content":"color-white","color-btn-cyber-monday-secondary-default-bg":"transparent","color-btn-cyber-monday-secondary-default-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-default-content":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-bg":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-content":"color-cold-gray-900","color-btn-cyber-monday-secondary-active-bg":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-border":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-content":"color-cold-gray-900","color-btn-black-friday-primary-content":"color-white","color-btn-cyber-monday-primary-content":"color-cold-gray-900","color-indicators-hint-background":"color-cold-gray-800","color-icon-selected-hover":"color-tv-blue-200","color-grayed-text":"color-cold-gray-300","color-solution-icon":"color-cold-gray-200","color-checkbox":"color-cold-gray-300","color-checkbox-hover":"color-cold-gray-350","color-checkbox-active":"color-tv-blue-700","color-checkbox-focused":"color-tv-blue-500","color-checkbox-checked":"color-tv-blue-500","color-checkbox-checked-hover":"color-tv-blue-600","color-checkbox-disabled":"color-cold-gray-300","color-checkbox-disabled-bg":"color-cold-gray-150","color-checkbox-icon":"color-white","color-buy-btn-text-default":"color-white","color-buy-btn-text-light":"color-white","color-buy-btn-text-dark":"color-tv-blue-50","color-sell-btn-text-default":"color-white","color-sell-btn-text-light":"color-white","color-sell-btn-text-dark":"color-ripe-red-50","color-buy-btn-chart":"color-tv-blue-500","color-buy-btn-chart-hover":"color-tv-blue-600","color-buy-btn-chart-active":"color-tv-blue-700","color-buy-btn-withoutbg-chart-default":"color-white","color-buy-btn-withoutbg-chart-light":"color-white","color-buy-btn-withoutbg-chart-dark":"color-cold-gray-900","color-buy-btn-withoutbg-hover-chart-default":"color-tv-blue-50","color-buy-btn-withoutbg-hover-chart-light":"color-tv-blue-50","color-buy-btn-withoutbg-hover-chart-dark":"color-tv-blue-a900","color-buy-btn-withoutbg-active-chart-default":"color-tv-blue-100","color-buy-btn-withoutbg-active-chart-light":"color-tv-blue-100","color-buy-btn-withoutbg-active-chart-dark":"color-tv-blue-a900","color-sell-btn-withoutbg-hover-chart-default":"color-ripe-red-50","color-sell-btn-withoutbg-hover-chart-light":"color-ripe-red-50","color-sell-btn-withoutbg-hover-chart-dark":"color-ripe-red-a900","color-sell-btn-withoutbg-active-chart-default":"color-ripe-red-100","color-sell-btn-withoutbg-active-chart-light":"color-ripe-red-100","color-sell-btn-withoutbg-active-chart-dark":"color-ripe-red-a900","color-sell-btn-chart":"color-ripe-red-500","color-sell-btn-chart-hover":"color-ripe-red-600","color-sell-btn-chart-active":"color-ripe-red-700","color-spread-chart-default":"color-cold-gray-900","color-spread-chart-light":"color-cold-gray-900","color-spread-chart-dark":"color-cold-gray-200","color-qty-text-chart-default":"color-cold-gray-900","color-qty-text-chart-light":"color-cold-gray-900","color-qty-text-chart-dark":"color-cold-gray-200","color-qty-bg-chart-default":"color-cold-gray-50","color-qty-bg-chart-light":"color-cold-gray-50","color-qty-bg-chart-dark":"color-cold-gray-850","color-qty-bg-hover-chart-default":"color-cold-gray-100","color-qty-bg-hover-chart-light":"color-cold-gray-100","color-qty-bg-hover-chart-dark":"color-cold-gray-800","color-qty-bg-active-chart-default":"color-cold-gray-150","color-qty-bg-active-chart-light":"color-cold-gray-150","color-qty-bg-active-chart-dark":"color-cold-gray-900","color-loading-buttons-default":"color-cold-gray-100","color-loading-buttons-light":"color-cold-gray-100","color-loading-buttons-dark":"color-cold-gray-800","color-broker-button-border-default":"color-cold-gray-200","color-broker-button-border-light":"color-cold-gray-200","color-broker-button-border-dark":"color-cold-gray-700","color-broker-button-bg-hover-default":"color-cold-gray-100","color-broker-button-bg-hover-light":"color-cold-gray-100","color-broker-button-bg-hover-dark":"color-cold-gray-800","color-broker-button-icon-default":"color-black","color-broker-button-icon-light":"color-black","color-broker-button-icon-dark":"color-cold-gray-300","color-overlay-scroll-bar":"color-cold-gray-200","color-drawer-item-text":"color-cold-gray-900","color-drawer-item-active-bg":"color-tv-blue-500","color-drawer-item-active-text":"color-white","color-item-row-border":"color-cold-gray-100","color-account-name":"color-cold-gray-900","color-currency":"color-cold-gray-550","color-currency-active":"color-white","color-hovered-settings-button-background":"color-cold-gray-150","color-button-bg":"color-cold-gray-400","color-button-bg-hover":"color-cold-gray-550","color-button-bg-selected":"color-tv-blue-200","color-button-border":"color-cold-gray-200","color-item-row-text-invalid":"color-ripe-red-400","color-item-row-selected":"color-tv-blue-100","color-item-action":"color-white","color-remove-action-hover":"color-ripe-red-600","color-icon-hover-color":"color-cold-gray-900","color-expand-handle-bg-hover":"color-cold-gray-150","color-primary-icon":"color-sky-blue-500","color-before-market-open":"color-tan-orange-600","color-before-market-open-bg":"color-tan-orange-400","color-after-market-close":"color-tv-blue-500","color-after-market-close-bg":"color-tv-blue-400","color-content-item-bg":"color-white","color-divider-intent-default":"color-cold-gray-100","color-divider-intent-primary":"color-cold-gray-150","color-range-slider-middle-bg":"color-tv-blue-500","color-context-menu-item-checked":"color-cold-gray-900","color-context-menu-item-active-shortcut":"color-cold-gray-300","color-light-tabs-bg":"color-cold-gray-100","color-keyboard-button-bg":"color-white","color-keyboard-button-text":"color-cold-gray-900","color-keyboard-button-shadow":"color-cold-gray-150","color-trading-widget-title-text":"color-black","color-widget-separator":"color-cold-gray-150","color-desktop-table-background":"color-white","color-mobile-table-background":"color-white","color-hovered-row-background":"color-cold-gray-100","color-linked-row-border":"color-tv-blue-500","color-success-row-border":"color-minty-green-600","color-danger-row-border":"color-ripe-red-500","color-cell-content-text":"color-cold-gray-900","color-desktop-row-border":"color-cold-gray-100","color-mobile-row-bottom-border":"color-cold-gray-150","color-headcell-text-hovered":"color-cold-gray-900","color-shadow":"color-cold-gray-150","color-close-button-hover-text":"color-cold-gray-900","color-close-button-hover-bg":"color-cold-gray-100","color-close-button-active-text":"color-cold-gray-900","color-close-button-active-bg":"color-cold-gray-150","color-content-disabled":"color-cold-gray-300","color-error-text":"color-cold-gray-700","color-error-background":"color-white","color-position-warning-bg":"color-cold-gray-50","color-icon-background-hover":"color-cold-gray-150","color-primary-popup":"color-white","color-modal-backdrop":"color-cold-gray-400","color-range-slider-bg":"color-cold-gray-150","color-header-separator-border":"color-cold-gray-150","color-primary-text":"color-cold-gray-900","color-empty-text":"color-cold-gray-900","color-square-tab-bg-transparent":"transparent","color-square-tab-bg-active":"color-cold-gray-150","color-square-tab-text-active":"color-cold-gray-900","color-square-tab-bg-selected":"color-cold-gray-100","color-tab-switcher-border":"color-cold-gray-100","color-underline-tab-selected-content":"color-cold-gray-900","color-edit-button-background-hover":"color-cold-gray-150","color-edit-button-text":"color-cold-gray-900","color-edit-button-text-disabled":"color-cold-gray-300","color-edit-button-icon-hover":"color-cold-gray-900","color-item-text":"color-cold-gray-900","color-bg-separator":"color-cold-gray-100","color-control-highlight-intent-default":"color-cold-gray-300","color-control-highlight-intent-success":"color-control-intent-success","color-control-highlight-intent-primary":"color-control-intent-primary","color-control-highlight-intent-warning":"color-control-intent-warning","color-control-highlight-intent-danger":"color-control-intent-danger","color-control-border-hover":"color-cold-gray-350","color-control-disabled-bg":"color-cold-gray-100","color-control-disabled-text":"color-cold-gray-550","color-input-readonly-bg":"color-cold-gray-100","color-input-readonly-border":"color-cold-gray-200","color-input-disabled-bg":"color-cold-gray-100","color-input-disabled-text":"color-cold-gray-300","color-input-disabled-border":"color-cold-gray-200","color-placeholder-up":"color-minty-green-400","color-placeholder-down":"color-ripe-red-400","color-arrow":"color-cold-gray-900","color-header-hover":"color-cold-gray-100","color-button-action-active":"color-cold-gray-700","color-button-action-border":"color-cold-gray-400","color-button-action-text":"color-cold-gray-900","color-button-action-background-disabled":"color-cold-gray-150","color-button-action-text-disabled":"color-cold-gray-300","color-btn-sell":"color-ripe-red-500","color-btn-sell-hover":"color-ripe-red-600","color-btn-sell-active":"color-ripe-red-700","color-white-hover":"color-white","color-button-action-background-text-disabled":"color-cold-gray-300","color-button-action-background-pl-disabled":"color-cold-gray-100","color-button-position-buy":"color-tv-blue-500","color-button-position-buy-hover":"color-tv-blue-600","color-button-position-buy-active":"color-tv-blue-700","color-button-position-sell":"color-ripe-red-500","color-button-position-sell-hover":"color-ripe-red-600","color-button-position-sell-active":"color-ripe-red-700","color-button-position-profit":"color-minty-green-500","color-button-position-profit-hover":"color-minty-green-600","color-button-position-profit-active":"color-minty-green-700","color-text-white":"color-white","color-errors-bg":"color-cold-gray-800","color-calculator-active":"color-cold-gray-900","color-quantity-input-border":"color-cold-gray-200","color-quantity-input-disabled":"color-cold-gray-150","color-bracket-input-disabled":"color-cold-gray-150","color-bracket-checkbox-label":"color-black","color-order-info-title":"color-cold-gray-900","color-preview-warning-text":"color-cold-gray-900","color-preview-warning-icon":"color-white","color-preview-error":"color-ripe-red-500","color-main-text":"color-cold-gray-900","color-additional-text":"color-cold-gray-400","color-close":"color-cold-gray-400","color-open":"color-minty-green-500","color-pre-market":"color-tan-orange-600","color-post-market":"color-tv-blue-500","color-details-growing":"color-minty-green-400","color-details-falling":"color-ripe-red-500","color-position-info-title":"color-cold-gray-900","color-label":"color-cold-gray-550","color-popup-menu-item":"color-cold-gray-200","color-drag-layer-background":"color-tv-blue-100","color-header-text":"#212121","color-message-bg":"color-minty-green-50","color-message-error-bg":"color-ripe-red-50","color-summary-field":"color-cold-gray-900","color-replay-select-point":"color-cold-gray-200","color-container-border":"color-cold-gray-100","color-container-hover-bg":"color-cold-gray-100","color-main-background":"color-white","color-icon-selected":"color-white","color-highlighted-text":"color-tv-blue-200","color-switcher-track-off":"color-cold-gray-350","color-switcher-track-off-active":"color-cold-gray-600","color-switcher-thumb":"color-white","color-switcher-track-bg-off-disabled":"color-cold-gray-150","color-switcher-track-border-off-disabled":"color-cold-gray-300","color-switcher-thumb-disabled":"color-cold-gray-300","color-right-main":"color-minty-green-a600","color-right-hover":"color-minty-green-300","color-left-main":"color-tv-blue-500","color-left-hover":"color-tv-blue-700","color-track-bg-on":"color-tv-blue-500","color-bar":"color-cold-gray-900","color-active-bar":"color-white","color-button-text-active":"color-white","color-button-text-disabled":"color-cold-gray-300","color-button-disabled-bg":"color-cold-gray-150","color-input-with-error-label":"color-cold-gray-200","color-button-hover":"color-cold-gray-100","color-confirm-button-bg":"#FFFFFF","color-light-tab-button-default-bg":"color-cold-gray-100","color-light-tab-button-default-content":"color-cold-gray-900","color-light-tab-button-hover-bg":"color-cold-gray-150","color-light-tab-button-active-bg":"color-cold-gray-200","color-light-tab-button-disabled-bg":"color-cold-gray-100","color-light-tab-button-disabled-content":"color-cold-gray-300","color-light-tab-button-selected-bg":"color-white","color-light-tab-button-selected-content":"color-cold-gray-900","color-text-btn-bg-hover-brand":"color-tv-blue-50","color-text-btn-bg-active-brand":"color-tv-blue-50","color-text-btn-bg-checked-brand":"color-tv-blue-50","color-text-btn-content-brand":"color-tv-blue-500","color-text-btn-content-hover-brand":"color-tv-blue-600","color-text-btn-content-active-brand":"color-tv-blue-500","color-text-btn-content-disabled-brand":"color-cold-gray-300","color-text-btn-content-checked-brand":"color-tv-blue-600","color-text-btn-bg-hover-gray":"color-cold-gray-100","color-text-btn-bg-active-gray":"color-cold-gray-150","color-text-btn-bg-checked-gray":"color-cold-gray-100","color-text-btn-content-gray":"color-cold-gray-900","color-text-btn-content-hover-gray":"color-cold-gray-900","color-text-btn-content-active-gray":"color-cold-gray-900","color-text-btn-content-disabled-gray":"color-cold-gray-300","color-text-btn-content-checked-gray":"color-cold-gray-900","color-text-btn-bg-hover-light-gray":"color-cold-gray-100","color-text-btn-bg-active-light-gray":"color-cold-gray-150","color-text-btn-bg-checked-light-gray":"color-cold-gray-100","color-text-btn-content-light-gray":"color-cold-gray-550","color-text-btn-content-hover-light-gray":"color-cold-gray-900","color-text-btn-content-active-light-gray":"color-cold-gray-900","color-text-btn-content-checked-light-gray":"color-cold-gray-900","color-text-btn-content-disabled-light-gray":"color-cold-gray-300","color-text-btn-activated-bg":"color-tv-blue-50","color-text-btn-activated-content":"color-tv-blue-600","color-spread":"color-black","color-section-bg":"color-cold-gray-100","color-section-content":"color-cold-gray-300","color-section-content-active":"color-white","color-section-sell-bg-hover":"color-ripe-red-600","color-section-sell-bg-active":"color-ripe-red-700","color-active-section-sell-bg":"color-ripe-red-500","color-section-buy-bg-hover":"color-tv-blue-600","color-section-buy-bg-active":"color-tv-blue-700","color-active-section-buy-bg":"color-tv-blue-500","color-custom-field-section-title":"color-black","color-custom-field-checkbox-label":"color-black","color-input-placeholder-wait":"color-cold-gray-100","color-progress-track":"color-tv-blue-50","color-progress":"color-tv-blue-500","color-margin-overflow":"color-ripe-red-500","color-wait":"color-cold-gray-150","color-price":"color-cold-gray-900","color-info-table-text-highlighted":"color-cold-gray-900","color-info-table-row-hover-bg":"color-cold-gray-100","color-info-table-text-disabled":"color-cold-gray-150","color-info-table-text-buy":"color-tv-blue-500","color-info-table-text-sell":"color-ripe-red-500","color-textarea-bg":"color-white","color-scrollbar-default":"color-cold-gray-200","color-scrollbar-hover":"color-cold-gray-300","color-scrollbar-active":"color-cold-gray-400","color-child-of-selected-background":"color-tv-blue-50","color-drop-target-border":"color-tv-blue-500","color-tree-bg":"color-white","color-dots":"color-cold-gray-300","color-switch-bg":"transparent","color-switch-hover-bg":"color-cold-gray-100","color-switch-border":"color-cold-gray-200","color-active-switch-bg":"color-tv-blue-500","color-drop-layer":"color-white","color-disabled-leverage-button-icon":"color-cold-gray-300","color-highlight-growing":"color-minty-green-400","color-highlight-falling":"color-ripe-red-500","color-price-text":"color-cold-gray-900","color-range-background":"color-cold-gray-100","color-hovered-watchlist-header-cell":"color-cold-gray-600","color-symbol-border":"color-cold-gray-100","color-selected-symbol-background":"color-tv-blue-100","color-cell-text":"color-cold-gray-900","color-cell-text-growing":"color-minty-green-400","color-cell-text-falling":"color-ripe-red-500","color-small-bg":"color-white","color-separator-active-background":"color-tv-blue-100","color-separator-border":"color-cold-gray-100","color-first-item-border":"transparent","color-tab-disabled":"transparent","color-underline-tab-default-content":"color-cold-gray-900","color-underline-tab-active-content":"color-cold-gray-900","color-menu-button":"color-white","color-menu-icon-hover":"color-cold-gray-900","color-number-input-arrow-bg-hover":"color-cold-gray-100","color-number-input-arrow-hover":"color-cold-gray-900","color-absolute-price-list-item":"color-cold-gray-800","color-absolute-price-list-item-hover-bg":"color-cold-gray-100","color-absolute-price-list-item-selected":"color-white","color-absolute-price-list-item-selected-bg":"color-tv-blue-500","color-absolute-price-arrow-hover":"color-cold-gray-900","color-absolute-price-input-wait":"color-cold-gray-150","color-relative-price-list-item":"color-cold-gray-800","color-relative-price-list-item-hover-bg":"color-cold-gray-100","color-relative-price-list-item-selected":"color-white","color-relative-price-list-item-selected-bg":"color-tv-blue-500","color-relative-price-arrow-hover":"color-cold-gray-900","color-relative-price-input-wait":"color-cold-gray-150","color-now-stick":"color-cold-gray-900","color-now-border":"color-white","color-week-day-text-active":"color-cold-gray-900","color-time-mark":"color-white","color-gray":"color-cold-gray-150","color-tooltip-gray":"color-cold-gray-400","color-tooltip-blue":"color-tv-blue-a200","color-tooltip-time":"color-cold-gray-100","color-unitconversion-dialog-separator":"color-cold-gray-150","color-radio":"color-cold-gray-300","color-radio-hover":"color-cold-gray-350","color-radio-checked":"color-tv-blue-500","color-radio-checked-bg":"color-white","color-radio-checked-hover":"color-tv-blue-600","color-radio-disabled":"color-cold-gray-300","color-radio-disabled-bg":"color-cold-gray-150","color-clickable-text":"color-cold-gray-900","color-title-background":"color-cold-gray-100","color-title-text":"color-cold-gray-900","color-ticker":"color-cold-gray-900","color-ticker-background":"color-cold-gray-100","color-tag-bg":"color-cold-gray-100","color-tag-bg-hover":"color-cold-gray-150","color-tv-blue-400-item-hover":"color-tv-blue-50","color-badge-default-bg":"color-cold-gray-100","color-out-of-session":"color-cold-gray-550","color-datepicker-tooltip-background-color":"color-cold-gray-800","color-calendar-weekdays-bg-color":"color-cold-gray-50","color-calendar-accent-color":"color-white","color-round-tab-primary-default-bg":"color-cold-gray-100","color-round-tab-primary-default-border":"color-cold-gray-100","color-round-tab-primary-default-content":"color-cold-gray-900","color-round-tab-primary-hover-bg":"color-cold-gray-150","color-round-tab-primary-hover-border":"color-cold-gray-150","color-round-tab-primary-hover-content":"color-cold-gray-900","color-round-tab-primary-active-bg":"color-cold-gray-200","color-round-tab-primary-active-border":"color-cold-gray-200","color-round-tab-primary-active-content":"color-cold-gray-900","color-round-tab-primary-selected-bg":"color-cold-gray-900","color-round-tab-primary-selected-border":"color-cold-gray-900","color-round-tab-primary-selected-content":"color-white","color-round-tab-ghost-default-bg":"transparent","color-round-tab-ghost-default-border":"transparent","color-round-tab-ghost-default-content":"color-cold-gray-900","color-round-tab-ghost-hover-bg":"transparent","color-round-tab-ghost-hover-border":"color-cold-gray-150","color-round-tab-ghost-hover-content":"color-cold-gray-900","color-round-tab-ghost-active-bg":"transparent","color-round-tab-ghost-active-border":"color-cold-gray-900","color-round-tab-ghost-active-content":"color-cold-gray-900","color-round-tab-ghost-selected-bg":"transparent","color-round-tab-ghost-selected-border":"color-cold-gray-900","color-round-tab-ghost-selected-content":"color-cold-gray-900","color-round-tab-primary-disabled-bg":"color-cold-gray-150","color-round-tab-ghost-disabled-bg":"transparent","color-round-tab-disabled-content":"color-cold-gray-300","color-ask-label":"color-tv-blue-500","color-bid-label":"color-ripe-red-500","color-text-market-close":"color-cold-gray-400","color-symbol":"color-cold-gray-900","color-info":"color-cold-gray-400","color-unitconversion-label":"color-cold-gray-900","color-unitconversion-active":"color-tv-blue-500","color-unitconversion-active-text":"color-white","color-unitconversion-highlighted-text":"color-tv-blue-200","color-unitconversion-selected-bg":"color-tv-blue-100","color-unitconversion-bottom-border":"color-cold-gray-100","color-statuses-popup-border":"color-cold-gray-100","color-resize-handle":"color-cold-gray-400","color-resize-handle-hover":"color-cold-gray-500","color-resize-handle-active":"color-cold-gray-600","color-sort-button-icon-hover":"color-cold-gray-300","color-tag-buy":"color-tv-blue-500","color-tag-sell":"color-ripe-red-500","color-tag-text":"color-white","color-main-separator":"color-tv-blue-50","color-signin-dialog-transparent-bg":"transparent","color-long-position":"color-tv-blue-500"},"dark":{"color-body-bg-superdark-legacy":"color-cold-gray-900","color-chart-active-outline":"color-tv-blue-800","color-ui-loading-indicator-bg":"color-cold-gray-900","color-ui-slider-horizontal-bg":"color-cold-gray-900","color-ui-slider-horizontal-border":"color-cold-gray-800","color-default-active-bg":"color-cold-gray-850","color-btn-disabled-bg":"color-cold-gray-750","color-button-text-color":"color-white","color-btn-danger":"color-ripe-red-700","color-btn-danger-hover":"color-ripe-red-600","color-btn-danger-active":"color-ripe-red-500","color-data-table-cell-border":"color-cold-gray-750","color-data-table-cell-status-bg":"color-cold-gray-850","color-data-table-cell-red-background-bg":"#2c2030","color-data-table-cell-blue-background-bg":"color-cold-gray-750","color-data-table-tbody-hover-bg":"color-cold-gray-900","color-data-table-btn-hover":"color-cold-gray-50","color-sortable-after-border":"color-cold-gray-450","color-data-table-stroke-grayed":"color-cold-gray-200","color-data-table-thead-bg":"color-cold-gray-800","color-white-border":"transparent","color-opacity-bg":"color-black","color-header-border":"color-cold-gray-750","color-widgetbar-titles":"color-cold-gray-200","color-headerspace-btn-active-bg":"color-cold-gray-800","color-headerspace-btn-icon-color":"color-cold-gray-200","color-widget-header-border":"color-cold-gray-800","color-widget-header-title-color":"color-cold-gray-200","color-drag-icon":"color-cold-gray-650","color-floating-toolbar-shadow":"color-black","color-item-shortcut-active-text":"color-cold-gray-200","color-item-toolbox-active-text":"color-white","color-separator":"color-cold-gray-800","color-custom-button":"color-cold-gray-200","color-custom-button-hover":"color-cold-gray-800","color-empty-state-text":"color-cold-gray-200","color-background":"color-cold-gray-850","color-tab-hover":"color-cold-gray-800","color-force-transparent":"transparent","color-title":"color-cold-gray-650","color-disabled-title":"color-cold-gray-650","color-hovered-button-background":"color-cold-gray-750","color-selected-hovered-button-background":"color-tv-blue-a700","color-child-of-selected-hovered-button-background":"color-tv-blue-a800","color-hovered-background":"color-cold-gray-800","color-rename-input-background":"color-cold-gray-800","color-dialog-background":"color-cold-gray-850","color-warn-text":"color-tan-orange-600","color-common-tooltip-force-transparent":"transparent","color-common-tooltip-hotkey-divider":"color-cold-gray-450","color-tooltip-force-transparent":"transparent","color-broker-card-background":"color-cold-gray-850","color-templates-dialog-body-border":"color-cold-gray-700","color-indicators-text":"color-cold-gray-200","color-highlight-search":"color-tv-blue-200","color-sort-button":"color-cold-gray-200","color-sort-button-bg-hover":"color-cold-gray-750","color-load-chart-dialog-text":"color-cold-gray-350","color-search-border":"color-cold-gray-700","color-properties-dialog-borders":"color-cold-gray-700","color-pointer":"color-white","color-input-text":"color-cold-gray-200","color-input-border":"color-cold-gray-650","color-empty-border":"color-white","color-empty-line":"color-ripe-red-400","color-swatch-border-hover":"color-cold-gray-650","color-active-border":"color-tv-blue-500","color-selected-border":"color-cold-gray-200","color-drawer-backdrop":"color-cold-gray-950","color-dialog-text":"color-cold-gray-200","color-text":"color-cold-gray-200","color-popup-table-background":"color-cold-gray-850","color-tooltip-wizard-bg":"color-tv-blue-500","color-header-hovered-button-bg-disabled":"color-cold-gray-900","color-header-text-disabled":"color-cold-gray-600","color-button-background":"color-cold-gray-800","color-icon":"color-cold-gray-200","color-hovered-watchlist-button-bg-disabled":"transparent","color-tv-dom-panel-header-bg":"color-cold-gray-900","color-header-title-symbol-exchange":"color-cold-gray-200","color-properties-dialog-tab-bg":"color-cold-gray-800","color-properties-dialog-defaults-text":"color-cold-gray-200","color-active-tab-text-color":"color-white","color-bg":"color-cold-gray-800","color-caret-hover":"color-cold-gray-750","color-icon-hover":"color-cold-gray-200","color-text-input":"color-cold-gray-200","color-input-bg":"color-cold-gray-850","color-input-border-hover":"color-cold-gray-550","color-suggestion-text":"color-cold-gray-450","color-background-hover":"color-cold-gray-800","color-background-selected":"color-tv-blue-a900","color-icon-background-selected-hover":"color-tv-blue-a700","color-add-dialog-text":"color-cold-gray-200","color-top-border-content":"color-cold-gray-700","color-item-row-bg-hover":"color-cold-gray-800","color-item-row-text":"color-cold-gray-200","color-item-bg-selected":"color-tv-blue-a800","color-favorite-study-template-text":"color-cold-gray-450","color-favorite-study-template-text-hover":"color-cold-gray-450","color-favorite-study-template-border":"color-cold-gray-500","color-favorite-study-template-bg-hover":"color-cold-gray-800","color-active-layout-text":"color-cold-gray-200","color-dot-bg":"color-cold-gray-650","color-info-icon":"color-cold-gray-650","color-close-button-separator":"color-cold-gray-700","color-toast-bg":"color-cold-gray-850","color-main-content-text":"color-cold-gray-200","color-context-menu-separator-hint":"color-cold-gray-650","color-informer-intent-warning-bg":"color-cold-gray-850","color-informer-intent-warning-border":"color-tan-orange-500","color-informer-light-warning-bg":"color-tan-orange-a900","color-informer-intent-danger-bg":"color-cold-gray-850","color-informer-intent-danger-border":"color-ripe-red-500","color-informer-light-danger-bg":"color-ripe-red-a900","color-informer-intent-success-bg":"color-cold-gray-850","color-informer-intent-success-border":"color-minty-green-500","color-informer-light-success-bg":"color-minty-green-a900","color-informer-intent-default":"color-cold-gray-450","color-informer-intent-default-bg":"color-cold-gray-850","color-informer-intent-default-border":"color-cold-gray-700","color-informer-light-default-bg":"color-cold-gray-800","color-informer-text-content":"color-cold-gray-200","color-circle-logo-letter":"color-cold-gray-600","color-circle-logo-background":"color-cold-gray-800","color-tooltip-background":"color-cold-gray-850","color-tooltip-text":"color-cold-gray-200","color-tooltip-card-shadow":"color-black","color-menu-wrapper":"transparent","color-scroll-fade":"color-cold-gray-900","color-option-active-bg":"color-cold-gray-800","color-option-hover-bg":"color-cold-gray-800","color-tv-button-group-primary":"color-tv-blue-50","color-force-button-transparent":"transparent","color-short-position-bg":"#49283b","color-long-position-bg":"#223d54","color-tv-dom-widget-main-value-border":"color-cold-gray-750","color-red-price":"color-ripe-red-500","color-blue-price":"color-tv-blue-500","color-buy-border-hover":"color-tv-blue-500","color-buy-border-active":"color-tv-blue-500","color-sell-border-hover":"color-ripe-red-500","color-sell-border-active":"color-ripe-red-500","color-meter-buy-bg":"color-tv-blue-a900","color-meter-buy-active-bg":"color-tv-blue-a800","color-meter-sell-bg":"color-ripe-red-a900","color-meter-sell-active-bg":"color-ripe-red-a800","color-dom-widget-nav-border":"color-cold-gray-750","color-dom-widget-button-ask":"color-tv-blue-500","color-dom-widget-button-bid":"color-ripe-red-500","color-dom-widget-button-hover-ask":"color-tv-blue-600","color-dom-widget-button-hover-bid":"color-ripe-red-600","color-dom-widget-button-active-ask":"color-tv-blue-700","color-dom-widget-button-active-bid":"color-ripe-red-700","color-dom-widget-button-close-cross":"color-cold-gray-300","color-dom-widget-button-disabled":"color-cold-gray-750","color-overall-volume-text-bid":"color-tv-blue-500","color-overall-volume-text-ask":"color-ripe-red-500","color-overall-volume-bid":"color-tv-blue-a800","color-overall-volume-ask":"color-ripe-red-a900","color-dom-widget-lock-active":"color-cold-gray-200","color-cross-white":"color-white","color-arrow-stroke":"color-cold-gray-300","color-arrow-text":"color-cold-gray-450","color-arrow-text-hover":"color-cold-gray-450","color-favorite-checked":"color-banana-yellow-800","color-delayed-warning":"color-tan-orange-800","color-button-text":"color-cold-gray-200","color-wrap-text":"color-cold-gray-400","color-item-selected":"color-tv-blue-a800","color-btn-primary-disabled-bg":"color-cold-gray-750","color-btn-primary-disabled-border":"color-cold-gray-750","color-btn-secondary-disabled-bg":"transparent","color-btn-secondary-disabled-border":"color-cold-gray-750","color-btn-disabled-content":"color-cold-gray-600","color-btn-brand-primary-default-bg":"color-tv-blue-500","color-btn-brand-primary-default-border":"color-tv-blue-500","color-btn-brand-primary-default-content":"color-white","color-btn-brand-primary-hover-bg":"color-tv-blue-600","color-btn-brand-primary-hover-border":"color-tv-blue-600","color-btn-brand-primary-hover-content":"color-white","color-btn-brand-primary-active-bg":"color-tv-blue-700","color-btn-brand-primary-active-border":"color-tv-blue-700","color-btn-brand-primary-active-content":"color-white","color-btn-brand-secondary-default-bg":"transparent","color-btn-brand-secondary-default-border":"color-tv-blue-500","color-btn-brand-secondary-default-content":"color-tv-blue-500","color-btn-brand-secondary-hover-bg":"color-tv-blue-600","color-btn-brand-secondary-hover-border":"color-tv-blue-600","color-btn-brand-secondary-hover-content":"color-white","color-btn-brand-secondary-active-bg":"color-tv-blue-700","color-btn-brand-secondary-active-border":"color-tv-blue-700","color-btn-brand-secondary-active-content":"color-white","color-btn-gray-primary-default-bg":"color-cold-gray-800","color-btn-gray-primary-default-border":"color-cold-gray-800","color-btn-gray-primary-default-content":"color-white","color-btn-gray-primary-hover-bg":"color-cold-gray-750","color-btn-gray-primary-hover-border":"color-cold-gray-750","color-btn-gray-primary-hover-content":"color-white","color-btn-gray-primary-active-bg":"color-cold-gray-700","color-btn-gray-primary-active-border":"color-cold-gray-700","color-btn-gray-primary-active-content":"color-white","color-btn-gray-secondary-default-bg":"transparent","color-btn-gray-secondary-default-border":"color-cold-gray-700","color-btn-gray-secondary-default-content":"color-cold-gray-200","color-btn-gray-secondary-hover-bg":"color-cold-gray-800","color-btn-gray-secondary-hover-border":"color-cold-gray-800","color-btn-gray-secondary-hover-content":"color-white","color-btn-gray-secondary-active-bg":"color-cold-gray-750","color-btn-gray-secondary-active-border":"color-cold-gray-750","color-btn-gray-secondary-active-content":"color-white","color-btn-green-primary-default-bg":"color-minty-green-500","color-btn-green-primary-default-border":"color-minty-green-500","color-btn-green-primary-default-content":"color-white","color-btn-green-primary-hover-bg":"color-minty-green-600","color-btn-green-primary-hover-border":"color-minty-green-600","color-btn-green-primary-hover-content":"color-white","color-btn-green-primary-active-bg":"color-minty-green-700","color-btn-green-primary-active-border":"color-minty-green-700","color-btn-green-primary-active-content":"color-white","color-btn-green-secondary-default-bg":"transparent","color-btn-green-secondary-default-border":"color-minty-green-500","color-btn-green-secondary-default-content":"color-minty-green-500","color-btn-green-secondary-hover-bg":"color-minty-green-600","color-btn-green-secondary-hover-border":"color-minty-green-600","color-btn-green-secondary-hover-content":"color-white","color-btn-green-secondary-active-bg":"color-minty-green-700","color-btn-green-secondary-active-border":"color-minty-green-700","color-btn-green-secondary-active-content":"color-white","color-btn-red-primary-default-bg":"color-ripe-red-500","color-btn-red-primary-default-border":"color-ripe-red-500","color-btn-red-primary-default-content":"color-white","color-btn-red-primary-hover-bg":"color-ripe-red-600","color-btn-red-primary-hover-border":"color-ripe-red-600","color-btn-red-primary-hover-content":"color-white","color-btn-red-primary-active-bg":"color-ripe-red-700","color-btn-red-primary-active-border":"color-ripe-red-700","color-btn-red-primary-active-content":"color-white","color-btn-red-secondary-default-bg":"transparent","color-btn-red-secondary-default-border":"color-ripe-red-500","color-btn-red-secondary-default-content":"color-ripe-red-500","color-btn-red-secondary-hover-bg":"color-ripe-red-600","color-btn-red-secondary-hover-border":"color-ripe-red-600","color-btn-red-secondary-hover-content":"color-white","color-btn-red-secondary-active-bg":"color-ripe-red-700","color-btn-red-secondary-active-border":"color-ripe-red-700","color-btn-red-secondary-active-content":"color-white","color-btn-black-primary-default-bg":"color-white","color-btn-black-primary-default-border":"color-white","color-btn-black-primary-default-content":"color-cold-gray-900","color-btn-black-primary-hover-bg":"color-cold-gray-100","color-btn-black-primary-hover-border":"color-cold-gray-100","color-btn-black-primary-hover-content":"color-cold-gray-900","color-btn-black-primary-active-bg":"color-cold-gray-200","color-btn-black-primary-active-border":"color-cold-gray-200","color-btn-black-primary-active-content":"color-cold-gray-900","color-btn-black-secondary-default-bg":"transparent","color-btn-black-secondary-default-border":"color-white","color-btn-black-secondary-default-content":"color-white","color-btn-black-secondary-hover-bg":"color-cold-gray-100","color-btn-black-secondary-hover-border":"color-cold-gray-100","color-btn-black-secondary-hover-content":"color-cold-gray-900","color-btn-black-secondary-active-bg":"color-cold-gray-200","color-btn-black-secondary-active-border":"color-cold-gray-200","color-btn-black-secondary-active-content":"color-cold-gray-900","color-btn-cyber-monday-secondary-default-bg":"transparent","color-btn-cyber-monday-secondary-default-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-default-content":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-bg":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-content":"color-cold-gray-900","color-btn-cyber-monday-secondary-active-bg":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-border":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-content":"color-cold-gray-900","color-btn-black-friday-primary-content":"color-white","color-btn-cyber-monday-primary-content":"color-cold-gray-900","color-indicators-hint-background":"color-cold-gray-750","color-icon-selected-hover":"color-tv-blue-a700","color-grayed-text":"color-cold-gray-650","color-solution-icon":"color-cold-gray-650","color-checkbox":"color-cold-gray-650","color-checkbox-hover":"color-cold-gray-600","color-checkbox-active":"color-tv-blue-700","color-checkbox-focused":"color-tv-blue-500","color-checkbox-checked":"color-tv-blue-500","color-checkbox-checked-hover":"color-tv-blue-600","color-checkbox-disabled":"color-cold-gray-650","color-checkbox-disabled-bg":"color-cold-gray-800","color-checkbox-icon":"color-cold-gray-200","color-buy-btn-text-default":"color-tv-blue-50","color-buy-btn-text-light":"color-white","color-buy-btn-text-dark":"color-tv-blue-50","color-sell-btn-text-default":"color-ripe-red-50","color-sell-btn-text-light":"color-white","color-sell-btn-text-dark":"color-ripe-red-50","color-buy-btn-chart":"color-tv-blue-500","color-buy-btn-chart-hover":"color-tv-blue-600","color-buy-btn-chart-active":"color-tv-blue-700","color-buy-btn-withoutbg-chart-default":"color-cold-gray-900","color-buy-btn-withoutbg-chart-light":"color-white","color-buy-btn-withoutbg-chart-dark":"color-cold-gray-900","color-buy-btn-withoutbg-hover-chart-default":"color-tv-blue-a900","color-buy-btn-withoutbg-hover-chart-light":"color-tv-blue-50","color-buy-btn-withoutbg-hover-chart-dark":"color-tv-blue-a900","color-buy-btn-withoutbg-active-chart-default":"color-tv-blue-a900","color-buy-btn-withoutbg-active-chart-light":"color-tv-blue-100","color-buy-btn-withoutbg-active-chart-dark":"color-tv-blue-a900","color-sell-btn-withoutbg-hover-chart-default":"color-ripe-red-a900","color-sell-btn-withoutbg-hover-chart-light":"color-ripe-red-50","color-sell-btn-withoutbg-hover-chart-dark":"color-ripe-red-a900","color-sell-btn-withoutbg-active-chart-default":"color-ripe-red-a900","color-sell-btn-withoutbg-active-chart-light":"color-ripe-red-100","color-sell-btn-withoutbg-active-chart-dark":"color-ripe-red-a900","color-sell-btn-chart":"color-ripe-red-500","color-sell-btn-chart-hover":"color-ripe-red-600","color-sell-btn-chart-active":"color-ripe-red-700","color-spread-chart-default":"color-cold-gray-200","color-spread-chart-light":"color-cold-gray-900","color-spread-chart-dark":"color-cold-gray-200","color-qty-text-chart-default":"color-cold-gray-200","color-qty-text-chart-light":"color-cold-gray-900","color-qty-text-chart-dark":"color-cold-gray-200","color-qty-bg-chart-default":"color-cold-gray-850","color-qty-bg-chart-light":"color-cold-gray-50","color-qty-bg-chart-dark":"color-cold-gray-850","color-qty-bg-hover-chart-default":"color-cold-gray-800","color-qty-bg-hover-chart-light":"color-cold-gray-100","color-qty-bg-hover-chart-dark":"color-cold-gray-800","color-qty-bg-active-chart-default":"color-cold-gray-900","color-qty-bg-active-chart-light":"color-cold-gray-150","color-qty-bg-active-chart-dark":"color-cold-gray-900","color-loading-buttons-default":"color-cold-gray-800","color-loading-buttons-light":"color-cold-gray-100","color-loading-buttons-dark":"color-cold-gray-800","color-broker-button-border-default":"color-cold-gray-700","color-broker-button-border-light":"color-cold-gray-200","color-broker-button-border-dark":"color-cold-gray-700","color-broker-button-bg-hover-default":"color-cold-gray-800","color-broker-button-bg-hover-light":"color-cold-gray-100","color-broker-button-bg-hover-dark":"color-cold-gray-800","color-broker-button-icon-default":"color-cold-gray-300","color-broker-button-icon-light":"color-black","color-broker-button-icon-dark":"color-cold-gray-300","color-overlay-scroll-bar":"color-cold-gray-650","color-drawer-item-text":"color-cold-gray-200","color-drawer-item-active-bg":"color-tv-blue-500","color-drawer-item-active-text":"color-cold-gray-200","color-item-row-border":"color-cold-gray-800","color-account-name":"color-cold-gray-200","color-currency":"color-cold-gray-450","color-currency-active":"color-cold-gray-200","color-hovered-settings-button-background":"color-cold-gray-750","color-button-bg":"color-cold-gray-450","color-button-bg-hover":"color-cold-gray-400","color-button-bg-selected":"color-tv-blue-a700","color-button-border":"color-cold-gray-650","color-item-row-text-invalid":"color-ripe-red-400","color-item-row-selected":"color-tv-blue-a800","color-item-action":"color-cold-gray-850","color-remove-action-hover":"color-ripe-red-500","color-icon-hover-color":"color-cold-gray-200","color-expand-handle-bg-hover":"color-cold-gray-700","color-primary-icon":"color-sky-blue-500","color-before-market-open":"color-tan-orange-600","color-before-market-open-bg":"color-tan-orange-400","color-after-market-close":"color-tv-blue-500","color-after-market-close-bg":"color-tv-blue-400","color-content-item-bg":"color-cold-gray-850","color-divider-intent-default":"color-cold-gray-800","color-divider-intent-primary":"color-cold-gray-700","color-range-slider-middle-bg":"color-tv-blue-500","color-context-menu-item-checked":"color-cold-gray-450","color-context-menu-item-active-shortcut":"color-cold-gray-450","color-light-tabs-bg":"color-cold-gray-800","color-keyboard-button-bg":"color-cold-gray-850","color-keyboard-button-text":"color-cold-gray-200","color-keyboard-button-shadow":"color-cold-gray-750","color-trading-widget-title-text":"color-cold-gray-300","color-widget-separator":"color-cold-gray-800","color-desktop-table-background":"color-cold-gray-900","color-mobile-table-background":"color-cold-gray-850","color-hovered-row-background":"color-cold-gray-800","color-linked-row-border":"color-tv-blue-700","color-success-row-border":"color-minty-green-600","color-danger-row-border":"color-ripe-red-700","color-cell-content-text":"color-cold-gray-200","color-desktop-row-border":"color-cold-gray-800","color-mobile-row-bottom-border":"color-cold-gray-750","color-headcell-text-hovered":"color-cold-gray-200","color-shadow":"color-cold-gray-700","color-close-button-hover-text":"color-white","color-close-button-hover-bg":"color-cold-gray-800","color-close-button-active-text":"color-white","color-close-button-active-bg":"color-cold-gray-850","color-content-disabled":"color-cold-gray-600","color-error-text":"color-cold-gray-400","color-error-background":"color-cold-gray-900","color-position-warning-bg":"color-cold-gray-800","color-icon-background-hover":"color-cold-gray-750","color-primary-popup":"color-cold-gray-900","color-modal-backdrop":"color-cold-gray-950","color-range-slider-bg":"color-cold-gray-700","color-header-separator-border":"color-cold-gray-700","color-primary-text":"color-cold-gray-200","color-empty-text":"color-cold-gray-200","color-square-tab-bg-transparent":"transparent","color-square-tab-bg-active":"color-cold-gray-750","color-square-tab-text-active":"color-white","color-square-tab-bg-selected":"color-cold-gray-800","color-tab-switcher-border":"color-cold-gray-700","color-underline-tab-selected-content":"color-cold-gray-200","color-edit-button-background-hover":"color-cold-gray-700","color-edit-button-text":"color-cold-gray-200","color-edit-button-text-disabled":"color-cold-gray-650","color-edit-button-icon-hover":"color-cold-gray-200","color-item-text":"color-cold-gray-200","color-bg-separator":"color-cold-gray-800","color-control-highlight-intent-default":"color-cold-gray-450","color-control-border-hover":"color-cold-gray-550","color-control-disabled-bg":"color-cold-gray-800","color-control-disabled-text":"color-cold-gray-650","color-input-readonly-bg":"color-cold-gray-800","color-input-readonly-border":"color-cold-gray-650","color-input-disabled-bg":"color-cold-gray-800","color-input-disabled-text":"color-cold-gray-650","color-input-disabled-border":"color-cold-gray-650","color-placeholder-up":"color-minty-green-400","color-placeholder-down":"color-ripe-red-400","color-arrow":"color-cold-gray-200","color-header-hover":"color-cold-gray-800","color-button-action-active":"color-cold-gray-700","color-button-action-border":"color-cold-gray-600","color-button-action-text":"color-cold-gray-200","color-button-action-background-disabled":"color-cold-gray-750","color-button-action-text-disabled":"color-cold-gray-650","color-btn-sell":"color-ripe-red-500","color-btn-sell-hover":"color-ripe-red-600","color-btn-sell-active":"color-ripe-red-700","color-white-hover":"color-white","color-button-action-background-text-disabled":"color-cold-gray-650","color-button-action-background-pl-disabled":"color-cold-gray-800","color-button-position-buy":"color-tv-blue-500","color-button-position-buy-hover":"color-tv-blue-600","color-button-position-buy-active":"color-tv-blue-700","color-button-position-sell":"color-ripe-red-500","color-button-position-sell-hover":"color-ripe-red-600","color-button-position-sell-active":"color-ripe-red-700","color-button-position-profit":"color-minty-green-500","color-button-position-profit-hover":"color-minty-green-600","color-button-position-profit-active":"color-minty-green-700","color-text-white":"color-white","color-errors-bg":"color-cold-gray-750","color-calculator-active":"color-cold-gray-200","color-quantity-input-border":"color-cold-gray-650","color-quantity-input-disabled":"color-cold-gray-700","color-bracket-input-disabled":"color-cold-gray-700","color-bracket-checkbox-label":"color-cold-gray-300","color-order-info-title":"color-cold-gray-200","color-preview-warning-text":"color-cold-gray-200","color-preview-warning-icon":"color-cold-gray-900","color-preview-error":"color-ripe-red-500","color-main-text":"color-cold-gray-200","color-additional-text":"color-cold-gray-450","color-close":"color-cold-gray-600","color-open":"color-minty-green-500","color-pre-market":"color-tan-orange-600","color-post-market":"color-tv-blue-500","color-details-growing":"color-minty-green-400","color-details-falling":"color-ripe-red-500","color-position-info-title":"color-cold-gray-200","color-label":"color-cold-gray-450","color-popup-menu-item":"color-cold-gray-750","color-drag-layer-background":"color-tv-blue-a800","color-header-text":"color-cold-gray-200","color-message-bg":"color-cold-gray-750","color-message-error-bg":"#6f2626","color-summary-field":"color-cold-gray-200","color-replay-select-point":"color-cold-gray-700","color-container-border":"color-cold-gray-800","color-container-hover-bg":"color-cold-gray-800","color-main-background":"color-cold-gray-850","color-icon-selected":"color-cold-gray-200","color-highlighted-text":"color-tv-blue-200","color-switcher-track-off":"color-cold-gray-600","color-switcher-track-off-active":"color-cold-gray-450","color-switcher-thumb":"color-white","color-switcher-track-bg-off-disabled":"color-cold-gray-750","color-switcher-track-border-off-disabled":"color-cold-gray-700","color-switcher-thumb-disabled":"color-cold-gray-600","color-right-main":"color-minty-green-600","color-right-hover":"color-minty-green-700","color-left-main":"color-tv-blue-600","color-left-hover":"color-tv-blue-500","color-track-bg-on":"color-cold-gray-600","color-bar":"color-cold-gray-200","color-active-bar":"color-white","color-button-text-active":"color-white","color-button-text-disabled":"color-cold-gray-600","color-button-disabled-bg":"color-cold-gray-750","color-input-with-error-label":"color-cold-gray-650","color-button-hover":"color-cold-gray-800","color-confirm-button-bg":"#131722","color-light-tab-button-default-bg":"color-cold-gray-800","color-light-tab-button-default-content":"color-cold-gray-200","color-light-tab-button-hover-bg":"color-cold-gray-750","color-light-tab-button-active-bg":"color-cold-gray-700","color-light-tab-button-disabled-bg":"color-cold-gray-800","color-light-tab-button-disabled-content":"color-cold-gray-600","color-light-tab-button-selected-bg":"color-cold-gray-900","color-light-tab-button-selected-content":"color-white","color-text-btn-bg-hover-brand":"color-tv-blue-a800","color-text-btn-bg-active-brand":"color-tv-blue-a800","color-text-btn-bg-checked-brand":"color-tv-blue-a800","color-text-btn-content-brand":"color-tv-blue-500","color-text-btn-content-hover-brand":"color-tv-blue-100","color-text-btn-content-active-brand":"color-tv-blue-200","color-text-btn-content-disabled-brand":"color-cold-gray-600","color-text-btn-content-checked-brand":"color-tv-blue-100","color-text-btn-bg-hover-gray":"color-cold-gray-800","color-text-btn-bg-active-gray":"color-cold-gray-750","color-text-btn-bg-checked-gray":"color-cold-gray-800","color-text-btn-content-gray":"color-cold-gray-200","color-text-btn-content-hover-gray":"color-white","color-text-btn-content-active-gray":"color-white","color-text-btn-content-disabled-gray":"color-cold-gray-600","color-text-btn-content-checked-gray":"color-white","color-text-btn-bg-hover-light-gray":"color-cold-gray-800","color-text-btn-bg-active-light-gray":"color-cold-gray-750","color-text-btn-bg-checked-light-gray":"color-cold-gray-800","color-text-btn-content-light-gray":"color-cold-gray-450","color-text-btn-content-hover-light-gray":"color-white","color-text-btn-content-active-light-gray":"color-white","color-text-btn-content-checked-light-gray":"color-white","color-text-btn-content-disabled-light-gray":"color-cold-gray-600","color-text-btn-activated-bg":"color-tv-blue-a800","color-text-btn-activated-content":"color-tv-blue-100","color-spread":"color-cold-gray-300","color-section-bg":"color-cold-gray-800","color-section-content":"color-cold-gray-650","color-section-content-active":"color-cold-gray-200","color-section-sell-bg-hover":"color-ripe-red-600","color-section-sell-bg-active":"color-ripe-red-700","color-active-section-sell-bg":"color-ripe-red-500","color-section-buy-bg-hover":"color-tv-blue-600","color-section-buy-bg-active":"color-tv-blue-700","color-active-section-buy-bg":"color-tv-blue-500","color-custom-field-section-title":"color-cold-gray-300","color-custom-field-checkbox-label":"color-cold-gray-300","color-input-placeholder-wait":"color-cold-gray-500","color-progress-track":"color-cold-gray-650","color-progress":"color-tv-blue-500","color-margin-overflow":"color-ripe-red-500","color-wait":"color-cold-gray-700","color-price":"color-cold-gray-200","color-info-table-text-highlighted":"color-cold-gray-200","color-info-table-row-hover-bg":"color-cold-gray-800","color-info-table-text-disabled":"color-cold-gray-700","color-info-table-text-buy":"color-tv-blue-500","color-info-table-text-sell":"color-ripe-red-500","color-textarea-bg":"color-cold-gray-900","color-scrollbar-default":"color-cold-gray-650","color-scrollbar-hover":"color-cold-gray-450","color-scrollbar-active":"color-cold-gray-350","color-child-of-selected-background":"color-tv-blue-a900","color-drop-target-border":"color-tv-blue-500","color-tree-bg":"color-cold-gray-900","color-dots":"color-cold-gray-200","color-switch-bg":"transparent","color-switch-hover-bg":"color-cold-gray-800","color-switch-border":"color-cold-gray-650","color-active-switch-bg":"color-tv-blue-500","color-drop-layer":"color-cold-gray-800","color-disabled-leverage-button-icon":"color-cold-gray-650","color-highlight-growing":"color-minty-green-400","color-highlight-falling":"color-ripe-red-500","color-price-text":"color-cold-gray-200","color-range-background":"color-cold-gray-800","color-hovered-watchlist-header-cell":"color-cold-gray-400","color-symbol-border":"color-cold-gray-800","color-selected-symbol-background":"color-tv-blue-a800","color-cell-text":"color-cold-gray-200","color-cell-text-growing":"color-minty-green-400","color-cell-text-falling":"color-ripe-red-500","color-small-bg":"color-cold-gray-850","color-separator-active-background":"color-tv-blue-a800","color-separator-border":"color-cold-gray-800","color-first-item-border":"transparent","color-tab-disabled":"transparent","color-underline-tab-default-content":"color-cold-gray-200","color-underline-tab-active-content":"color-cold-gray-200","color-menu-button":"color-cold-gray-850","color-menu-icon-hover":"color-cold-gray-200","color-number-input-arrow-bg-hover":"color-cold-gray-750","color-number-input-arrow-hover":"color-cold-gray-200","color-absolute-price-list-item":"color-cold-gray-200","color-absolute-price-list-item-hover-bg":"color-cold-gray-800","color-absolute-price-list-item-selected":"color-tv-blue-50","color-absolute-price-list-item-selected-bg":"color-tv-blue-500","color-absolute-price-arrow-hover":"color-cold-gray-200","color-absolute-price-input-wait":"color-cold-gray-700","color-relative-price-list-item":"color-cold-gray-200","color-relative-price-list-item-hover-bg":"color-cold-gray-800","color-relative-price-list-item-selected":"color-tv-blue-50","color-relative-price-list-item-selected-bg":"color-tv-blue-500","color-relative-price-arrow-hover":"color-cold-gray-200","color-relative-price-input-wait":"color-cold-gray-700","color-now-stick":"color-cold-gray-200","color-now-border":"color-cold-gray-850","color-week-day-text-active":"color-cold-gray-200","color-time-mark":"color-cold-gray-850","color-gray":"color-cold-gray-700","color-tooltip-gray":"color-cold-gray-300","color-tooltip-blue":"color-tv-blue-a200","color-tooltip-time":"color-cold-gray-100","color-unitconversion-dialog-separator":"color-cold-gray-700","color-radio":"color-cold-gray-650","color-radio-hover":"color-cold-gray-600","color-radio-checked":"color-tv-blue-500","color-radio-checked-bg":"color-cold-gray-200","color-radio-checked-hover":"color-tv-blue-600","color-radio-disabled":"color-cold-gray-650","color-radio-disabled-bg":"color-cold-gray-800","color-clickable-text":"color-cold-gray-450","color-title-background":"color-cold-gray-800","color-title-text":"color-cold-gray-200","color-ticker":"color-cold-gray-200","color-ticker-background":"color-cold-gray-800","color-tag-bg":"color-cold-gray-800","color-tag-bg-hover":"color-cold-gray-750","color-tv-blue-400-item-hover":"color-cold-gray-800","color-badge-default-bg":"color-cold-gray-800","color-out-of-session":"color-cold-gray-450","color-datepicker-tooltip-background-color":"color-cold-gray-700","color-calendar-weekdays-bg-color":"color-cold-gray-800","color-calendar-accent-color":"color-cold-gray-100","color-round-tab-primary-default-bg":"color-cold-gray-800","color-round-tab-primary-default-border":"color-cold-gray-800","color-round-tab-primary-default-content":"color-cold-gray-200","color-round-tab-primary-hover-bg":"color-cold-gray-750","color-round-tab-primary-hover-border":"color-cold-gray-750","color-round-tab-primary-hover-content":"color-cold-gray-200","color-round-tab-primary-active-bg":"color-cold-gray-700","color-round-tab-primary-active-border":"color-cold-gray-700","color-round-tab-primary-active-content":"color-white","color-round-tab-primary-selected-bg":"color-white","color-round-tab-primary-selected-border":"color-white","color-round-tab-primary-selected-content":"color-cold-gray-900","color-round-tab-ghost-default-bg":"transparent","color-round-tab-ghost-default-border":"transparent","color-round-tab-ghost-default-content":"color-cold-gray-200","color-round-tab-ghost-hover-bg":"transparent","color-round-tab-ghost-hover-border":"color-cold-gray-700","color-round-tab-ghost-hover-content":"color-cold-gray-200","color-round-tab-ghost-active-bg":"transparent","color-round-tab-ghost-active-border":"color-white","color-round-tab-ghost-active-content":"color-white","color-round-tab-ghost-selected-bg":"transparent","color-round-tab-ghost-selected-border":"color-white","color-round-tab-ghost-selected-content":"color-white","color-round-tab-primary-disabled-bg":"color-cold-gray-750","color-round-tab-ghost-disabled-bg":"transparent","color-round-tab-disabled-content":"color-cold-gray-600","color-ask-label":"color-tv-blue-500","color-bid-label":"color-ripe-red-500","color-text-market-close":"color-cold-gray-300","color-symbol":"color-cold-gray-400","color-info":"color-cold-gray-400","color-unitconversion-label":"color-cold-gray-200","color-unitconversion-active":"color-tv-blue-500","color-unitconversion-active-text":"color-cold-gray-200","color-unitconversion-highlighted-text":"color-tv-blue-200","color-unitconversion-selected-bg":"color-tv-blue-a800","color-unitconversion-bottom-border":"color-cold-gray-800","color-statuses-popup-border":"color-cold-gray-800","color-resize-handle":"color-cold-gray-500","color-resize-handle-hover":"color-cold-gray-400","color-resize-handle-active":"color-cold-gray-300","color-sort-button-icon-hover":"color-cold-gray-600","color-tag-buy":"color-tv-blue-500","color-tag-sell":"color-ripe-red-500","color-tag-text":"color-white","color-main-separator":"color-tv-blue-a900","color-signin-dialog-transparent-bg":"transparent","color-long-position":"color-tv-blue-500"}}'),y={ -...n,...i,...g.dark},u={...a,...d,...g.light};function s(o){var r;const l={};for(const[c,e]of Object.entries(o))"string"==typeof e&&(void 0===l[e]&&(l[e]=[]),null===(r=l[e])||void 0===r||r.push(c));return l}function h(o,r){const l=[];for(let c=1;c<20;c++)l.push(o[`${r}-${50*c}`]);return l}function v(o){return{color1:h(o,"color-tv-blue"),color2:h(o,"color-cold-gray"),color3:h(o,"color-ripe-red"),color4:h(o,"color-minty-green"),color5:h(o,"color-tan-orange"),color6:h(o,"color-grapes-purple"),color7:h(o,"color-banana-yellow"),white:[o["color-white"]],black:[o["color-black"]]}}const p=s(y),m=s(u);function f(o,r){const l=/([a-z]+[\-a-z+]+-[a-z]+)-?([0-9]+)?/.exec(o);if(null===l)return;const c=l[1],e=parseInt(l[2])/50-1;switch(c){case"color-tv-blue":return r.color1[e];case"color-cold-gray":return r.color2[e];case"color-ripe-red":return r.color3[e];case"color-minty-green":return r.color4[e];case"color-tan-orange":return r.color5[e];case"color-grapes-purple":return r.color6[e];case"color-banana-yellow":return r.color7[e];case"color-white":return r.white;case"color-black":return r.black}}const w={};for(const[o,r]of Object.entries(b))w[r]=o;const k=v(p),x=v(m);function q(o,r){return(r===e.StdTheme.Light?x:k)[o]}function S(o,r,l){const c=(r===e.StdTheme.Light?u:y)[o];if(void 0===c)return;return f(c,l)}function T(o,r){const l=w[o];if(void 0!==l)return f(l,r)}var C=l(36986);const z="theme-custom";function L(o){D(e.StdTheme.Light,o[e.StdTheme.Light]),D(e.StdTheme.Dark,o[e.StdTheme.Dark]),window.requestAnimationFrame((()=>{$(),j(":root",e.StdTheme.Light,o[e.StdTheme.Light]),j(".theme-dark:root",e.StdTheme.Dark,o[e.StdTheme.Dark]),function(o){R().insertRule(`.chart-widget__top--themed-dark {\n\t\t--themed-color-legend-background-tertiary: ${S("color-background-tertiary",e.StdTheme.Dark,o.dark)};\n\t\t--themed-color-legend-background-secondary-inverse: ${S("color-background-secondary-inverse",e.StdTheme.Dark,o.dark)};\n\t}`),R().insertRule(`.chart-widget__top--themed-light {\n\t\t--themed-color-legend-background-tertiary: ${S("color-background-tertiary",e.StdTheme.Light,o.light)};\n\t\t--themed-color-legend-background-secondary-inverse: ${S("color-background-secondary-inverse",e.StdTheme.Light,o.light)};\n\t}`)}(o)}))}function O(){(0,e.restoreStdThemes)(),window.requestAnimationFrame((()=>{!function(){const o=R();for(;o.cssRules.length>0;)o.deleteRule(0)}(),A()}))}function $(){const o=window.document.documentElement.classList;o.contains(z)||o.add(z)}function A(){window.document.documentElement.classList.remove(z)}let F;function R(){return void 0===F&&(F=new CSSStyleSheet,(0,C.getChartingLibraryGlobalContext)().document.adoptedStyleSheets.push(F)),F}function j(o,r,l){var c;const e=[];for(const[o,t]of Object.entries(l))if(Array.isArray(t)){const l=q(o,r);for(let o=0;o{l.r(r),l.d(r,{CustomThemesApi:()=>t});var c=l(57626),e=l(36986);class t{async applyCustomThemes(o){const r=(0,e.getChartingLibraryGlobalContext)(),l=r.tradingViewApi.themes().getCurrentThemeName();(0,c.overrideStandardThemes)(o),await r.tradingViewApi.themes().setStdTheme(l,void 0,!0)}async resetCustomThemes(){const o=(0,e.getChartingLibraryGlobalContext)(),r=o.tradingViewApi.themes().getCurrentThemeName();(0,c.restoreStandardThemes)(),await o.tradingViewApi.themes().setStdTheme(r,void 0,!0)}}},57626:(o,r,l)=>{l.r(r),l.d(r,{addCustomThemesRootClass:()=>A,overrideStandardThemes:()=>O,removeCustomThemesRootClass:()=>R,restoreStandardThemes:()=>$});var c=l(30551),e=l(26843),t=l(85662) +;const a=JSON.parse('{"color-background-primary":"color-white","color-background-secondary":"color-cold-gray-50","color-background-tertiary":"color-cold-gray-100","color-background-dark-primary":"color-cold-gray-800","color-background-dark-secondary":"color-white","color-background-disabled":"color-cold-gray-150","color-background-special-primary":"color-white","color-background-special-secondary":"color-tv-blue-50","color-background-special-tertiary":"color-tv-blue-100","color-background-page-platform":"color-white","color-background-page-promo":"color-black","color-background-page-social":"color-white","color-background-dialog-simple":"color-white","color-background-dialog-complicated":"color-white","color-background-dialog-promo":"color-white","color-background-dialog-fullscreen":"color-white","color-content-icons-primary":"color-cold-gray-900","color-content-icons-secondary":"color-cold-gray-550","color-content-icons-tertiary":"color-cold-gray-300","color-content-text-promo-primary":"color-white","color-content-text-promo-secondary":"color-cold-gray-200","color-content-text-promo-tertiary":"color-cold-gray-450","color-content-text-social-primary":"color-cold-gray-900","color-content-text-social-secondary":"color-cold-gray-550","color-content-text-social-tertiary":"color-cold-gray-300","color-divider-line-primary-special":"color-cold-gray-900","color-divider-line-secondary-special":"color-tv-blue-100","color-divider-line-primary":"color-cold-gray-150","color-divider-line-secondary":"color-cold-gray-100","color-link-primary-default":"color-tv-blue-500","color-link-primary-hover":"color-tv-blue-600","color-link-primary-active":"color-tv-blue-700","color-link-secondary-default":"color-tv-blue-300","color-link-secondary-hover":"color-tv-blue-400","color-link-secondary-active":"color-tv-blue-500","color-static-transparent":"color-transparent","color-static-warning":"color-tan-orange-500","color-static-danger":"color-ripe-red-500","color-static-highlight":"color-tv-blue-50","color-static-neutral":"color-cold-gray-550","color-static-success":"color-minty-green-500","color-button-content-disabled":"color-cold-gray-300","color-button-content-ghost-neutral-bold-default":"color-cold-gray-900","color-button-content-ghost-neutral-bold-hover":"color-cold-gray-900","color-button-content-ghost-neutral-bold-active":"color-white","color-button-content-ghost-accent-default":"color-tv-blue-500","color-button-content-ghost-accent-hover":"color-tv-blue-500","color-button-content-ghost-accent-active":"color-white","color-button-content-ghost-neutral-default":"color-cold-gray-900","color-button-content-ghost-neutral-hover":"color-cold-gray-900","color-button-content-ghost-neutral-active":"color-cold-gray-900","color-button-content-ghost-neutral-is-selected":"color-cold-gray-900","color-button-content-primary-neutral-bold-default":"color-white","color-button-content-primary-neutral-bold-hover":"color-white","color-button-content-primary-neutral-bold-active":"color-white","color-button-content-primary-accent-default":"color-white","color-button-content-primary-accent-hover":"color-white","color-button-content-primary-accent-active":"color-white","color-button-content-primary-neutral-default":"color-cold-gray-900","color-button-content-primary-neutral-hover":"color-cold-gray-900","color-button-content-primary-neutral-active":"color-cold-gray-900","color-button-content-primary-neutral-is-selected":"color-cold-gray-900","color-button-content-primary-success-default":"color-white","color-button-content-primary-success-hover":"color-white","color-button-content-primary-success-active":"color-white","color-button-content-primary-accent-light-default":"color-tv-blue-600","color-button-content-primary-accent-light-hover":"color-tv-blue-600","color-button-content-primary-accent-light-active":"color-tv-blue-600","color-button-content-primary-accent-light-is-selected":"color-tv-blue-600","color-button-content-primary-danger-default":"color-white","color-button-content-primary-danger-hover":"color-white","color-button-content-primary-danger-active":"color-white","color-button-content-quiet-primary-neutral-bold-default":"color-cold-gray-900","color-button-content-quiet-primary-neutral-bold-hover":"color-white","color-button-content-quiet-primary-neutral-bold-active":"color-white","color-button-content-quiet-primary-neutral-default":"color-cold-gray-900","color-button-content-quiet-primary-neutral-hover":"color-cold-gray-900","color-button-content-quiet-primary-neutral-active":"color-cold-gray-900","color-button-content-quiet-primary-neutral-is-selected":"color-cold-gray-900","color-button-content-quiet-primary-accent-light-default":"color-tv-blue-500","color-button-content-quiet-primary-accent-light-hover":"color-tv-blue-500","color-button-content-quiet-primary-accent-light-active":"color-tv-blue-500","color-button-content-secondary-neutral-bold-default":"color-cold-gray-900","color-button-content-secondary-neutral-bold-hover":"color-white","color-button-content-secondary-neutral-bold-active":"color-white","color-button-content-secondary-accent-default":"color-tv-blue-500","color-button-content-secondary-accent-hover":"color-white","color-button-content-secondary-accent-active":"color-white","color-button-content-secondary-neutral-default":"color-cold-gray-900","color-button-content-secondary-neutral-hover":"color-cold-gray-900","color-button-content-secondary-neutral-active":"color-cold-gray-900","color-button-content-secondary-neutral-is-selected":"color-cold-gray-900","color-button-content-secondary-success-default":"color-minty-green-500","color-button-content-secondary-success-hover":"color-white","color-button-content-secondary-success-active":"color-white","color-button-content-secondary-accent-light-default":"color-tv-blue-600","color-button-content-secondary-accent-light-hover":"color-tv-blue-600","color-button-content-secondary-accent-light-active":"color-tv-blue-600","color-button-content-secondary-accent-light-is-selected":"color-tv-blue-600","color-button-content-secondary-danger-default":"color-ripe-red-500","color-button-content-secondary-danger-hover":"color-white","color-button-content-secondary-danger-active":"color-white","color-button-fill&border-disabled":"color-cold-gray-150","color-button-fill&border-ghost-neutral-bold-default":"color-static-transparent","color-button-fill&border-ghost-neutral-bold-hover":"color-cold-gray-800","color-button-fill&border-ghost-neutral-bold-active":"color-cold-gray-700","color-button-fill&border-ghost-accent-default":"color-static-transparent","color-button-fill&border-ghost-accent-hover":"color-tv-blue-500","color-button-fill&border-ghost-accent-active":"color-tv-blue-700","color-button-fill&border-ghost-neutral-default":"color-static-transparent","color-button-fill&border-ghost-neutral-hover":"color-cold-gray-100","color-button-fill&border-ghost-neutral-active":"color-cold-gray-150","color-button-fill&border-ghost-neutral-is-selected":"color-static-transparent","color-button-fill&border-ghost-accent-light-default":"color-static-transparent","color-button-fill&border-ghost-accent-light-hover":"color-tv-blue-100","color-button-fill&border-ghost-accent-light-active":"color-tv-blue-200","color-button-fill&border-ghost-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-primary-neutral-bold-default":"color-cold-gray-900","color-button-fill&border-primary-neutral-bold-hover":"color-cold-gray-800","color-button-fill&border-primary-neutral-bold-active":"color-cold-gray-700","color-button-fill&border-primary-accent-default":"color-tv-blue-500","color-button-fill&border-primary-accent-hover":"color-tv-blue-600","color-button-fill&border-primary-accent-active":"color-tv-blue-700","color-button-fill&border-primary-neutral-default":"color-cold-gray-100","color-button-fill&border-primary-neutral-hover":"color-cold-gray-150","color-button-fill&border-primary-neutral-active":"color-cold-gray-200","color-button-fill&border-primary-neutral-is-selected":"color-cold-gray-100","color-button-fill&border-primary-success-default":"color-minty-green-500","color-button-fill&border-primary-success-hover":"color-minty-green-600","color-button-fill&border-primary-success-active":"color-minty-green-700","color-button-fill&border-primary-accent-light-default":"color-tv-blue-50","color-button-fill&border-primary-accent-light-hover":"color-tv-blue-100","color-button-fill&border-primary-accent-light-active":"color-tv-blue-200","color-button-fill&border-primary-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-primary-danger-default":"color-ripe-red-500","color-button-fill&border-primary-danger-hover":"color-ripe-red-600","color-button-fill&border-primary-danger-active":"color-ripe-red-700","color-button-fill&border-quiet-primary-neutral-bold-default":"color-white","color-button-fill&border-quiet-primary-neutral-bold-hover":"color-cold-gray-900","color-button-fill&border-quiet-primary-neutral-bold-active":"color-cold-gray-800","color-button-fill&border-quiet-primary-accent-default":"color-white","color-button-fill&border-quiet-primary-accent-hover":"color-tv-blue-500","color-button-fill&border-quiet-primary-accent-active":"color-tv-blue-600","color-button-fill&border-quiet-primary-neutral-default":"color-white","color-button-fill&border-quiet-primary-neutral-hover":"color-cold-gray-100","color-button-fill&border-quiet-primary-neutral-active":"color-cold-gray-150","color-button-fill&border-quiet-primary-neutral-is-selected":"color-cold-gray-100","color-button-fill&border-quiet-primary-success-default":"color-white","color-button-fill&border-quiet-primary-success-hover":"color-minty-green-500","color-button-fill&border-quiet-primary-success-active":"color-minty-green-600","color-button-fill&border-quiet-primary-accent-light-default":"color-white","color-button-fill&border-quiet-primary-accent-light-hover":"color-tv-blue-50","color-button-fill&border-quiet-primary-accent-light-active":"color-tv-blue-100","color-button-fill&border-quiet-primary-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-quiet-primary-danger-default":"color-white","color-button-fill&border-quiet-primary-danger-hover":"color-ripe-red-500","color-button-fill&border-quiet-primary-danger-active":"color-ripe-red-600","color-button-fill&border-secondary-neutral-bold-default":"color-cold-gray-900","color-button-fill&border-secondary-neutral-bold-hover":"color-cold-gray-800","color-button-fill&border-secondary-neutral-bold-active":"color-cold-gray-700","color-button-fill&border-secondary-accent-default":"color-tv-blue-500","color-button-fill&border-secondary-accent-hover":"color-tv-blue-600","color-button-fill&border-secondary-accent-active":"color-tv-blue-700","color-button-fill&border-secondary-neutral-default":"color-cold-gray-150","color-button-fill&border-secondary-neutral-hover":"color-cold-gray-100","color-button-fill&border-secondary-neutral-active":"color-cold-gray-150","color-button-fill&border-secondary-neutral-is-selected":"color-cold-gray-100","color-button-fill&border-secondary-success-default":"color-minty-green-500","color-button-fill&border-secondary-success-hover":"color-minty-green-600","color-button-fill&border-secondary-success-active":"color-minty-green-700","color-button-fill&border-secondary-accent-light-default":"color-tv-blue-50","color-button-fill&border-secondary-accent-light-hover":"color-tv-blue-100","color-button-fill&border-secondary-accent-light-active":"color-tv-blue-200","color-button-fill&border-secondary-accent-light-is-selected":"color-tv-blue-100","color-button-fill&border-secondary-danger-default":"color-ripe-red-500","color-button-fill&border-secondary-danger-hover":"color-ripe-red-600","color-button-fill&border-secondary-danger-active":"color-ripe-red-700","color-text-field-border-default":"color-cold-gray-200","color-text-field-border-hover":"color-cold-gray-350","color-text-field-border-active":"color-tv-blue-500","color-text-field-border-disabled":"color-cold-gray-200","color-text-field-border-error":"color-ripe-red-500","color-text-field-border-focus-not-active":"color-tv-blue-500","color-text-field-border-focus-read-only":"color-tv-blue-500","color-text-field-border-read-only":"color-cold-gray-200","color-text-field-border-success":"color-minty-green-500","color-text-field-border-warning":"color-tan-orange-500","color-text-field-border-with-value":"color-cold-gray-200","color-text-field-description-default":"color-cold-gray-550","color-text-field-description-error":"color-ripe-red-500","color-text-field-description-success":"color-minty-green-500","color-text-field-description-warning":"color-tan-orange-500","color-text-field-fill-default":"color-static-transparent","color-text-field-fill-disabled":"color-cold-gray-100","color-text-field-fill-focus-read-only":"color-cold-gray-50","color-text-field-fill-read-only":"color-cold-gray-50","color-text-field-label-default":"color-cold-gray-550","color-text-field-label-error":"color-ripe-red-500","color-text-field-label-link":"color-tv-blue-500","color-text-field-label-success":"color-minty-green-500","color-text-field-label-warning":"color-tan-orange-500","color-text-field-left-slot-icon-default":"color-cold-gray-550","color-text-field-left-slot-icon-disabled":"color-cold-gray-350","color-text-field-placeholder-default":"color-cold-gray-550","color-text-field-placeholder-disabled":"color-cold-gray-350","color-text-field-right-slot-arrows-bg-default":"color-static-transparent","color-text-field-right-slot-arrows-bg-hover":"color-cold-gray-100","color-text-field-right-slot-arrows-bg-active":"color-cold-gray-150","color-text-field-right-slot-icons-and-text-default":"color-cold-gray-550","color-text-field-right-slot-icons-and-text-disabled":"color-cold-gray-350","color-text-field-right-slot-icons-and-text-active":"color-cold-gray-900","color-text-field-right-slot-icons-and-text-error":"color-ripe-red-500","color-text-field-right-slot-icons-and-text-hover":"color-cold-gray-900","color-text-field-value-default":"color-cold-gray-900","color-text-field-value-disabled":"color-cold-gray-550","color-counter-fill-danger":"color-ripe-red-500","color-counter-content-danger":"color-white","color-counter-fill-accent":"color-tv-blue-500","color-counter-content-accent":"color-white","color-counter-fill-accent-light":"color-tv-blue-50","color-counter-content-accent-light":"color-tv-blue-600","color-counter-fill-neutral-bold":"color-black","color-counter-content-neutral-bold":"color-white","color-counter-fill-neutral":"color-cold-gray-100","color-counter-content-neutral":"color-cold-gray-900","color-counter-border-primary":"color-white","color-counter-border-secondary":"color-white","color-counter-border-tertiary":"color-white","color-filter-select-fill&border-checked-default":"color-tv-blue-50","color-filter-select-fill&border-checked-hover":"color-tv-blue-100","color-filter-select-fill&border-checked-active":"color-tv-blue-200","color-filter-select-fill&border-checked-isOpened":"color-tv-blue-100","color-filter-select-content-checked-accent-default":"color-tv-blue-600","color-filter-select-content-checked-accent-hover":"color-tv-blue-600","color-filter-select-content-checked-accent-active":"color-tv-blue-600","color-filter-select-content-checked-neutral-default":"color-cold-gray-900","color-filter-select-content-checked-neutral-hover":"color-cold-gray-900","color-filter-select-content-checked-neutral-active":"color-cold-gray-900","color-filter-select-fill&border-not-checked-default":"color-cold-gray-150","color-filter-select-fill&border-not-checked-hover":"color-cold-gray-100","color-filter-select-fill&border-not-checked-active":"color-cold-gray-150","color-filter-select-fill&border-not-checked-isOpened":"color-cold-gray-100","color-filter-select-content-not-checked-default":"color-cold-gray-550","color-filter-select-content-not-checked-hover":"color-cold-gray-550","color-filter-select-content-not-checked-active":"color-cold-gray-550","color-symbol-change-positive":"color-minty-green-600","color-symbol-change-neutral":"color-cold-gray-900","color-symbol-change-negative":"color-ripe-red-600","color-symbol-rating-positive":"color-minty-green-600","color-symbol-rating-neutral":"color-cold-gray-550","color-symbol-rating-negative":"color-ripe-red-600","color-other-transparent":"color-transparent","color-shadow-primary-neutral-extra-heavy":"#00000033","color-shadow-primary-neutral-light":"color-cold-gray-150","color-shadow-secondary-neutral-light":"color-cold-gray-150","color-other-modal-background":"#9598a180","color-other-shadow-primary-neutral-extra-heavy":"#00000033","color-other-shadow-primary-neutral-light":"color-cold-gray-150","color-other-shadow-secondary-neutral-light":"color-cold-gray-150","color-background-primary-accent-extra-light":"color-tv-blue-50","color-background-primary-accent-light":"color-tv-blue-100","color-background-primary-inverse":"color-white","color-background-primary-neutral-bold":"color-cold-gray-800","color-background-primary-neutral-extra-heavy":"color-black","color-background-primary-neutral-extra-light":"color-cold-gray-50","color-background-primary-neutral-light":"color-cold-gray-100","color-background-primary-neutral-normal":"color-cold-gray-150","color-background-secondary-inverse":"color-white","color-background-tertiary-inverse":"color-white","color-container-fill-primary-accent":"color-tv-blue-500","color-container-fill-primary-accent-bold":"color-tv-blue-700","color-container-fill-primary-accent-extra-light":"color-tv-blue-50","color-container-fill-primary-accent-light":"color-tv-blue-100","color-container-fill-primary-accent-normal":"color-tv-blue-200","color-container-fill-primary-accent-semi-bold":"color-tv-blue-600","color-container-fill-primary-accent-alt1-normal":"color-deep-blue-a400","color-container-fill-primary-accent-alt2-bold":"color-sky-blue-700","color-container-fill-primary-danger":"color-ripe-red-500","color-container-fill-primary-danger-bold":"color-ripe-red-700","color-container-fill-primary-danger-extra-light":"color-ripe-red-50","color-container-fill-primary-danger-light":"color-ripe-red-100","color-container-fill-primary-danger-normal":"color-ripe-red-200","color-container-fill-primary-danger-semi-bold":"color-ripe-red-600","color-container-fill-primary-inverse":"color-white","color-container-fill-primary-neutral":"color-cold-gray-400","color-container-fill-primary-neutral-bold":"color-cold-gray-700","color-container-fill-primary-neutral-extra-bold":"color-cold-gray-800","color-container-fill-primary-neutral-extra-heavy":"color-black","color-container-fill-primary-neutral-extra-light":"color-cold-gray-100","color-container-fill-primary-neutral-heavy":"color-cold-gray-900","color-container-fill-primary-neutral-light":"color-cold-gray-150","color-container-fill-primary-neutral-normal":"color-cold-gray-200","color-container-fill-primary-neutral-thin":"color-cold-gray-50","color-container-fill-primary-neutral-medium":"color-cold-gray-550","color-container-fill-primary-success":"color-minty-green-500","color-container-fill-primary-success-bold":"color-minty-green-700","color-container-fill-primary-success-extra-light":"color-minty-green-50","color-container-fill-primary-success-light":"color-minty-green-100","color-container-fill-primary-success-normal":"color-minty-green-200","color-container-fill-primary-success-semi-bold":"color-minty-green-600","color-container-fill-primary-warning":"color-tan-orange-500","color-container-fill-primary-warning-bold":"color-tan-orange-700","color-container-fill-primary-warning-extra-light":"color-tan-orange-50","color-container-fill-primary-warning-light":"color-tan-orange-100","color-container-fill-primary-warning-normal":"color-tan-orange-200","color-container-fill-primary-warning-semi-bold":"color-tan-orange-600","color-container-fill-quaternary-inverse":"color-white","color-container-fill-secondary-accent-extra-light":"color-tv-blue-50","color-container-fill-secondary-accent-light":"color-tv-blue-100","color-container-fill-secondary-accent-normal":"color-tv-blue-200","color-container-fill-secondary-accent":"color-tv-blue-a400","color-container-fill-secondary-accent-semi-bold":"color-tv-blue-600","color-container-fill-secondary-inverse":"color-white","color-container-fill-secondary-neutral":"color-cold-gray-550","color-container-fill-secondary-neutral-extra-heavy":"color-black","color-container-fill-secondary-neutral-extra-light":"color-cold-gray-100","color-container-fill-secondary-neutral-heavy":"color-cold-gray-900","color-container-fill-secondary-neutral-light":"color-cold-gray-150","color-container-fill-secondary-neutral-normal":"color-cold-gray-300","color-container-fill-secondary-neutral-semi-bold":"color-cold-gray-600","color-container-fill-secondary-danger-bold":"color-ripe-red-700","color-container-fill-secondary-success-semi-bold":"color-minty-green-600","color-container-fill-secondary-warning-semi-bold":"color-tan-orange-600","color-container-fill-tertiary-accent":"color-tv-blue-a600","color-container-fill-tertiary-accent-bold":"color-tv-blue-a900","color-container-fill-tertiary-accent-light":"color-tv-blue-100","color-container-fill-tertiary-inverse":"color-white","color-container-fill-tertiary-neutral":"color-cold-gray-450","color-container-fill-tertiary-neutral-heavy":"color-cold-gray-900","color-container-fill-quinary-inverse":"color-white","color-content-primary-accent":"color-tv-blue-500","color-content-primary-accent-bold":"color-tv-blue-700","color-content-primary-accent-light":"color-tv-blue-300","color-content-primary-accent-normal":"color-tv-blue-400","color-content-primary-accent-semi-bold":"color-tv-blue-600","color-content-primary-accent-other-normal":"color-deep-blue-a400","color-content-primary-accent-other-bold":"color-sky-blue-700","color-content-primary-attention":"color-banana-yellow-700","color-content-primary-danger":"color-ripe-red-500","color-content-primary-danger-bold":"color-ripe-red-700","color-content-primary-danger-semi-bold":"color-ripe-red-600","color-content-primary-inverse":"color-white","color-content-primary-negative":"color-ripe-red-600","color-content-primary-neutral":"color-cold-gray-550","color-content-primary-neutral-bold":"color-cold-gray-900","color-content-primary-neutral-extra-light":"color-cold-gray-200","color-content-primary-neutral-light":"color-cold-gray-300","color-content-primary-neutral-normal":"color-cold-gray-450","color-content-primary-neutral-semi-bold":"color-cold-gray-700","color-content-primary-positive":"color-minty-green-600","color-content-primary-success":"color-minty-green-500","color-content-primary-success-bold":"color-minty-green-700","color-content-primary-success-semi-bold":"color-minty-green-600","color-content-primary-warning":"color-tan-orange-500","color-content-primary-warning-bold":"color-tan-orange-700","color-content-primary-warning-semi-bold":"color-tan-orange-600","color-content-secondary-accent":"color-tv-blue-500","color-content-secondary-accent-semi-bold":"color-tv-blue-600","color-content-secondary-inverse":"color-white","color-content-secondary-neutral":"color-cold-gray-650","color-content-secondary-neutral-bold":"color-cold-gray-900","color-content-secondary-neutral-medium":"color-cold-gray-750","color-content-secondary-neutral-semi-bold":"color-cold-gray-850","color-content-secondary-warning-semi-bold":"color-tan-orange-600","color-content-secondary-success-semi-bold":"color-minty-green-600","color-content-tertiary-accent":"color-tv-blue-500","color-content-tertiary-accent-bold":"color-tv-blue-700","color-content-tertiary-accent-semi-bold":"color-tv-blue-600","color-content-tertiary-inverse":"color-white","color-content-quaternary-accent":"color-tv-blue-a400","color-content-quaternary-accent-semi-bold":"color-tv-blue-600","color-content-quinary-accent":"color-tv-blue-500","color-content-quinary-accent-semi-bold":"color-tv-blue-600","color-content-quinary-accent-bold":"color-tv-blue-700","color-border-primary-accent":"color-tv-blue-500","color-border-primary-accent-extra-light":"color-tv-blue-50","color-border-primary-danger":"color-ripe-red-500","color-border-primary-inverse":"color-white","color-border-primary-neutral":"color-cold-gray-350","color-border-primary-neutral-bold":"color-cold-gray-650","color-border-primary-neutral-extra-bold":"color-cold-gray-900","color-border-primary-neutral-extra-heavy":"color-black","color-border-primary-neutral-light":"color-cold-gray-150","color-border-primary-neutral-normal":"color-cold-gray-200","color-border-primary-neutral-semi-bold":"color-cold-gray-550","color-border-primary-success":"color-minty-green-500","color-border-primary-warning":"color-tan-orange-500","color-border-secondary-inverse":"color-white","color-border-secondary-neutral":"color-cold-gray-300","color-border-secondary-neutral-normal":"color-cold-gray-200","color-border-tertiary-inverse":"color-white","color-border-primary-neutral-extra-light":"color-cold-gray-100","color-overlay-accent-1-light":"#2962ff26","color-overlay-accent-1-normal":"#2962ff4d","color-overlay-accent-1-bold":"#2962ff66","color-overlay-accent-2-light":"#00acc126","color-overlay-accent-2-normal":"#00acc14d","color-overlay-accent-2-bold":"#00acc166","color-overlay-accent-3-light":"#9c27b026","color-overlay-accent-3-normal":"#9c27b04d","color-overlay-accent-3-bold":"#9c27b066","color-overlay-accent-4-light":"#5e35b126","color-overlay-accent-4-normal":"#5e35b14d","color-overlay-accent-4-bold":"#5e35b166","color-overlay-negative-1-light":"#cc2f3c26","color-overlay-negative-1-normal":"#cc2f3c4d","color-overlay-negative-1-bold":"#cc2f3c66","color-overlay-negative-2-light":"#e91e6326","color-overlay-negative-2-normal":"#e91e634d","color-overlay-negative-2-bold":"#e91e6366","color-overlay-neutral-1-light":"#5d606b26","color-overlay-neutral-1-normal":"#5d606b4d","color-overlay-neutral-1-bold":"#5d606b66","color-overlay-neutral-2-light":"#00000026","color-overlay-neutral-2-normal":"#0000004d","color-overlay-neutral-2-bold":"#00000066","color-overlay-positive-1-light":"#08998126","color-overlay-positive-1-normal":"#0899814d","color-overlay-positive-1-bold":"#08998166","color-overlay-positive-2-light":"#08995026","color-overlay-positive-2-normal":"#0899504d","color-overlay-positive-2-bold":"#08995066","color-overlay-positive-3-light":"#43a04726","color-overlay-positive-3-normal":"#43a0474d","color-overlay-positive-3-bold":"#43a04766","color-overlay-warning-1-light":"#ff980026","color-overlay-warning-1-normal":"#ff98004d","color-overlay-warning-1-bold":"#ff980066","color-overlay-warning-2-light":"#fdd83526","color-overlay-warning-2-normal":"#fdd8354d","color-overlay-warning-2-bold":"#fdd83566"}'),n=JSON.parse('{"color-background-primary":"color-black","color-background-secondary":"color-cold-gray-850","color-background-tertiary":"color-cold-gray-800","color-background-dark-primary":"color-cold-gray-700","color-background-dark-secondary":"color-cold-gray-850","color-background-disabled":"color-cold-gray-750","color-background-special-primary":"color-black","color-background-special-secondary":"color-tv-blue-a900","color-background-special-tertiary":"color-tv-blue-a800","color-background-page-platform":"color-cold-gray-900","color-background-page-promo":"color-black","color-background-page-social":"color-black","color-background-dialog-simple":"color-cold-gray-850","color-background-dialog-complicated":"color-cold-gray-850","color-background-dialog-promo":"color-cold-gray-850","color-background-dialog-fullscreen":"color-black","color-content-icons-primary":"color-cold-gray-200","color-content-icons-secondary":"color-cold-gray-450","color-content-icons-tertiary":"color-cold-gray-650","color-content-text-promo-primary":"color-white","color-content-text-promo-secondary":"color-cold-gray-200","color-content-text-promo-tertiary":"color-cold-gray-450","color-content-text-social-primary":"color-cold-gray-200","color-content-text-social-secondary":"color-cold-gray-450","color-content-text-social-tertiary":"color-cold-gray-650","color-divider-line-primary-special":"color-tv-blue-200","color-divider-line-secondary-special":"color-tv-blue-a800","color-divider-line-primary":"color-cold-gray-750","color-divider-line-secondary":"color-cold-gray-800","color-link-primary-default":"color-tv-blue-300","color-link-primary-hover":"color-tv-blue-400","color-link-primary-active":"color-tv-blue-500","color-link-secondary-default":"color-tv-blue-a200","color-link-secondary-hover":"color-tv-blue-400","color-link-secondary-active":"color-tv-blue-500","color-static-warning":"color-tan-orange-500","color-static-danger":"color-ripe-red-500","color-static-highlight":"color-tv-blue-a900","color-static-neutral":"color-cold-gray-450","color-static-success":"color-minty-green-500","color-button-content-disabled":"color-cold-gray-650","color-button-content-ghost-neutral-bold-default":"color-cold-gray-200","color-button-content-ghost-neutral-bold-hover":"color-white","color-button-content-ghost-neutral-bold-active":"color-cold-gray-900","color-button-content-ghost-accent-default":"color-tv-blue-500","color-button-content-ghost-accent-hover":"color-tv-blue-500","color-button-content-ghost-accent-active":"color-white","color-button-content-ghost-neutral-default":"color-cold-gray-200","color-button-content-ghost-neutral-hover":"color-white","color-button-content-ghost-neutral-active":"color-white","color-button-content-ghost-neutral-is-selected":"color-cold-gray-200","color-button-content-primary-neutral-bold-default":"color-cold-gray-900","color-button-content-primary-neutral-bold-hover":"color-cold-gray-900","color-button-content-primary-neutral-bold-active":"color-cold-gray-900","color-button-content-primary-accent-default":"color-white","color-button-content-primary-accent-hover":"color-white","color-button-content-primary-accent-active":"color-white","color-button-content-primary-neutral-default":"color-white","color-button-content-primary-neutral-hover":"color-white","color-button-content-primary-neutral-active":"color-white","color-button-content-primary-neutral-is-selected":"color-white","color-button-content-primary-success-default":"color-white","color-button-content-primary-success-hover":"color-white","color-button-content-primary-success-active":"color-white","color-button-content-primary-accent-light-default":"color-tv-blue-200","color-button-content-primary-accent-light-hover":"color-tv-blue-200","color-button-content-primary-accent-light-active":"color-tv-blue-200","color-button-content-primary-accent-light-is-selected":"color-tv-blue-200","color-button-content-primary-danger-default":"color-white","color-button-content-primary-danger-hover":"color-white","color-button-content-primary-danger-active":"color-white","color-button-content-quiet-primary-neutral-bold-default":"color-cold-gray-200","color-button-content-quiet-primary-neutral-bold-hover":"color-cold-gray-900","color-button-content-quiet-primary-neutral-bold-active":"color-cold-gray-900","color-button-content-quiet-primary-neutral-default":"color-cold-gray-200","color-button-content-quiet-primary-neutral-hover":"color-white","color-button-content-quiet-primary-neutral-active":"color-white","color-button-content-quiet-primary-neutral-is-selected":"color-white","color-button-content-quiet-primary-accent-light-default":"color-tv-blue-500","color-button-content-quiet-primary-accent-light-hover":"color-tv-blue-100","color-button-content-quiet-primary-accent-light-active":"color-tv-blue-100","color-button-content-secondary-neutral-bold-default":"color-white","color-button-content-secondary-neutral-bold-hover":"color-cold-gray-900","color-button-content-secondary-neutral-bold-active":"color-cold-gray-900","color-button-content-secondary-accent-default":"color-tv-blue-500","color-button-content-secondary-accent-hover":"color-white","color-button-content-secondary-accent-active":"color-white","color-button-content-secondary-neutral-default":"color-cold-gray-200","color-button-content-secondary-neutral-hover":"color-white","color-button-content-secondary-neutral-active":"color-white","color-button-content-secondary-neutral-is-selected":"color-white","color-button-content-secondary-success-default":"color-minty-green-500","color-button-content-secondary-success-hover":"color-white","color-button-content-secondary-success-active":"color-white","color-button-content-secondary-accent-light-default":"color-tv-blue-200","color-button-content-secondary-accent-light-hover":"color-tv-blue-200","color-button-content-secondary-accent-light-active":"color-tv-blue-200","color-button-content-secondary-accent-light-is-selected":"color-tv-blue-200","color-button-content-secondary-danger-default":"color-ripe-red-500","color-button-content-secondary-danger-hover":"color-white","color-button-content-secondary-danger-active":"color-white","color-button-fill&border-disabled":"color-cold-gray-750","color-static-transparent":"color-transparent","color-button-fill&border-ghost-neutral-bold-default":"color-static-transparent","color-button-fill&border-ghost-neutral-bold-hover":"color-cold-gray-100","color-button-fill&border-ghost-neutral-bold-active":"color-cold-gray-200","color-button-fill&border-ghost-accent-default":"color-static-transparent","color-button-fill&border-ghost-accent-hover":"color-tv-blue-500","color-button-fill&border-ghost-accent-active":"color-tv-blue-700","color-button-fill&border-ghost-neutral-default":"color-static-transparent","color-button-fill&border-ghost-neutral-hover":"color-cold-gray-800","color-button-fill&border-ghost-neutral-active":"color-cold-gray-750","color-button-fill&border-ghost-neutral-is-selected":"color-static-transparent","color-button-fill&border-ghost-accent-light-default":"color-static-transparent","color-button-fill&border-ghost-accent-light-hover":"color-tv-blue-a700","color-button-fill&border-ghost-accent-light-active":"color-tv-blue-900","color-button-fill&border-ghost-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-primary-neutral-bold-default":"color-white","color-button-fill&border-primary-neutral-bold-hover":"color-cold-gray-100","color-button-fill&border-primary-neutral-bold-active":"color-cold-gray-200","color-button-fill&border-primary-accent-default":"color-tv-blue-500","color-button-fill&border-primary-accent-hover":"color-tv-blue-600","color-button-fill&border-primary-accent-active":"color-tv-blue-700","color-button-fill&border-primary-neutral-default":"color-cold-gray-800","color-button-fill&border-primary-neutral-hover":"color-cold-gray-750","color-button-fill&border-primary-neutral-active":"color-cold-gray-700","color-button-fill&border-primary-neutral-is-selected":"color-cold-gray-800","color-button-fill&border-primary-success-default":"color-minty-green-500","color-button-fill&border-primary-success-hover":"color-minty-green-600","color-button-fill&border-primary-success-active":"color-minty-green-700","color-button-fill&border-primary-accent-light-default":"color-tv-blue-a800","color-button-fill&border-primary-accent-light-hover":"color-tv-blue-a700","color-button-fill&border-primary-accent-light-active":"color-tv-blue-900","color-button-fill&border-primary-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-primary-danger-default":"color-ripe-red-500","color-button-fill&border-primary-danger-hover":"color-ripe-red-600","color-button-fill&border-primary-danger-active":"color-ripe-red-700","color-button-fill&border-quiet-primary-neutral-bold-default":"color-black","color-button-fill&border-quiet-primary-neutral-bold-hover":"color-white","color-button-fill&border-quiet-primary-neutral-bold-active":"color-cold-gray-100","color-button-fill&border-quiet-primary-accent-default":"color-black","color-button-fill&border-quiet-primary-accent-hover":"color-tv-blue-500","color-button-fill&border-quiet-primary-accent-active":"color-tv-blue-600","color-button-fill&border-quiet-primary-neutral-default":"color-black","color-button-fill&border-quiet-primary-neutral-hover":"color-cold-gray-800","color-button-fill&border-quiet-primary-neutral-active":"color-cold-gray-750","color-button-fill&border-quiet-primary-neutral-is-selected":"color-cold-gray-800","color-button-fill&border-quiet-primary-success-default":"color-black","color-button-fill&border-quiet-primary-success-hover":"color-minty-green-500","color-button-fill&border-quiet-primary-success-active":"color-minty-green-600","color-button-fill&border-quiet-primary-accent-light-default":"color-black","color-button-fill&border-quiet-primary-accent-light-hover":"color-tv-blue-a800","color-button-fill&border-quiet-primary-accent-light-active":"color-tv-blue-a700","color-button-fill&border-quiet-primary-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-quiet-primary-danger-default":"color-black","color-button-fill&border-quiet-primary-danger-hover":"color-ripe-red-500","color-button-fill&border-quiet-primary-danger-active":"color-ripe-red-600","color-button-fill&border-secondary-neutral-bold-default":"color-white","color-button-fill&border-secondary-neutral-bold-hover":"color-cold-gray-100","color-button-fill&border-secondary-neutral-bold-active":"color-cold-gray-200","color-button-fill&border-secondary-accent-default":"color-tv-blue-500","color-button-fill&border-secondary-accent-hover":"color-tv-blue-600","color-button-fill&border-secondary-accent-active":"color-tv-blue-700","color-button-fill&border-secondary-neutral-default":"color-cold-gray-700","color-button-fill&border-secondary-neutral-hover":"color-cold-gray-800","color-button-fill&border-secondary-neutral-active":"color-cold-gray-750","color-button-fill&border-secondary-neutral-is-selected":"color-cold-gray-800","color-button-fill&border-secondary-success-default":"color-minty-green-500","color-button-fill&border-secondary-success-hover":"color-minty-green-600","color-button-fill&border-secondary-success-active":"color-minty-green-700","color-button-fill&border-secondary-accent-light-default":"color-tv-blue-a800","color-button-fill&border-secondary-accent-light-hover":"color-tv-blue-a700","color-button-fill&border-secondary-accent-light-active":"color-tv-blue-900","color-button-fill&border-secondary-accent-light-is-selected":"color-tv-blue-a700","color-button-fill&border-secondary-danger-default":"color-ripe-red-500","color-button-fill&border-secondary-danger-hover":"color-ripe-red-600","color-button-fill&border-secondary-danger-active":"color-ripe-red-700","color-text-field-border-default":"color-cold-gray-650","color-text-field-border-hover":"color-cold-gray-500","color-text-field-border-active":"color-tv-blue-500","color-text-field-border-disabled":"color-cold-gray-800","color-text-field-border-error":"color-ripe-red-500","color-text-field-border-focus-not-active":"color-tv-blue-500","color-text-field-border-focus-read-only":"color-tv-blue-500","color-text-field-border-read-only":"color-cold-gray-800","color-text-field-border-success":"color-minty-green-500","color-text-field-border-warning":"color-tan-orange-500","color-text-field-border-with-value":"color-cold-gray-650","color-text-field-description-default":"color-cold-gray-450","color-text-field-description-error":"color-ripe-red-500","color-text-field-description-success":"color-minty-green-500","color-text-field-description-warning":"color-tan-orange-500","color-text-field-fill-default":"color-static-transparent","color-text-field-fill-disabled":"color-cold-gray-800","color-text-field-fill-focus-read-only":"color-cold-gray-850","color-text-field-fill-read-only":"color-cold-gray-850","color-text-field-label-default":"color-cold-gray-450","color-text-field-label-error":"color-ripe-red-500","color-text-field-label-link":"color-tv-blue-500","color-text-field-label-success":"color-minty-green-500","color-text-field-label-warning":"color-tan-orange-500","color-text-field-left-slot-icon-default":"color-cold-gray-450","color-text-field-left-slot-icon-disabled":"color-cold-gray-650","color-text-field-placeholder-default":"color-cold-gray-450","color-text-field-placeholder-disabled":"color-cold-gray-650","color-text-field-right-slot-arrows-bg-default":"color-static-transparent","color-text-field-right-slot-arrows-bg-hover":"color-cold-gray-800","color-text-field-right-slot-arrows-bg-active":"color-cold-gray-750","color-text-field-right-slot-icons-and-text-default":"color-cold-gray-450","color-text-field-right-slot-icons-and-text-disabled":"color-cold-gray-650","color-text-field-right-slot-icons-and-text-active":"color-cold-gray-200","color-text-field-right-slot-icons-and-text-error":"color-ripe-red-500","color-text-field-right-slot-icons-and-text-hover":"color-cold-gray-200","color-text-field-value-default":"color-cold-gray-200","color-text-field-value-disabled":"color-cold-gray-450","color-counter-fill-danger":"color-ripe-red-500","color-counter-content-danger":"color-white","color-counter-fill-accent":"color-tv-blue-500","color-counter-content-accent":"color-white","color-counter-fill-accent-light":"color-tv-blue-a800","color-counter-content-accent-light":"color-tv-blue-100","color-counter-fill-neutral-bold":"color-white","color-counter-content-neutral-bold":"color-black","color-counter-fill-neutral":"color-cold-gray-800","color-counter-content-neutral":"color-cold-gray-200","color-counter-border-primary":"color-black","color-counter-border-secondary":"color-cold-gray-900","color-counter-border-tertiary":"color-cold-gray-850","color-filter-select-fill&border-checked-default":"color-tv-blue-a800","color-filter-select-fill&border-checked-hover":"color-tv-blue-a700","color-filter-select-fill&border-checked-active":"color-tv-blue-900","color-filter-select-fill&border-checked-isOpened":"color-tv-blue-a700","color-filter-select-content-checked-accent-default":"color-tv-blue-200","color-filter-select-content-checked-accent-hover":"color-tv-blue-200","color-filter-select-content-checked-accent-active":"color-tv-blue-200","color-filter-select-content-checked-neutral-default":"color-white","color-filter-select-content-checked-neutral-hover":"color-white","color-filter-select-content-checked-neutral-active":"color-white","color-filter-select-fill&border-not-checked-default":"color-cold-gray-700","color-filter-select-fill&border-not-checked-hover":"color-cold-gray-800","color-filter-select-fill&border-not-checked-active":"color-cold-gray-750","color-filter-select-fill&border-not-checked-isOpened":"color-cold-gray-800","color-filter-select-content-not-checked-default":"color-cold-gray-450","color-filter-select-content-not-checked-hover":"color-cold-gray-450","color-filter-select-content-not-checked-active":"color-cold-gray-450","color-symbol-change-positive":"color-minty-green-400","color-symbol-change-neutral":"color-cold-gray-200","color-symbol-change-negative":"color-ripe-red-400","color-symbol-rating-positive":"color-minty-green-400","color-symbol-rating-neutral":"color-cold-gray-450","color-symbol-rating-negative":"color-ripe-red-400","color-other-transparent":"color-transparent","color-shadow-primary-neutral-extra-heavy":"#00000066","color-shadow-primary-neutral-light":"color-cold-gray-750","color-shadow-secondary-neutral-light":"color-cold-gray-700","color-other-modal-background":"#0c0e1580","color-other-shadow-primary-neutral-extra-heavy":"#00000066","color-other-shadow-primary-neutral-light":"color-cold-gray-750","color-other-shadow-secondary-neutral-light":"color-cold-gray-700","color-background-primary-accent-extra-light":"color-tv-blue-a900","color-background-primary-accent-light":"color-tv-blue-a800","color-background-primary-inverse":"color-black","color-background-primary-neutral-bold":"color-cold-gray-700","color-background-primary-neutral-extra-heavy":"color-black","color-background-primary-neutral-extra-light":"color-cold-gray-850","color-background-primary-neutral-light":"color-cold-gray-800","color-background-primary-neutral-normal":"color-cold-gray-750","color-background-secondary-inverse":"color-cold-gray-900","color-background-tertiary-inverse":"color-cold-gray-850","color-container-fill-primary-accent":"color-tv-blue-500","color-container-fill-primary-accent-bold":"color-tv-blue-700","color-container-fill-primary-accent-extra-light":"color-tv-blue-a900","color-container-fill-primary-accent-light":"color-tv-blue-a800","color-container-fill-primary-accent-normal":"color-tv-blue-a700","color-container-fill-primary-accent-semi-bold":"color-tv-blue-600","color-container-fill-primary-accent-alt1-normal":"color-deep-blue-a100","color-container-fill-primary-accent-alt2-bold":"color-sky-blue-300","color-container-fill-primary-danger":"color-ripe-red-500","color-container-fill-primary-danger-bold":"color-ripe-red-700","color-container-fill-primary-danger-extra-light":"color-ripe-red-a900","color-container-fill-primary-danger-light":"color-ripe-red-a800","color-container-fill-primary-danger-normal":"color-ripe-red-a700","color-container-fill-primary-danger-semi-bold":"color-ripe-red-600","color-container-fill-primary-inverse":"color-black","color-container-fill-primary-neutral":"color-cold-gray-600","color-container-fill-primary-neutral-bold":"color-cold-gray-200","color-container-fill-primary-neutral-extra-bold":"color-cold-gray-100","color-container-fill-primary-neutral-extra-heavy":"color-white","color-container-fill-primary-neutral-extra-light":"color-cold-gray-800","color-container-fill-primary-neutral-heavy":"color-white","color-container-fill-primary-neutral-light":"color-cold-gray-750","color-container-fill-primary-neutral-normal":"color-cold-gray-700","color-container-fill-primary-neutral-thin":"color-cold-gray-850","color-container-fill-primary-neutral-medium":"color-cold-gray-450","color-container-fill-primary-success":"color-minty-green-500","color-container-fill-primary-success-bold":"color-minty-green-700","color-container-fill-primary-success-extra-light":"color-minty-green-a900","color-container-fill-primary-success-light":"color-minty-green-a800","color-container-fill-primary-success-normal":"color-minty-green-a700","color-container-fill-primary-success-semi-bold":"color-minty-green-600","color-container-fill-primary-warning":"color-tan-orange-500","color-container-fill-primary-warning-bold":"color-tan-orange-700","color-container-fill-primary-warning-extra-light":"color-tan-orange-a900","color-container-fill-primary-warning-light":"color-tan-orange-a800","color-container-fill-primary-warning-normal":"color-tan-orange-a700","color-container-fill-primary-warning-semi-bold":"color-tan-orange-600","color-container-fill-quaternary-inverse":"color-white","color-container-fill-secondary-accent-extra-light":"color-tv-blue-a800","color-container-fill-secondary-accent-light":"color-tv-blue-a700","color-container-fill-secondary-accent-normal":"color-tv-blue-900","color-container-fill-secondary-accent":"color-tv-blue-a100","color-container-fill-secondary-accent-semi-bold":"color-tv-blue-300","color-container-fill-secondary-inverse":"color-cold-gray-900","color-container-fill-secondary-neutral":"color-cold-gray-450","color-container-fill-secondary-neutral-extra-heavy":"color-black","color-container-fill-secondary-neutral-extra-light":"color-cold-gray-700","color-container-fill-secondary-neutral-heavy":"color-cold-gray-200","color-container-fill-secondary-neutral-light":"color-cold-gray-800","color-container-fill-secondary-neutral-normal":"color-cold-gray-600","color-container-fill-secondary-neutral-semi-bold":"color-cold-gray-400","color-container-fill-secondary-danger-bold":"color-ripe-red-300","color-container-fill-secondary-success-semi-bold":"color-minty-green-300","color-container-fill-secondary-warning-semi-bold":"color-tan-orange-300","color-container-fill-tertiary-accent":"color-tv-blue-a100","color-container-fill-tertiary-accent-bold":"color-tv-blue-a900","color-container-fill-tertiary-accent-light":"color-tv-blue-800","color-container-fill-tertiary-inverse":"color-cold-gray-850","color-container-fill-tertiary-neutral":"color-cold-gray-550","color-container-fill-tertiary-neutral-heavy":"color-tv-blue-200","color-container-fill-quinary-inverse":"color-cold-gray-800","color-content-primary-accent":"color-tv-blue-500","color-content-primary-accent-bold":"color-tv-blue-600","color-content-primary-accent-light":"color-tv-blue-300","color-content-primary-accent-normal":"color-tv-blue-400","color-content-primary-accent-semi-bold":"color-tv-blue-500","color-content-primary-accent-other-normal":"color-deep-blue-a100","color-content-primary-accent-other-bold":"color-sky-blue-300","color-content-primary-attention":"color-banana-yellow-800","color-content-primary-danger":"color-ripe-red-500","color-content-primary-danger-bold":"color-ripe-red-300","color-content-primary-danger-semi-bold":"color-ripe-red-400","color-content-primary-inverse":"color-black","color-content-primary-negative":"color-ripe-red-400","color-content-primary-neutral":"color-cold-gray-450","color-content-primary-neutral-bold":"color-cold-gray-200","color-content-primary-neutral-extra-light":"color-cold-gray-650","color-content-primary-neutral-light":"color-cold-gray-650","color-content-primary-neutral-normal":"color-cold-gray-550","color-content-primary-neutral-semi-bold":"color-cold-gray-300","color-content-primary-positive":"color-minty-green-400","color-content-primary-success":"color-minty-green-500","color-content-primary-success-bold":"color-minty-green-300","color-content-primary-success-semi-bold":"color-minty-green-400","color-content-primary-warning":"color-tan-orange-500","color-content-primary-warning-bold":"color-tan-orange-300","color-content-primary-warning-semi-bold":"color-tan-orange-400","color-content-secondary-accent":"color-tv-blue-400","color-content-secondary-accent-semi-bold":"color-tv-blue-200","color-content-secondary-inverse":"color-cold-gray-900","color-content-secondary-neutral":"color-cold-gray-450","color-content-secondary-neutral-bold":"color-white","color-content-secondary-neutral-medium":"color-cold-gray-300","color-content-secondary-neutral-semi-bold":"color-cold-gray-150","color-content-secondary-warning-semi-bold":"color-tan-orange-300","color-content-secondary-success-semi-bold":"color-minty-green-300","color-content-tertiary-accent":"color-tv-blue-100","color-content-tertiary-accent-bold":"color-tv-blue-200","color-content-tertiary-accent-semi-bold":"color-tv-blue-100","color-content-tertiary-inverse":"color-white","color-content-quaternary-accent":"color-tv-blue-a100","color-content-quaternary-accent-semi-bold":"color-tv-blue-300","color-content-quinary-accent":"color-tv-blue-300","color-content-quinary-accent-semi-bold":"color-tv-blue-400","color-content-quinary-accent-bold":"color-tv-blue-500","color-border-primary-accent":"color-tv-blue-500","color-border-primary-accent-extra-light":"color-tv-blue-a800","color-border-primary-danger":"color-ripe-red-500","color-border-primary-inverse":"color-black","color-border-primary-neutral":"color-cold-gray-500","color-border-primary-neutral-bold":"color-cold-gray-350","color-border-primary-neutral-extra-bold":"color-white","color-border-primary-neutral-extra-heavy":"color-white","color-border-primary-neutral-light":"color-cold-gray-700","color-border-primary-neutral-normal":"color-cold-gray-800","color-border-primary-neutral-semi-bold":"color-cold-gray-450","color-border-primary-success":"color-minty-green-500","color-border-primary-warning":"color-tan-orange-500","color-border-secondary-inverse":"color-cold-gray-900","color-border-secondary-neutral":"color-cold-gray-700","color-border-secondary-neutral-normal":"color-cold-gray-650","color-border-tertiary-inverse":"color-cold-gray-850","color-border-primary-neutral-extra-light":"color-cold-gray-800","color-overlay-accent-1-light":"#448aff33","color-overlay-accent-1-normal":"#448aff66","color-overlay-accent-1-bold":"#448aff80","color-overlay-accent-2-light":"#00bcd433","color-overlay-accent-2-normal":"#00bcd466","color-overlay-accent-2-bold":"#00bcd480","color-overlay-accent-3-light":"#ea80fc33","color-overlay-accent-3-normal":"#ea80fc66","color-overlay-accent-3-bold":"#ea80fc80","color-overlay-accent-4-light":"#b388ff33","color-overlay-accent-4-normal":"#b388ff66","color-overlay-accent-4-bold":"#b388ff66","color-overlay-negative-1-light":"#f2364533","color-overlay-negative-1-normal":"#f2364566","color-overlay-negative-1-bold":"#f2364580","color-overlay-negative-2-light":"#ff408133","color-overlay-negative-2-normal":"#ff408166","color-overlay-negative-2-bold":"#ff408180","color-overlay-neutral-1-light":"#b2b5be33","color-overlay-neutral-1-normal":"#b2b5be66","color-overlay-neutral-1-bold":"#b2b5be80","color-overlay-neutral-2-light":"#ffffff33","color-overlay-neutral-2-normal":"#ffffff66","color-overlay-neutral-2-bold":"#ffffff80","color-overlay-positive-1-light":"#22ab9433","color-overlay-positive-1-normal":"#22ab9466","color-overlay-positive-1-bold":"#22ab9480","color-overlay-positive-2-light":"#22ab6733","color-overlay-positive-2-normal":"#22ab6766","color-overlay-positive-2-bold":"#4caf5033","color-overlay-positive-3-light":"#4caf5033","color-overlay-positive-3-normal":"#4caf5066","color-overlay-positive-3-bold":"#4caf5080","color-overlay-warning-1-light":"#ff980033","color-overlay-warning-1-normal":"#ff980066","color-overlay-warning-1-bold":"#ff980080","color-overlay-warning-2-light":"#fdd83533","color-overlay-warning-2-normal":"#fdd83566","color-overlay-warning-2-bold":"#fdd83580"}') +;var d=l(579),i=l(20913),b=l(23420) +;const g=JSON.parse('{"light":{"color-absolute-price-arrow-hover":"color-cold-gray-900","color-absolute-price-input-wait":"color-cold-gray-150","color-absolute-price-list-item":"color-cold-gray-800","color-absolute-price-list-item-hover-bg":"color-cold-gray-100","color-absolute-price-list-item-selected":"color-white","color-absolute-price-list-item-selected-bg":"color-tv-blue-500","color-account-name":"color-cold-gray-900","color-active-bar":"color-white","color-active-border":"color-tv-blue-500","color-active-layout-text":"color-white","color-active-section-buy-bg":"color-tv-blue-500","color-active-section-sell-bg":"color-ripe-red-500","color-active-switch-bg":"color-tv-blue-500","color-active-tab-text-color":"color-cold-gray-900","color-add-dialog-text":"color-cold-gray-900","color-additional-text":"color-cold-gray-400","color-after-market-close":"color-tv-blue-500","color-after-market-close-bg":"color-tv-blue-400","color-arrow":"color-cold-gray-900","color-arrow-text":"color-cold-gray-900","color-arrow-text-hover":"color-black","color-ask-label":"color-tv-blue-500","color-background":"color-white","color-background-hover":"color-cold-gray-100","color-background-selected":"color-tv-blue-50","color-bar":"color-cold-gray-900","color-before-market-open":"color-tan-orange-600","color-before-market-open-bg":"color-tan-orange-400","color-bg-separator":"color-cold-gray-100","color-bid-label":"color-ripe-red-500","color-blue-price":"color-tv-blue-500","color-body-bg-superdark-legacy":"color-cold-gray-900","color-bracket-checkbox-label":"color-black","color-bracket-input-disabled":"color-cold-gray-150","color-broker-button-bg-hover-dark":"color-cold-gray-800","color-broker-button-bg-hover-default":"color-cold-gray-100","color-broker-button-bg-hover-light":"color-cold-gray-100","color-broker-button-border-dark":"color-cold-gray-700","color-broker-button-border-default":"color-cold-gray-200","color-broker-button-border-light":"color-cold-gray-200","color-broker-button-icon-dark":"color-cold-gray-300","color-broker-button-icon-default":"color-black","color-broker-button-icon-light":"color-black","color-btn-black-friday-primary-content":"color-white","color-btn-black-primary-active-bg":"color-cold-gray-700","color-btn-black-primary-active-border":"color-cold-gray-700","color-btn-black-primary-active-content":"color-white","color-btn-black-primary-default-bg":"color-cold-gray-900","color-btn-black-primary-default-border":"color-cold-gray-900","color-btn-black-primary-default-content":"color-white","color-btn-black-primary-hover-bg":"color-cold-gray-800","color-btn-black-primary-hover-border":"color-cold-gray-800","color-btn-black-primary-hover-content":"color-white","color-btn-black-secondary-active-bg":"color-cold-gray-700","color-btn-black-secondary-active-border":"color-cold-gray-700","color-btn-black-secondary-active-content":"color-white","color-btn-black-secondary-default-bg":"transparent","color-btn-black-secondary-default-border":"color-cold-gray-900","color-btn-black-secondary-default-content":"color-cold-gray-900","color-btn-black-secondary-hover-bg":"color-cold-gray-800","color-btn-black-secondary-hover-border":"color-cold-gray-800","color-btn-black-secondary-hover-content":"color-white","color-btn-brand-primary-active-bg":"color-tv-blue-700","color-btn-brand-primary-active-border":"color-tv-blue-700","color-btn-brand-primary-active-content":"color-white","color-btn-brand-primary-default-bg":"color-tv-blue-500","color-btn-brand-primary-default-border":"color-tv-blue-500","color-btn-brand-primary-default-content":"color-white","color-btn-brand-primary-hover-bg":"color-tv-blue-600","color-btn-brand-primary-hover-border":"color-tv-blue-600","color-btn-brand-primary-hover-content":"color-white","color-btn-brand-secondary-active-bg":"color-tv-blue-700","color-btn-brand-secondary-active-border":"color-tv-blue-700","color-btn-brand-secondary-active-content":"color-white","color-btn-brand-secondary-default-bg":"transparent","color-btn-brand-secondary-default-border":"color-tv-blue-500","color-btn-brand-secondary-default-content":"color-tv-blue-500","color-btn-brand-secondary-hover-bg":"color-tv-blue-600","color-btn-brand-secondary-hover-border":"color-tv-blue-600","color-btn-brand-secondary-hover-content":"color-white","color-btn-cyber-monday-primary-content":"color-cold-gray-900","color-btn-cyber-monday-secondary-active-bg":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-border":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-content":"color-cold-gray-900","color-btn-cyber-monday-secondary-default-bg":"transparent","color-btn-cyber-monday-secondary-default-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-default-content":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-bg":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-content":"color-cold-gray-900","color-btn-danger":"color-ripe-red-400","color-btn-danger-active":"color-ripe-red-700","color-btn-danger-hover":"color-ripe-red-600","color-btn-disabled-bg":"color-cold-gray-150","color-btn-disabled-content":"color-cold-gray-300","color-btn-gray-primary-active-bg":"color-cold-gray-200","color-btn-gray-primary-active-border":"color-cold-gray-200","color-btn-gray-primary-active-content":"color-cold-gray-900","color-btn-gray-primary-default-bg":"color-cold-gray-100","color-btn-gray-primary-default-border":"color-cold-gray-100","color-btn-gray-primary-default-content":"color-cold-gray-900","color-btn-gray-primary-hover-bg":"color-cold-gray-150","color-btn-gray-primary-hover-border":"color-cold-gray-150","color-btn-gray-primary-hover-content":"color-cold-gray-900","color-btn-gray-secondary-active-bg":"color-cold-gray-150","color-btn-gray-secondary-active-border":"color-cold-gray-150","color-btn-gray-secondary-active-content":"color-cold-gray-900","color-btn-gray-secondary-default-bg":"transparent","color-btn-gray-secondary-default-border":"color-cold-gray-150","color-btn-gray-secondary-default-content":"color-cold-gray-900","color-btn-gray-secondary-hover-bg":"color-cold-gray-100","color-btn-gray-secondary-hover-border":"color-cold-gray-100","color-btn-gray-secondary-hover-content":"color-cold-gray-900","color-btn-green-primary-active-bg":"color-minty-green-700","color-btn-green-primary-active-border":"color-minty-green-700","color-btn-green-primary-active-content":"color-white","color-btn-green-primary-default-bg":"color-minty-green-500","color-btn-green-primary-default-border":"color-minty-green-500","color-btn-green-primary-default-content":"color-white","color-btn-green-primary-hover-bg":"color-minty-green-600","color-btn-green-primary-hover-border":"color-minty-green-600","color-btn-green-primary-hover-content":"color-white","color-btn-green-secondary-active-bg":"color-minty-green-700","color-btn-green-secondary-active-border":"color-minty-green-700","color-btn-green-secondary-active-content":"color-white","color-btn-green-secondary-default-bg":"transparent","color-btn-green-secondary-default-border":"color-minty-green-500","color-btn-green-secondary-default-content":"color-minty-green-500","color-btn-green-secondary-hover-bg":"color-minty-green-600","color-btn-green-secondary-hover-border":"color-minty-green-600","color-btn-green-secondary-hover-content":"color-white","color-btn-primary-bg-active":"color-cold-gray-700","color-btn-primary-bg-default":"color-cold-gray-900","color-btn-primary-bg-hover":"color-cold-gray-800","color-btn-primary-disabled-bg":"color-cold-gray-150","color-btn-primary-disabled-border":"color-cold-gray-150","color-btn-primary-fg":"color-white","color-btn-primary-fg-default":"color-cold-gray-900","color-btn-primary-fg-other":"color-white","color-btn-red-primary-active-bg":"color-ripe-red-700","color-btn-red-primary-active-border":"color-ripe-red-700","color-btn-red-primary-active-content":"color-white","color-btn-red-primary-default-bg":"color-ripe-red-500","color-btn-red-primary-default-border":"color-ripe-red-500","color-btn-red-primary-default-content":"color-white","color-btn-red-primary-hover-bg":"color-ripe-red-600","color-btn-red-primary-hover-border":"color-ripe-red-600","color-btn-red-primary-hover-content":"color-white","color-btn-red-secondary-active-bg":"color-ripe-red-700","color-btn-red-secondary-active-border":"color-ripe-red-700","color-btn-red-secondary-active-content":"color-white","color-btn-red-secondary-default-bg":"transparent","color-btn-red-secondary-default-border":"color-ripe-red-500","color-btn-red-secondary-default-content":"color-ripe-red-500","color-btn-red-secondary-hover-bg":"color-ripe-red-600","color-btn-red-secondary-hover-border":"color-ripe-red-600","color-btn-red-secondary-hover-content":"color-white","color-btn-secondary-disabled-bg":"transparent","color-btn-secondary-disabled-border":"color-cold-gray-150","color-btn-sell":"color-ripe-red-500","color-btn-sell-active":"color-ripe-red-700","color-btn-sell-hover":"color-ripe-red-600","color-button-action-active":"color-cold-gray-700","color-button-action-background-disabled":"color-cold-gray-150","color-button-action-background-pl-disabled":"color-cold-gray-100","color-button-action-background-text-disabled":"color-cold-gray-300","color-button-action-border":"color-cold-gray-400","color-button-action-text":"color-cold-gray-900","color-button-action-text-disabled":"color-cold-gray-300","color-button-background":"color-cold-gray-100","color-button-bg":"color-cold-gray-400","color-button-bg-hover":"color-cold-gray-550","color-button-bg-selected":"color-tv-blue-200","color-button-border":"color-cold-gray-200","color-button-disabled-bg":"color-cold-gray-150","color-button-hover":"color-cold-gray-100","color-button-position-buy":"color-tv-blue-500","color-button-position-buy-active":"color-tv-blue-700","color-button-position-buy-hover":"color-tv-blue-600","color-button-position-profit":"color-minty-green-500","color-button-position-profit-active":"color-minty-green-700","color-button-position-profit-hover":"color-minty-green-600","color-button-position-sell":"color-ripe-red-500","color-button-position-sell-active":"color-ripe-red-700","color-button-position-sell-hover":"color-ripe-red-600","color-button-text":"color-cold-gray-900","color-button-text-active":"color-white","color-button-text-color":"color-white","color-button-text-disabled":"color-cold-gray-300","color-buy-border-active":"color-tv-blue-500","color-buy-border-hover":"color-tv-blue-500","color-buy-btn-chart":"color-tv-blue-500","color-buy-btn-chart-active":"color-tv-blue-700","color-buy-btn-chart-hover":"color-tv-blue-600","color-buy-btn-text-dark":"color-tv-blue-50","color-buy-btn-text-default":"color-white","color-buy-btn-text-light":"color-white","color-buy-btn-withoutbg-active-chart-dark":"color-tv-blue-a900","color-buy-btn-withoutbg-active-chart-default":"color-tv-blue-100","color-buy-btn-withoutbg-active-chart-light":"color-tv-blue-100","color-buy-btn-withoutbg-chart-dark":"color-cold-gray-900","color-buy-btn-withoutbg-chart-default":"color-white","color-buy-btn-withoutbg-chart-light":"color-white","color-buy-btn-withoutbg-hover-chart-dark":"color-tv-blue-a900","color-buy-btn-withoutbg-hover-chart-default":"color-tv-blue-50","color-buy-btn-withoutbg-hover-chart-light":"color-tv-blue-50","color-calculator-active":"color-cold-gray-900","color-calendar-accent-color":"color-white","color-calendar-weekdays-bg-color":"color-cold-gray-50","color-caret-hover":"color-cold-gray-100","color-cell-content-text":"color-cold-gray-900","color-cell-text":"color-cold-gray-900","color-cell-text-falling":"color-ripe-red-500","color-cell-text-growing":"color-minty-green-400","color-checkbox":"color-cold-gray-300","color-checkbox-active":"color-tv-blue-700","color-checkbox-checked":"color-tv-blue-500","color-checkbox-checked-hover":"color-tv-blue-600","color-checkbox-disabled":"color-cold-gray-300","color-checkbox-disabled-bg":"color-cold-gray-150","color-checkbox-focused":"color-tv-blue-500","color-checkbox-hover":"color-cold-gray-350","color-checkbox-icon":"color-white","color-child-of-selected-background":"color-tv-blue-50","color-child-of-selected-hovered-button-background":"color-tv-blue-100","color-circle-logo-background":"color-cold-gray-150","color-circle-logo-letter":"color-white","color-close":"color-cold-gray-400","color-close-button-active-bg":"color-cold-gray-150","color-close-button-active-text":"color-cold-gray-900","color-close-button-hover-bg":"color-cold-gray-100","color-close-button-hover-text":"color-cold-gray-900","color-common-tooltip-force-transparent":"transparent","color-common-tooltip-hotkey-divider":"color-cold-gray-600","color-common-tooltip-hotkey-text":"color-tan-orange-500","color-container-border":"color-cold-gray-100","color-container-hover-bg":"color-cold-gray-100","color-content-disabled":"color-cold-gray-300","color-content-item-bg":"color-white","color-context-menu-item-active-shortcut":"color-cold-gray-300","color-context-menu-item-checked":"color-cold-gray-900","color-control-border-hover":"color-cold-gray-350","color-control-disabled-bg":"color-cold-gray-100","color-control-disabled-text":"color-cold-gray-550","color-control-highlight-intent-danger":"color-control-intent-danger","color-control-highlight-intent-default":"color-cold-gray-300","color-control-highlight-intent-primary":"color-control-intent-primary","color-control-highlight-intent-success":"color-control-intent-success","color-control-highlight-intent-warning":"color-control-intent-warning","color-cross-white":"color-white","color-currency":"color-cold-gray-550","color-currency-active":"color-white","color-custom-button":"color-cold-gray-900","color-custom-button-hover":"color-cold-gray-100","color-custom-field-checkbox-label":"color-black","color-custom-field-section-title":"color-black","color-danger-row-border":"color-ripe-red-500","color-data-table-btn-hover":"color-cold-gray-650","color-data-table-cell-blue-background-bg":"#eaf3fb","color-data-table-cell-border":"#e6eaef","color-data-table-cell-red-background-bg":"#f4ecec","color-data-table-cell-status-bg":"#e6e9ed","color-data-table-stroke-grayed":"#999999","color-data-table-tbody-hover-bg":"#f3f5f9","color-data-table-thead-bg":"color-cold-gray-50","color-default-active-bg":"#ececec","color-desktop-row-border":"color-cold-gray-100","color-desktop-table-background":"color-white","color-details-falling":"color-ripe-red-500","color-details-growing":"color-minty-green-400","color-dialog-background":"color-white","color-dialog-text":"color-cold-gray-900","color-disabled-title":"color-cold-gray-300","color-divider-intent-default":"color-cold-gray-100","color-divider-intent-primary":"color-cold-gray-150","color-dom-widget-button-active-ask":"color-tv-blue-700","color-dom-widget-button-active-bid":"color-ripe-red-700","color-dom-widget-button-ask":"color-tv-blue-500","color-dom-widget-button-bid":"color-ripe-red-500","color-dom-widget-button-close-cross":"color-cold-gray-300","color-dom-widget-button-disabled":"color-cold-gray-150","color-dom-widget-button-hover-ask":"color-tv-blue-600","color-dom-widget-button-hover-bid":"color-ripe-red-600","color-dom-widget-lock-active":"color-cold-gray-900","color-dom-widget-nav-border":"color-cold-gray-50","color-dot-bg":"color-cold-gray-300","color-drag-icon":"color-cold-gray-300","color-drawer-item-active-bg":"color-tv-blue-500","color-drawer-item-active-text":"color-white","color-drawer-item-text":"color-cold-gray-900","color-drop-layer":"color-white","color-drop-target-border":"color-tv-blue-500","color-edit-button-background-hover":"color-cold-gray-150","color-edit-button-icon-hover":"color-cold-gray-900","color-edit-button-text":"color-cold-gray-900","color-edit-button-text-disabled":"color-cold-gray-300","color-empty-border":"color-black","color-empty-line":"color-ripe-red-400","color-error-background":"color-white","color-error-text":"color-cold-gray-700","color-expand-handle-bg-hover":"color-cold-gray-150","color-favorite-bg-hover":"color-cold-gray-100","color-favorite-border":"color-cold-gray-150","color-favorite-checked":"color-banana-yellow-700","color-favorite-round-bg":"color-black","color-favorite-round-text":"color-white","color-favorite-study-template-bg-hover":"color-cold-gray-100","color-favorite-study-template-border":"color-cold-gray-200","color-favorite-study-template-text":"color-cold-gray-900","color-favorite-study-template-text-hover":"color-black","color-favorite-text":"color-cold-gray-900","color-first-item-border":"transparent","color-floating-toolbar-shadow":"color-cold-gray-550","color-force-transparent":"transparent","color-gray":"color-cold-gray-150","color-grayed-text":"color-cold-gray-300","color-headcell-text-hovered":"color-cold-gray-900","color-header-border":"color-cold-gray-150","color-header-hover":"color-cold-gray-100","color-header-hovered-button-bg-disabled":"color-white","color-header-title-symbol-exchange":"color-cold-gray-650","color-headerspace-btn-active-bg":"color-cold-gray-100","color-headerspace-btn-icon-color":"color-cold-gray-900","color-highlight-falling":"color-ripe-red-500","color-highlight-growing":"color-minty-green-400","color-highlight-search":"color-tv-blue-200","color-highlighted-text":"color-tv-blue-200","color-hovered-background":"color-cold-gray-100","color-hovered-button-background":"color-cold-gray-150","color-hovered-row-background":"color-cold-gray-100","color-hovered-settings-button-background":"color-cold-gray-150","color-hovered-watchlist-header-cell":"color-cold-gray-600","color-icon":"color-black","color-icon-background-selected-hover":"color-tv-blue-200","color-icon-hover":"color-cold-gray-900","color-icon-hover-color":"color-cold-gray-900","color-icon-selected":"color-white","color-icon-selected-hover":"color-tv-blue-200","color-indicators-text":"color-cold-gray-900","color-info":"color-cold-gray-400","color-info-icon":"color-cold-gray-200","color-info-table-row-hover-bg":"color-cold-gray-100","color-info-table-text-buy":"color-tv-blue-500","color-info-table-text-disabled":"color-cold-gray-150","color-info-table-text-highlighted":"color-cold-gray-900","color-info-table-text-sell":"color-ripe-red-500","color-informer-intent-danger":"color-ripe-red-500","color-informer-intent-danger-bg":"color-white","color-informer-intent-danger-border":"color-ripe-red-500","color-informer-intent-default":"color-cold-gray-550","color-informer-intent-default-bg":"color-white","color-informer-intent-default-border":"color-cold-gray-150","color-informer-intent-success":"color-minty-green-500","color-informer-intent-success-bg":"color-white","color-informer-intent-success-border":"color-minty-green-500","color-informer-intent-warning":"color-tan-orange-500","color-informer-intent-warning-bg":"color-white","color-informer-intent-warning-border":"color-tan-orange-500","color-informer-light-danger-bg":"color-ripe-red-50","color-informer-light-default-bg":"color-cold-gray-100","color-informer-light-success-bg":"color-minty-green-50","color-informer-light-warning-bg":"color-tan-orange-50","color-informer-text-content":"color-cold-gray-900","color-input-bg":"color-white","color-input-border":"color-cold-gray-200","color-input-border-hover":"color-cold-gray-350","color-input-disabled-bg":"color-cold-gray-100","color-input-disabled-border":"color-cold-gray-200","color-input-disabled-text":"color-cold-gray-300","color-input-placeholder-wait":"color-cold-gray-100","color-input-readonly-bg":"color-cold-gray-100","color-input-readonly-border":"color-cold-gray-200","color-input-text":"color-cold-gray-900","color-item-action":"color-white","color-item-bg-selected":"color-tv-blue-100","color-item-row-bg-hover":"color-cold-gray-100","color-item-row-border":"color-cold-gray-100","color-item-row-selected":"color-tv-blue-100","color-item-row-text":"color-cold-gray-900","color-item-row-text-invalid":"color-ripe-red-400","color-item-shortcut-active-text":"color-white","color-item-text":"color-cold-gray-900","color-item-toolbox-active-text":"color-white","color-keyboard-button-bg":"color-white","color-keyboard-button-shadow":"color-cold-gray-150","color-keyboard-button-text":"color-cold-gray-900","color-light-tab-button-active-bg":"color-cold-gray-200","color-light-tab-button-default-bg":"color-cold-gray-100","color-light-tab-button-default-content":"color-cold-gray-900","color-light-tab-button-disabled-bg":"color-cold-gray-100","color-light-tab-button-disabled-content":"color-cold-gray-300","color-light-tab-button-hover-bg":"color-cold-gray-150","color-light-tab-button-selected-bg":"color-white","color-light-tab-button-selected-content":"color-cold-gray-900","color-linked-row-border":"color-tv-blue-500","color-load-chart-dialog-text":"color-cold-gray-900","color-loading-buttons-dark":"color-cold-gray-800","color-loading-buttons-default":"color-cold-gray-100","color-loading-buttons-light":"color-cold-gray-100","color-long-position-bg":"#d8f0fa","color-main-background":"color-white","color-main-content-text":"color-cold-gray-900","color-main-text":"color-cold-gray-900","color-margin-overflow":"color-ripe-red-500","color-menu-button":"color-white","color-menu-icon-hover":"color-cold-gray-900","color-menu-wrapper":"transparent","color-message-bg":"color-minty-green-50","color-message-error-bg":"color-ripe-red-50","color-meter-buy-active-bg":"color-tv-blue-100","color-meter-buy-bg":"color-tv-blue-50","color-meter-sell-active-bg":"color-ripe-red-100","color-meter-sell-bg":"color-ripe-red-50","color-mobile-row-bottom-border":"color-cold-gray-150","color-mobile-table-background":"color-white","color-modal-backdrop":"color-cold-gray-400","color-now-border":"color-white","color-now-stick":"color-cold-gray-900","color-number-input-arrow-bg-hover":"color-cold-gray-100","color-number-input-arrow-hover":"color-cold-gray-900","color-opacity-bg":"color-white","color-open":"color-minty-green-500","color-option-active-bg":"#ececec","color-option-hover-bg":"#f2f2f2","color-overall-volume-ask":"color-ripe-red-50","color-overall-volume-bid":"color-tv-blue-50","color-overall-volume-text-ask":"color-ripe-red-500","color-overall-volume-text-bid":"color-tv-blue-500","color-placeholder-down":"color-ripe-red-400","color-placeholder-up":"color-minty-green-400","color-pointer":"color-white","color-popup-menu-item":"color-cold-gray-200","color-position-warning-bg":"color-cold-gray-50","color-post-market":"color-tv-blue-500","color-pre-market":"color-tan-orange-600","color-preview-error":"color-ripe-red-500","color-preview-warning-icon":"color-white","color-preview-warning-text":"color-cold-gray-900","color-price":"color-cold-gray-900","color-price-text":"color-cold-gray-900","color-primary-icon":"color-sky-blue-500","color-primary-popup":"color-white","color-progress":"color-tv-blue-500","color-progress-track":"color-tv-blue-50","color-properties-dialog-borders":"color-cold-gray-150","color-properties-dialog-defaults-text":"color-cold-gray-900","color-properties-dialog-tab-bg":"color-cold-gray-100","color-qty-bg-active-chart-dark":"color-cold-gray-900","color-qty-bg-active-chart-default":"color-cold-gray-150","color-qty-bg-active-chart-light":"color-cold-gray-150","color-qty-bg-chart-dark":"color-cold-gray-850","color-qty-bg-chart-default":"color-cold-gray-50","color-qty-bg-chart-light":"color-cold-gray-50","color-qty-bg-hover-chart-dark":"color-cold-gray-800","color-qty-bg-hover-chart-default":"color-cold-gray-100","color-qty-bg-hover-chart-light":"color-cold-gray-100","color-qty-text-chart-dark":"color-cold-gray-200","color-qty-text-chart-default":"color-cold-gray-900","color-qty-text-chart-light":"color-cold-gray-900","color-quantity-input-border":"color-cold-gray-200","color-quantity-input-disabled":"color-cold-gray-150","color-radio":"color-cold-gray-300","color-radio-checked":"color-tv-blue-500","color-radio-checked-bg":"color-white","color-radio-checked-hover":"color-tv-blue-600","color-radio-disabled":"color-cold-gray-300","color-radio-disabled-bg":"color-cold-gray-150","color-radio-hover":"color-cold-gray-350","color-range-background":"color-cold-gray-100","color-range-slider-bg":"color-cold-gray-150","color-range-slider-middle-bg":"color-tv-blue-500","color-red-price":"color-ripe-red-500","color-relative-price-arrow-hover":"color-cold-gray-900","color-relative-price-input-wait":"color-cold-gray-150","color-relative-price-list-item":"color-cold-gray-800","color-relative-price-list-item-hover-bg":"color-cold-gray-100","color-relative-price-list-item-selected":"color-white","color-relative-price-list-item-selected-bg":"color-tv-blue-500","color-remove-action-hover":"color-ripe-red-600","color-rename-input-background":"color-white","color-right-hover":"color-minty-green-300","color-right-main":"color-minty-green-a600","color-round-tab-disabled-content":"color-cold-gray-300","color-round-tab-ghost-active-bg":"transparent","color-round-tab-ghost-active-border":"color-cold-gray-900","color-round-tab-ghost-active-content":"color-cold-gray-900","color-round-tab-ghost-default-bg":"transparent","color-round-tab-ghost-default-border":"transparent","color-round-tab-ghost-default-content":"color-cold-gray-900","color-round-tab-ghost-disabled-bg":"transparent","color-round-tab-ghost-hover-bg":"transparent","color-round-tab-ghost-hover-border":"color-cold-gray-150","color-round-tab-ghost-hover-content":"color-cold-gray-900","color-round-tab-ghost-selected-bg":"transparent","color-round-tab-ghost-selected-border":"color-cold-gray-900","color-round-tab-ghost-selected-content":"color-cold-gray-900","color-round-tab-primary-active-bg":"color-cold-gray-200","color-round-tab-primary-active-border":"color-cold-gray-200","color-round-tab-primary-active-content":"color-cold-gray-900","color-round-tab-primary-default-bg":"color-cold-gray-100","color-round-tab-primary-default-border":"color-cold-gray-100","color-round-tab-primary-default-content":"color-cold-gray-900","color-round-tab-primary-disabled-bg":"color-cold-gray-150","color-round-tab-primary-hover-bg":"color-cold-gray-150","color-round-tab-primary-hover-border":"color-cold-gray-150","color-round-tab-primary-hover-content":"color-cold-gray-900","color-round-tab-primary-selected-bg":"color-cold-gray-900","color-round-tab-primary-selected-border":"color-cold-gray-900","color-round-tab-primary-selected-content":"color-white","color-scroll-fade":"color-white","color-scrollbar-active":"color-cold-gray-400","color-scrollbar-default":"color-cold-gray-200","color-scrollbar-hover":"color-cold-gray-300","color-search-border":"color-cold-gray-150","color-section-bg":"color-cold-gray-100","color-section-buy-bg-active":"color-tv-blue-700","color-section-buy-bg-hover":"color-tv-blue-600","color-section-content":"color-cold-gray-300","color-section-content-active":"color-white","color-section-sell-bg-active":"color-ripe-red-700","color-section-sell-bg-hover":"color-ripe-red-600","color-selected-border":"color-cold-gray-900","color-selected-hovered-button-background":"color-tv-blue-200","color-selected-symbol-background":"color-tv-blue-100","color-sell-border-active":"color-ripe-red-500","color-sell-border-hover":"color-ripe-red-500","color-sell-btn-chart":"color-ripe-red-500","color-sell-btn-chart-active":"color-ripe-red-700","color-sell-btn-chart-hover":"color-ripe-red-600","color-sell-btn-text-dark":"color-ripe-red-50","color-sell-btn-text-default":"color-white","color-sell-btn-text-light":"color-white","color-sell-btn-withoutbg-active-chart-dark":"color-ripe-red-a900","color-sell-btn-withoutbg-active-chart-default":"color-ripe-red-100","color-sell-btn-withoutbg-active-chart-light":"color-ripe-red-100","color-sell-btn-withoutbg-hover-chart-dark":"color-ripe-red-a900","color-sell-btn-withoutbg-hover-chart-default":"color-ripe-red-50","color-sell-btn-withoutbg-hover-chart-light":"color-ripe-red-50","color-separator":"color-cold-gray-100","color-separator-active-background":"color-tv-blue-100","color-separator-border":"color-cold-gray-100","color-shadow":"color-cold-gray-150","color-short-position-bg":"#ffdbe1","color-small-bg":"color-white","color-solution-icon":"color-cold-gray-200","color-sort-button":"color-cold-gray-900","color-sort-button-bg-hover":"color-cold-gray-100","color-sort-button-icon-hover":"color-cold-gray-300","color-sortable-after-border":"#919691","color-spread":"color-black","color-spread-chart-dark":"color-cold-gray-200","color-spread-chart-default":"color-cold-gray-900","color-spread-chart-light":"color-cold-gray-900","color-square-tab-bg-active":"color-cold-gray-150","color-square-tab-bg-selected":"color-cold-gray-100","color-square-tab-bg-transparent":"transparent","color-square-tab-text-active":"color-cold-gray-900","color-success-row-border":"color-minty-green-600","color-suggestion-text":"#4a4a4a","color-swatch-border-hover":"color-cold-gray-200","color-switch-bg":"transparent","color-switch-border":"color-cold-gray-200","color-switch-hover-bg":"color-cold-gray-100","color-symbol":"color-cold-gray-900","color-symbol-border":"color-cold-gray-100","color-tab-disabled":"transparent","color-tab-hover":"color-cold-gray-100","color-tab-switcher-border":"color-cold-gray-100","color-tag-bg":"color-cold-gray-100","color-tag-bg-hover":"color-cold-gray-150","color-tag-buy":"color-tv-blue-500","color-tag-sell":"color-ripe-red-500","color-tag-text":"color-white","color-templates-dialog-body-border":"color-cold-gray-150","color-text":"color-cold-gray-900","color-text-btn-activated-bg":"color-tv-blue-50","color-text-btn-activated-content":"color-tv-blue-600","color-text-btn-bg-active-brand":"color-tv-blue-50","color-text-btn-bg-active-gray":"color-cold-gray-150","color-text-btn-bg-active-light-gray":"color-cold-gray-150","color-text-btn-bg-checked-brand":"color-tv-blue-50","color-text-btn-bg-checked-gray":"color-cold-gray-100","color-text-btn-bg-checked-light-gray":"color-cold-gray-100","color-text-btn-bg-hover-brand":"color-tv-blue-50","color-text-btn-bg-hover-gray":"color-cold-gray-100","color-text-btn-bg-hover-light-gray":"color-cold-gray-100","color-text-btn-content-active-brand":"color-tv-blue-500","color-text-btn-content-active-gray":"color-cold-gray-900","color-text-btn-content-active-light-gray":"color-cold-gray-900","color-text-btn-content-brand":"color-tv-blue-500","color-text-btn-content-checked-brand":"color-tv-blue-600","color-text-btn-content-checked-gray":"color-cold-gray-900","color-text-btn-content-checked-light-gray":"color-cold-gray-900","color-text-btn-content-disabled-brand":"color-cold-gray-300","color-text-btn-content-disabled-gray":"color-cold-gray-300","color-text-btn-content-disabled-light-gray":"color-cold-gray-300","color-text-btn-content-gray":"color-cold-gray-900","color-text-btn-content-hover-brand":"color-tv-blue-600","color-text-btn-content-hover-gray":"color-cold-gray-900","color-text-btn-content-hover-light-gray":"color-cold-gray-900","color-text-btn-content-light-gray":"color-cold-gray-550","color-text-input":"color-cold-gray-900","color-text-white":"color-white","color-textarea-bg":"color-white","color-ticker":"color-cold-gray-900","color-ticker-background":"color-cold-gray-100","color-time-mark":"color-white","color-title":"color-cold-gray-300","color-title-background":"color-cold-gray-100","color-title-text":"color-cold-gray-900","color-toast-bg":"color-white","color-tooltip-background":"color-white","color-tooltip-blue":"color-tv-blue-a200","color-tooltip-card-shadow":"color-cold-gray-500","color-tooltip-force-transparent":"transparent","color-tooltip-gray":"color-cold-gray-400","color-tooltip-text":"color-cold-gray-900","color-tooltip-time":"color-cold-gray-100","color-tooltip-wizard-bg":"color-tv-blue-500","color-top-border-content":"color-cold-gray-150","color-trading-widget-title-text":"color-black","color-tree-bg":"color-white","color-tv-button-group-primary":"#ffffff","color-tv-dom-panel-header-bg":"color-cold-gray-50","color-tv-dom-widget-main-value-border":"color-cold-gray-50","color-ui-loading-indicator-bg":"color-white","color-underline-tab-active-content":"color-cold-gray-900","color-underline-tab-default-content":"color-cold-gray-900","color-underline-tab-selected-content":"color-cold-gray-900","color-unitconversion-active":"color-cold-gray-800","color-unitconversion-active-text":"color-white","color-unitconversion-bottom-border":"color-cold-gray-100","color-unitconversion-highlighted-text":"color-tv-blue-200","color-unitconversion-label":"color-cold-gray-900","color-unitconversion-selected-bg":"color-tv-blue-100","color-wait":"color-cold-gray-150","color-warn-text":"color-tan-orange-600","color-week-day-text-active":"color-cold-gray-900","color-white-border":"color-cold-gray-200","color-white-hover":"color-white","color-widget-header-border":"color-cold-gray-150","color-widget-header-title-color":"color-cold-gray-900","color-widget-separator":"color-cold-gray-150","color-widgetbar-titles":"color-cold-gray-900"},"dark":{"color-absolute-price-arrow-hover":"color-cold-gray-200","color-absolute-price-input-wait":"color-cold-gray-700","color-absolute-price-list-item":"color-cold-gray-200","color-absolute-price-list-item-hover-bg":"color-cold-gray-800","color-absolute-price-list-item-selected":"color-tv-blue-50","color-absolute-price-list-item-selected-bg":"color-tv-blue-500","color-account-name":"color-cold-gray-200","color-active-bar":"color-white","color-active-border":"color-tv-blue-500","color-active-layout-text":"color-cold-gray-200","color-active-section-buy-bg":"color-tv-blue-500","color-active-section-sell-bg":"color-ripe-red-500","color-active-switch-bg":"color-tv-blue-500","color-active-tab-text-color":"color-white","color-add-dialog-text":"color-cold-gray-200","color-additional-text":"color-cold-gray-450","color-after-market-close":"color-tv-blue-500","color-after-market-close-bg":"color-tv-blue-400","color-arrow":"color-cold-gray-200","color-arrow-text":"color-cold-gray-450","color-arrow-text-hover":"color-cold-gray-450","color-ask-label":"color-tv-blue-500","color-background":"color-cold-gray-850","color-background-hover":"color-cold-gray-800","color-background-selected":"color-tv-blue-a900","color-bar":"color-cold-gray-200","color-before-market-open":"color-tan-orange-600","color-before-market-open-bg":"color-tan-orange-400","color-bg-separator":"color-cold-gray-800","color-bid-label":"color-ripe-red-500","color-blue-price":"color-tv-blue-500","color-body-bg-superdark-legacy":"color-cold-gray-900","color-bracket-checkbox-label":"color-cold-gray-300","color-bracket-input-disabled":"color-cold-gray-700","color-broker-button-bg-hover-dark":"color-cold-gray-800","color-broker-button-bg-hover-default":"color-cold-gray-800","color-broker-button-bg-hover-light":"color-cold-gray-100","color-broker-button-border-dark":"color-cold-gray-700","color-broker-button-border-default":"color-cold-gray-700","color-broker-button-border-light":"color-cold-gray-200","color-broker-button-icon-dark":"color-cold-gray-300","color-broker-button-icon-default":"color-cold-gray-300","color-broker-button-icon-light":"color-black","color-btn-black-friday-primary-content":"color-white","color-btn-black-primary-active-bg":"color-cold-gray-200","color-btn-black-primary-active-border":"color-cold-gray-200","color-btn-black-primary-active-content":"color-cold-gray-900","color-btn-black-primary-default-bg":"color-white","color-btn-black-primary-default-border":"color-white","color-btn-black-primary-default-content":"color-cold-gray-900","color-btn-black-primary-hover-bg":"color-cold-gray-100","color-btn-black-primary-hover-border":"color-cold-gray-100","color-btn-black-primary-hover-content":"color-cold-gray-900","color-btn-black-secondary-active-bg":"color-cold-gray-200","color-btn-black-secondary-active-border":"color-cold-gray-200","color-btn-black-secondary-active-content":"color-cold-gray-900","color-btn-black-secondary-default-bg":"transparent","color-btn-black-secondary-default-border":"color-white","color-btn-black-secondary-default-content":"color-white","color-btn-black-secondary-hover-bg":"color-cold-gray-100","color-btn-black-secondary-hover-border":"color-cold-gray-100","color-btn-black-secondary-hover-content":"color-cold-gray-900","color-btn-brand-primary-active-bg":"color-tv-blue-700","color-btn-brand-primary-active-border":"color-tv-blue-700","color-btn-brand-primary-active-content":"color-white","color-btn-brand-primary-default-bg":"color-tv-blue-500","color-btn-brand-primary-default-border":"color-tv-blue-500","color-btn-brand-primary-default-content":"color-white","color-btn-brand-primary-hover-bg":"color-tv-blue-600","color-btn-brand-primary-hover-border":"color-tv-blue-600","color-btn-brand-primary-hover-content":"color-white","color-btn-brand-secondary-active-bg":"color-tv-blue-700","color-btn-brand-secondary-active-border":"color-tv-blue-700","color-btn-brand-secondary-active-content":"color-white","color-btn-brand-secondary-default-bg":"transparent","color-btn-brand-secondary-default-border":"color-tv-blue-500","color-btn-brand-secondary-default-content":"color-tv-blue-500","color-btn-brand-secondary-hover-bg":"color-tv-blue-600","color-btn-brand-secondary-hover-border":"color-tv-blue-600","color-btn-brand-secondary-hover-content":"color-white","color-btn-cyber-monday-primary-content":"color-cold-gray-900","color-btn-cyber-monday-secondary-active-bg":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-border":"color-sky-blue-a700","color-btn-cyber-monday-secondary-active-content":"color-cold-gray-900","color-btn-cyber-monday-secondary-default-bg":"transparent","color-btn-cyber-monday-secondary-default-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-default-content":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-bg":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-border":"color-sky-blue-a400","color-btn-cyber-monday-secondary-hover-content":"color-cold-gray-900","color-btn-danger":"color-ripe-red-700","color-btn-danger-active":"color-ripe-red-500","color-btn-danger-hover":"color-ripe-red-600","color-btn-disabled-bg":"color-cold-gray-750","color-btn-disabled-content":"color-cold-gray-600","color-btn-gray-primary-active-bg":"color-cold-gray-700","color-btn-gray-primary-active-border":"color-cold-gray-700","color-btn-gray-primary-active-content":"color-white","color-btn-gray-primary-default-bg":"color-cold-gray-800","color-btn-gray-primary-default-border":"color-cold-gray-800","color-btn-gray-primary-default-content":"color-white","color-btn-gray-primary-hover-bg":"color-cold-gray-750","color-btn-gray-primary-hover-border":"color-cold-gray-750","color-btn-gray-primary-hover-content":"color-white","color-btn-gray-secondary-active-bg":"color-cold-gray-750","color-btn-gray-secondary-active-border":"color-cold-gray-750","color-btn-gray-secondary-active-content":"color-white","color-btn-gray-secondary-default-bg":"transparent","color-btn-gray-secondary-default-border":"color-cold-gray-700","color-btn-gray-secondary-default-content":"color-cold-gray-200","color-btn-gray-secondary-hover-bg":"color-cold-gray-800","color-btn-gray-secondary-hover-border":"color-cold-gray-800","color-btn-gray-secondary-hover-content":"color-white","color-btn-green-primary-active-bg":"color-minty-green-700","color-btn-green-primary-active-border":"color-minty-green-700","color-btn-green-primary-active-content":"color-white","color-btn-green-primary-default-bg":"color-minty-green-500","color-btn-green-primary-default-border":"color-minty-green-500","color-btn-green-primary-default-content":"color-white","color-btn-green-primary-hover-bg":"color-minty-green-600","color-btn-green-primary-hover-border":"color-minty-green-600","color-btn-green-primary-hover-content":"color-white","color-btn-green-secondary-active-bg":"color-minty-green-700","color-btn-green-secondary-active-border":"color-minty-green-700","color-btn-green-secondary-active-content":"color-white","color-btn-green-secondary-default-bg":"transparent","color-btn-green-secondary-default-border":"color-minty-green-500","color-btn-green-secondary-default-content":"color-minty-green-500","color-btn-green-secondary-hover-bg":"color-minty-green-600","color-btn-green-secondary-hover-border":"color-minty-green-600","color-btn-green-secondary-hover-content":"color-white","color-btn-primary-bg-active":"color-cold-gray-200","color-btn-primary-bg-default":"color-white","color-btn-primary-bg-hover":"color-cold-gray-100","color-btn-primary-disabled-bg":"color-cold-gray-750","color-btn-primary-disabled-border":"color-cold-gray-750","color-btn-primary-fg":"color-cold-gray-900","color-btn-primary-fg-default":"color-white","color-btn-primary-fg-other":"color-cold-gray-900","color-btn-red-primary-active-bg":"color-ripe-red-700","color-btn-red-primary-active-border":"color-ripe-red-700","color-btn-red-primary-active-content":"color-white","color-btn-red-primary-default-bg":"color-ripe-red-500","color-btn-red-primary-default-border":"color-ripe-red-500","color-btn-red-primary-default-content":"color-white","color-btn-red-primary-hover-bg":"color-ripe-red-600","color-btn-red-primary-hover-border":"color-ripe-red-600","color-btn-red-primary-hover-content":"color-white","color-btn-red-secondary-active-bg":"color-ripe-red-700","color-btn-red-secondary-active-border":"color-ripe-red-700","color-btn-red-secondary-active-content":"color-white","color-btn-red-secondary-default-bg":"transparent","color-btn-red-secondary-default-border":"color-ripe-red-500","color-btn-red-secondary-default-content":"color-ripe-red-500","color-btn-red-secondary-hover-bg":"color-ripe-red-600","color-btn-red-secondary-hover-border":"color-ripe-red-600","color-btn-red-secondary-hover-content":"color-white","color-btn-secondary-disabled-bg":"transparent","color-btn-secondary-disabled-border":"color-cold-gray-750","color-btn-sell":"color-ripe-red-500","color-btn-sell-active":"color-ripe-red-700","color-btn-sell-hover":"color-ripe-red-600","color-button-action-active":"color-cold-gray-700","color-button-action-background-disabled":"color-cold-gray-750","color-button-action-background-pl-disabled":"color-cold-gray-800","color-button-action-background-text-disabled":"color-cold-gray-650","color-button-action-border":"color-cold-gray-600","color-button-action-text":"color-cold-gray-200","color-button-action-text-disabled":"color-cold-gray-650","color-button-background":"color-cold-gray-800","color-button-bg":"color-cold-gray-450","color-button-bg-hover":"color-cold-gray-400","color-button-bg-selected":"color-tv-blue-a700","color-button-border":"color-cold-gray-650","color-button-disabled-bg":"color-cold-gray-750","color-button-hover":"color-cold-gray-800","color-button-position-buy":"color-tv-blue-500","color-button-position-buy-active":"color-tv-blue-700","color-button-position-buy-hover":"color-tv-blue-600","color-button-position-profit":"color-minty-green-500","color-button-position-profit-active":"color-minty-green-700","color-button-position-profit-hover":"color-minty-green-600","color-button-position-sell":"color-ripe-red-500","color-button-position-sell-active":"color-ripe-red-700","color-button-position-sell-hover":"color-ripe-red-600","color-button-text":"color-cold-gray-200","color-button-text-active":"color-white","color-button-text-color":"color-white","color-button-text-disabled":"color-cold-gray-600","color-buy-border-active":"color-tv-blue-500","color-buy-border-hover":"color-tv-blue-500","color-buy-btn-chart":"color-tv-blue-500","color-buy-btn-chart-active":"color-tv-blue-700","color-buy-btn-chart-hover":"color-tv-blue-600","color-buy-btn-text-dark":"color-tv-blue-50","color-buy-btn-text-default":"color-tv-blue-50","color-buy-btn-text-light":"color-white","color-buy-btn-withoutbg-active-chart-dark":"color-tv-blue-a900","color-buy-btn-withoutbg-active-chart-default":"color-tv-blue-a900","color-buy-btn-withoutbg-active-chart-light":"color-tv-blue-100","color-buy-btn-withoutbg-chart-dark":"color-cold-gray-900","color-buy-btn-withoutbg-chart-default":"color-cold-gray-900","color-buy-btn-withoutbg-chart-light":"color-white","color-buy-btn-withoutbg-hover-chart-dark":"color-tv-blue-a900","color-buy-btn-withoutbg-hover-chart-default":"color-tv-blue-a900","color-buy-btn-withoutbg-hover-chart-light":"color-tv-blue-50","color-calculator-active":"color-cold-gray-200","color-calendar-accent-color":"color-cold-gray-100","color-calendar-weekdays-bg-color":"color-cold-gray-800","color-caret-hover":"color-cold-gray-750","color-cell-content-text":"color-cold-gray-200","color-cell-text":"color-cold-gray-200","color-cell-text-falling":"color-ripe-red-500","color-cell-text-growing":"color-minty-green-400","color-checkbox":"color-cold-gray-650","color-checkbox-active":"color-tv-blue-700","color-checkbox-checked":"color-tv-blue-500","color-checkbox-checked-hover":"color-tv-blue-600","color-checkbox-disabled":"color-cold-gray-650","color-checkbox-disabled-bg":"color-cold-gray-800","color-checkbox-focused":"color-tv-blue-500","color-checkbox-hover":"color-cold-gray-600","color-checkbox-icon":"color-cold-gray-200","color-child-of-selected-background":"color-tv-blue-a900","color-child-of-selected-hovered-button-background":"color-tv-blue-a800","color-circle-logo-background":"color-cold-gray-800","color-circle-logo-letter":"color-cold-gray-600","color-close":"color-cold-gray-600","color-close-button-active-bg":"color-cold-gray-850","color-close-button-active-text":"color-white","color-close-button-hover-bg":"color-cold-gray-800","color-close-button-hover-text":"color-white","color-common-tooltip-force-transparent":"transparent","color-common-tooltip-hotkey-divider":"color-cold-gray-450","color-container-border":"color-cold-gray-800","color-container-hover-bg":"color-cold-gray-800","color-content-disabled":"color-cold-gray-600","color-content-item-bg":"color-cold-gray-850","color-context-menu-item-active-shortcut":"color-cold-gray-450","color-context-menu-item-checked":"color-cold-gray-450","color-control-border-hover":"color-cold-gray-550","color-control-disabled-bg":"color-cold-gray-800","color-control-disabled-text":"color-cold-gray-650","color-control-highlight-intent-default":"color-cold-gray-450","color-cross-white":"color-white","color-currency":"color-cold-gray-450","color-currency-active":"color-cold-gray-200","color-custom-button":"color-cold-gray-200","color-custom-button-hover":"color-cold-gray-800","color-custom-field-checkbox-label":"color-cold-gray-300","color-custom-field-section-title":"color-cold-gray-300","color-danger-row-border":"color-ripe-red-700","color-data-table-btn-hover":"color-cold-gray-50","color-data-table-cell-blue-background-bg":"color-cold-gray-750","color-data-table-cell-border":"color-cold-gray-750","color-data-table-cell-red-background-bg":"#2c2030","color-data-table-cell-status-bg":"color-cold-gray-850","color-data-table-stroke-grayed":"color-cold-gray-200","color-data-table-tbody-hover-bg":"color-cold-gray-900","color-data-table-thead-bg":"color-cold-gray-800","color-default-active-bg":"color-cold-gray-850","color-desktop-row-border":"color-cold-gray-800","color-desktop-table-background":"color-cold-gray-900","color-details-falling":"color-ripe-red-500","color-details-growing":"color-minty-green-400","color-dialog-background":"color-cold-gray-850","color-dialog-text":"color-cold-gray-200","color-disabled-title":"color-cold-gray-650","color-divider-intent-default":"color-cold-gray-800","color-divider-intent-primary":"color-cold-gray-700","color-dom-widget-button-active-ask":"color-tv-blue-700","color-dom-widget-button-active-bid":"color-ripe-red-700","color-dom-widget-button-ask":"color-tv-blue-500","color-dom-widget-button-bid":"color-ripe-red-500","color-dom-widget-button-close-cross":"color-cold-gray-300","color-dom-widget-button-disabled":"color-cold-gray-750","color-dom-widget-button-hover-ask":"color-tv-blue-600","color-dom-widget-button-hover-bid":"color-ripe-red-600","color-dom-widget-lock-active":"color-cold-gray-200","color-dom-widget-nav-border":"color-cold-gray-750","color-dot-bg":"color-cold-gray-650","color-drag-icon":"color-cold-gray-650","color-drawer-item-active-bg":"color-tv-blue-500","color-drawer-item-active-text":"color-cold-gray-200","color-drawer-item-text":"color-cold-gray-200","color-drop-layer":"color-cold-gray-800","color-drop-target-border":"color-tv-blue-500","color-edit-button-background-hover":"color-cold-gray-700","color-edit-button-icon-hover":"color-cold-gray-200","color-edit-button-text":"color-cold-gray-200","color-edit-button-text-disabled":"color-cold-gray-650","color-empty-border":"color-white","color-empty-line":"color-ripe-red-400","color-error-background":"color-cold-gray-900","color-error-text":"color-cold-gray-400","color-expand-handle-bg-hover":"color-cold-gray-700","color-favorite-bg-hover":"color-cold-gray-800","color-favorite-border":"color-cold-gray-700","color-favorite-checked":"color-banana-yellow-800","color-favorite-round-bg":"color-white","color-favorite-round-text":"color-black","color-favorite-study-template-bg-hover":"color-cold-gray-800","color-favorite-study-template-border":"color-cold-gray-500","color-favorite-study-template-text":"color-cold-gray-450","color-favorite-study-template-text-hover":"color-cold-gray-450","color-favorite-text":"color-cold-gray-200","color-first-item-border":"transparent","color-floating-toolbar-shadow":"color-black","color-force-transparent":"transparent","color-gray":"color-cold-gray-700","color-grayed-text":"color-cold-gray-650","color-headcell-text-hovered":"color-cold-gray-200","color-header-border":"color-cold-gray-750","color-header-hover":"color-cold-gray-800","color-header-hovered-button-bg-disabled":"color-cold-gray-900","color-header-title-symbol-exchange":"color-cold-gray-200","color-headerspace-btn-active-bg":"color-cold-gray-800","color-headerspace-btn-icon-color":"color-cold-gray-200","color-highlight-falling":"color-ripe-red-500","color-highlight-growing":"color-minty-green-400","color-highlight-search":"color-tv-blue-200","color-highlighted-text":"color-tv-blue-200","color-hovered-background":"color-cold-gray-800","color-hovered-button-background":"color-cold-gray-750","color-hovered-row-background":"color-cold-gray-800","color-hovered-settings-button-background":"color-cold-gray-750","color-hovered-watchlist-header-cell":"color-cold-gray-400","color-icon":"color-cold-gray-300","color-icon-background-selected-hover":"color-tv-blue-a700","color-icon-hover":"color-cold-gray-200","color-icon-hover-color":"color-cold-gray-200","color-icon-selected":"color-cold-gray-200","color-icon-selected-hover":"color-tv-blue-a700","color-indicators-text":"color-cold-gray-200","color-info":"color-cold-gray-400","color-info-icon":"color-cold-gray-650","color-info-table-row-hover-bg":"color-cold-gray-800","color-info-table-text-buy":"color-tv-blue-500","color-info-table-text-disabled":"color-cold-gray-700","color-info-table-text-highlighted":"color-cold-gray-200","color-info-table-text-sell":"color-ripe-red-500","color-informer-intent-danger-bg":"color-cold-gray-850","color-informer-intent-danger-border":"color-ripe-red-500","color-informer-intent-default":"color-cold-gray-450","color-informer-intent-default-bg":"color-cold-gray-850","color-informer-intent-default-border":"color-cold-gray-700","color-informer-intent-success-bg":"color-cold-gray-850","color-informer-intent-success-border":"color-minty-green-500","color-informer-intent-warning-bg":"color-cold-gray-850","color-informer-intent-warning-border":"color-tan-orange-500","color-informer-light-danger-bg":"color-ripe-red-a900","color-informer-light-default-bg":"color-cold-gray-800","color-informer-light-success-bg":"color-minty-green-a900","color-informer-light-warning-bg":"color-tan-orange-a900","color-informer-text-content":"color-cold-gray-200","color-input-bg":"color-cold-gray-850","color-input-border":"color-cold-gray-650","color-input-border-hover":"color-cold-gray-550","color-input-disabled-bg":"color-cold-gray-800","color-input-disabled-border":"color-cold-gray-650","color-input-disabled-text":"color-cold-gray-650","color-input-placeholder-wait":"color-cold-gray-500","color-input-readonly-bg":"color-cold-gray-800","color-input-readonly-border":"color-cold-gray-650","color-input-text":"color-cold-gray-200","color-item-action":"color-cold-gray-850","color-item-bg-selected":"color-tv-blue-a800","color-item-row-bg-hover":"color-cold-gray-800","color-item-row-border":"color-cold-gray-800","color-item-row-selected":"color-tv-blue-a800","color-item-row-text":"color-cold-gray-200","color-item-row-text-invalid":"color-ripe-red-400","color-item-shortcut-active-text":"color-cold-gray-200","color-item-text":"color-cold-gray-200","color-item-toolbox-active-text":"color-white","color-keyboard-button-bg":"color-cold-gray-850","color-keyboard-button-shadow":"color-cold-gray-750","color-keyboard-button-text":"color-cold-gray-200","color-light-tab-button-active-bg":"color-cold-gray-700","color-light-tab-button-default-bg":"color-cold-gray-800","color-light-tab-button-default-content":"color-cold-gray-200","color-light-tab-button-disabled-bg":"color-cold-gray-800","color-light-tab-button-disabled-content":"color-cold-gray-600","color-light-tab-button-hover-bg":"color-cold-gray-750","color-light-tab-button-selected-bg":"color-cold-gray-900","color-light-tab-button-selected-content":"color-white","color-linked-row-border":"color-tv-blue-700","color-load-chart-dialog-text":"color-cold-gray-350","color-loading-buttons-dark":"color-cold-gray-800","color-loading-buttons-default":"color-cold-gray-800","color-loading-buttons-light":"color-cold-gray-100","color-long-position-bg":"#223d54","color-main-background":"color-cold-gray-850","color-main-content-text":"color-cold-gray-200","color-main-text":"color-cold-gray-200","color-margin-overflow":"color-ripe-red-500","color-menu-button":"color-cold-gray-850","color-menu-icon-hover":"color-cold-gray-200","color-menu-wrapper":"transparent","color-message-bg":"color-cold-gray-750","color-message-error-bg":"#6f2626","color-meter-buy-active-bg":"color-tv-blue-a800","color-meter-buy-bg":"color-tv-blue-a900","color-meter-sell-active-bg":"color-ripe-red-a800","color-meter-sell-bg":"color-ripe-red-a900","color-mobile-row-bottom-border":"color-cold-gray-750","color-mobile-table-background":"color-cold-gray-850","color-modal-backdrop":"color-cold-gray-950","color-now-border":"color-cold-gray-850","color-now-stick":"color-cold-gray-200","color-number-input-arrow-bg-hover":"color-cold-gray-750","color-number-input-arrow-hover":"color-cold-gray-200","color-opacity-bg":"color-black","color-open":"color-minty-green-500","color-option-active-bg":"color-cold-gray-800","color-option-hover-bg":"color-cold-gray-800","color-overall-volume-ask":"color-ripe-red-a900","color-overall-volume-bid":"color-tv-blue-a800","color-overall-volume-text-ask":"color-ripe-red-500","color-overall-volume-text-bid":"color-tv-blue-500","color-placeholder-down":"color-ripe-red-400","color-placeholder-up":"color-minty-green-400","color-pointer":"color-white","color-popup-menu-item":"color-cold-gray-750","color-position-warning-bg":"color-cold-gray-800","color-post-market":"color-tv-blue-500","color-pre-market":"color-tan-orange-600","color-preview-error":"color-ripe-red-500","color-preview-warning-icon":"color-cold-gray-900","color-preview-warning-text":"color-cold-gray-200","color-price":"color-cold-gray-200","color-price-text":"color-cold-gray-200","color-primary-icon":"color-sky-blue-500","color-primary-popup":"color-cold-gray-900","color-progress":"color-tv-blue-500","color-progress-track":"color-cold-gray-650","color-properties-dialog-borders":"color-cold-gray-700","color-properties-dialog-defaults-text":"color-cold-gray-200","color-properties-dialog-tab-bg":"color-cold-gray-800","color-qty-bg-active-chart-dark":"color-cold-gray-900","color-qty-bg-active-chart-default":"color-cold-gray-900","color-qty-bg-active-chart-light":"color-cold-gray-150","color-qty-bg-chart-dark":"color-cold-gray-850","color-qty-bg-chart-default":"color-cold-gray-850","color-qty-bg-chart-light":"color-cold-gray-50","color-qty-bg-hover-chart-dark":"color-cold-gray-800","color-qty-bg-hover-chart-default":"color-cold-gray-800","color-qty-bg-hover-chart-light":"color-cold-gray-100","color-qty-text-chart-dark":"color-cold-gray-200","color-qty-text-chart-default":"color-cold-gray-200","color-qty-text-chart-light":"color-cold-gray-900","color-quantity-input-border":"color-cold-gray-650","color-quantity-input-disabled":"color-cold-gray-700","color-radio":"color-cold-gray-650","color-radio-checked":"color-tv-blue-500","color-radio-checked-bg":"color-cold-gray-200","color-radio-checked-hover":"color-tv-blue-600","color-radio-disabled":"color-cold-gray-650","color-radio-disabled-bg":"color-cold-gray-800","color-radio-hover":"color-cold-gray-600","color-range-background":"color-cold-gray-800","color-range-slider-bg":"color-cold-gray-700","color-range-slider-middle-bg":"color-tv-blue-500","color-red-price":"color-ripe-red-500","color-relative-price-arrow-hover":"color-cold-gray-200","color-relative-price-input-wait":"color-cold-gray-700","color-relative-price-list-item":"color-cold-gray-200","color-relative-price-list-item-hover-bg":"color-cold-gray-800","color-relative-price-list-item-selected":"color-tv-blue-50","color-relative-price-list-item-selected-bg":"color-tv-blue-500","color-remove-action-hover":"color-ripe-red-500","color-rename-input-background":"color-cold-gray-800","color-right-hover":"color-minty-green-700","color-right-main":"color-minty-green-600","color-round-tab-disabled-content":"color-cold-gray-600","color-round-tab-ghost-active-bg":"transparent","color-round-tab-ghost-active-border":"color-white","color-round-tab-ghost-active-content":"color-white","color-round-tab-ghost-default-bg":"transparent","color-round-tab-ghost-default-border":"transparent","color-round-tab-ghost-default-content":"color-cold-gray-200","color-round-tab-ghost-disabled-bg":"transparent","color-round-tab-ghost-hover-bg":"transparent","color-round-tab-ghost-hover-border":"color-cold-gray-700","color-round-tab-ghost-hover-content":"color-cold-gray-200","color-round-tab-ghost-selected-bg":"transparent","color-round-tab-ghost-selected-border":"color-white","color-round-tab-ghost-selected-content":"color-white","color-round-tab-primary-active-bg":"color-cold-gray-700","color-round-tab-primary-active-border":"color-cold-gray-700","color-round-tab-primary-active-content":"color-white","color-round-tab-primary-default-bg":"color-cold-gray-800","color-round-tab-primary-default-border":"color-cold-gray-800","color-round-tab-primary-default-content":"color-cold-gray-200","color-round-tab-primary-disabled-bg":"color-cold-gray-750","color-round-tab-primary-hover-bg":"color-cold-gray-750","color-round-tab-primary-hover-border":"color-cold-gray-750","color-round-tab-primary-hover-content":"color-cold-gray-200","color-round-tab-primary-selected-bg":"color-white","color-round-tab-primary-selected-border":"color-white","color-round-tab-primary-selected-content":"color-cold-gray-900","color-scroll-fade":"color-cold-gray-900","color-scrollbar-active":"color-cold-gray-350","color-scrollbar-default":"color-cold-gray-650","color-scrollbar-hover":"color-cold-gray-450","color-search-border":"color-cold-gray-700","color-section-bg":"color-cold-gray-800","color-section-buy-bg-active":"color-tv-blue-700","color-section-buy-bg-hover":"color-tv-blue-600","color-section-content":"color-cold-gray-650","color-section-content-active":"color-cold-gray-200","color-section-sell-bg-active":"color-ripe-red-700","color-section-sell-bg-hover":"color-ripe-red-600","color-selected-border":"color-cold-gray-200","color-selected-hovered-button-background":"color-tv-blue-a700","color-selected-symbol-background":"color-tv-blue-a800","color-sell-border-active":"color-ripe-red-500","color-sell-border-hover":"color-ripe-red-500","color-sell-btn-chart":"color-ripe-red-500","color-sell-btn-chart-active":"color-ripe-red-700","color-sell-btn-chart-hover":"color-ripe-red-600","color-sell-btn-text-dark":"color-ripe-red-50","color-sell-btn-text-default":"color-ripe-red-50","color-sell-btn-text-light":"color-white","color-sell-btn-withoutbg-active-chart-dark":"color-ripe-red-a900","color-sell-btn-withoutbg-active-chart-default":"color-ripe-red-a900","color-sell-btn-withoutbg-active-chart-light":"color-ripe-red-100","color-sell-btn-withoutbg-hover-chart-dark":"color-ripe-red-a900","color-sell-btn-withoutbg-hover-chart-default":"color-ripe-red-a900","color-sell-btn-withoutbg-hover-chart-light":"color-ripe-red-50","color-separator":"color-cold-gray-800","color-separator-active-background":"color-tv-blue-a800","color-separator-border":"color-cold-gray-800","color-shadow":"color-cold-gray-700","color-short-position-bg":"#49283b","color-small-bg":"color-cold-gray-850","color-solution-icon":"color-cold-gray-650","color-sort-button":"color-cold-gray-200","color-sort-button-bg-hover":"color-cold-gray-750","color-sort-button-icon-hover":"color-cold-gray-600","color-sortable-after-border":"color-cold-gray-450","color-spread":"color-cold-gray-300","color-spread-chart-dark":"color-cold-gray-200","color-spread-chart-default":"color-cold-gray-200","color-spread-chart-light":"color-cold-gray-900","color-square-tab-bg-active":"color-cold-gray-750","color-square-tab-bg-selected":"color-cold-gray-800","color-square-tab-bg-transparent":"transparent","color-square-tab-text-active":"color-white","color-success-row-border":"color-minty-green-600","color-suggestion-text":"color-cold-gray-450","color-swatch-border-hover":"color-cold-gray-650","color-switch-bg":"transparent","color-switch-border":"color-cold-gray-650","color-switch-hover-bg":"color-cold-gray-800","color-symbol":"color-cold-gray-400","color-symbol-border":"color-cold-gray-800","color-tab-disabled":"transparent","color-tab-hover":"color-cold-gray-800","color-tab-switcher-border":"color-cold-gray-700","color-tag-bg":"color-cold-gray-800","color-tag-bg-hover":"color-cold-gray-750","color-tag-buy":"color-tv-blue-500","color-tag-sell":"color-ripe-red-500","color-tag-text":"color-white","color-templates-dialog-body-border":"color-cold-gray-700","color-text":"color-cold-gray-200","color-text-btn-activated-bg":"color-tv-blue-a800","color-text-btn-activated-content":"color-tv-blue-100","color-text-btn-bg-active-brand":"color-tv-blue-a800","color-text-btn-bg-active-gray":"color-cold-gray-750","color-text-btn-bg-active-light-gray":"color-cold-gray-750","color-text-btn-bg-checked-brand":"color-tv-blue-a800","color-text-btn-bg-checked-gray":"color-cold-gray-800","color-text-btn-bg-checked-light-gray":"color-cold-gray-800","color-text-btn-bg-hover-brand":"color-tv-blue-a800","color-text-btn-bg-hover-gray":"color-cold-gray-800","color-text-btn-bg-hover-light-gray":"color-cold-gray-800","color-text-btn-content-active-brand":"color-tv-blue-200","color-text-btn-content-active-gray":"color-white","color-text-btn-content-active-light-gray":"color-white","color-text-btn-content-brand":"color-tv-blue-500","color-text-btn-content-checked-brand":"color-tv-blue-100","color-text-btn-content-checked-gray":"color-white","color-text-btn-content-checked-light-gray":"color-white","color-text-btn-content-disabled-brand":"color-cold-gray-600","color-text-btn-content-disabled-gray":"color-cold-gray-600","color-text-btn-content-disabled-light-gray":"color-cold-gray-600","color-text-btn-content-gray":"color-cold-gray-200","color-text-btn-content-hover-brand":"color-tv-blue-100","color-text-btn-content-hover-gray":"color-white","color-text-btn-content-hover-light-gray":"color-white","color-text-btn-content-light-gray":"color-cold-gray-450","color-text-input":"color-cold-gray-200","color-text-white":"color-white","color-textarea-bg":"color-cold-gray-900","color-ticker":"color-cold-gray-200","color-ticker-background":"color-cold-gray-800","color-time-mark":"color-cold-gray-850","color-title":"color-cold-gray-650","color-title-background":"color-cold-gray-800","color-title-text":"color-cold-gray-200","color-toast-bg":"color-cold-gray-850","color-tooltip-background":"color-cold-gray-850","color-tooltip-blue":"color-tv-blue-a200","color-tooltip-card-shadow":"color-black","color-tooltip-force-transparent":"transparent","color-tooltip-gray":"color-cold-gray-300","color-tooltip-text":"color-cold-gray-200","color-tooltip-time":"color-cold-gray-100","color-tooltip-wizard-bg":"color-tv-blue-500","color-top-border-content":"color-cold-gray-700","color-trading-widget-title-text":"color-cold-gray-300","color-tree-bg":"color-cold-gray-900","color-tv-button-group-primary":"color-tv-blue-50","color-tv-dom-panel-header-bg":"color-cold-gray-900","color-tv-dom-widget-main-value-border":"color-cold-gray-750","color-ui-loading-indicator-bg":"color-cold-gray-900","color-underline-tab-active-content":"color-cold-gray-200","color-underline-tab-default-content":"color-cold-gray-200","color-underline-tab-selected-content":"color-cold-gray-200","color-unitconversion-active":"color-cold-gray-100","color-unitconversion-active-text":"color-black","color-unitconversion-bottom-border":"color-cold-gray-800","color-unitconversion-highlighted-text":"color-tv-blue-200","color-unitconversion-label":"color-cold-gray-200","color-unitconversion-selected-bg":"color-tv-blue-a800","color-wait":"color-cold-gray-700","color-warn-text":"color-tan-orange-600","color-week-day-text-active":"color-cold-gray-200","color-white-border":"transparent","color-white-hover":"color-white","color-widget-header-border":"color-cold-gray-800","color-widget-header-title-color":"color-cold-gray-200","color-widget-separator":"color-cold-gray-800","color-widgetbar-titles":"color-cold-gray-200"}}'),y={ +...n,...i,...g.dark},u={...a,...d,...g.light};function s(o){var r;const l={};for(const[c,e]of Object.entries(o))"string"==typeof e&&(void 0===l[e]&&(l[e]=[]),null===(r=l[e])||void 0===r||r.push(c));return l}function h(o,r){const l=[];for(let c=1;c<20;c++)l.push(o[`${r}-${50*c}`]);return l}function v(o){return{color1:h(o,"color-tv-blue"),color2:h(o,"color-cold-gray"),color3:h(o,"color-ripe-red"),color4:h(o,"color-minty-green"),color5:h(o,"color-tan-orange"),color6:h(o,"color-grapes-purple"),color7:h(o,"color-banana-yellow"),white:[o["color-white"]],black:[o["color-black"]]}}const p=s(y),m=s(u);function f(o,r){const l=/([a-z]+[\-a-z+]+-[a-z]+)-?([0-9]+)?/.exec(o);if(null===l)return;const c=l[1],e=parseInt(l[2])/50-1;switch(c){case"color-tv-blue":return r.color1[e];case"color-cold-gray":return r.color2[e];case"color-ripe-red":return r.color3[e];case"color-minty-green":return r.color4[e];case"color-tan-orange":return r.color5[e];case"color-grapes-purple":return r.color6[e];case"color-banana-yellow":return r.color7[e];case"color-white":return r.white;case"color-black":return r.black}}const w={};for(const[o,r]of Object.entries(b))w[r]=o;const k=v(p),x=v(m);function q(o,r){return(r===e.StdTheme.Light?x:k)[o]}function S(o,r,l){const c=(r===e.StdTheme.Light?u:y)[o];if(void 0===c)return;return f(c,l)}function T(o,r){const l=w[o];if(void 0!==l)return f(l,r)}var C=l(36986);const L="theme-custom";function O(o){G(e.StdTheme.Light,o[e.StdTheme.Light]),G(e.StdTheme.Dark,o[e.StdTheme.Dark]),window.requestAnimationFrame((()=>{A(),z(":root",e.StdTheme.Light,o[e.StdTheme.Light]),z(".theme-dark:root",e.StdTheme.Dark,o[e.StdTheme.Dark]),function(o){D().insertRule(`.chart-widget__top--themed-dark {\n\t\t--themed-color-legend-background-tertiary: ${S("color-background-tertiary",e.StdTheme.Dark,o.dark)};\n\t\t--themed-color-legend-background-secondary-inverse: ${S("color-background-secondary-inverse",e.StdTheme.Dark,o.dark)};\n\t}`),D().insertRule(`.chart-widget__top--themed-light {\n\t\t--themed-color-legend-background-tertiary: ${S("color-background-tertiary",e.StdTheme.Light,o.light)};\n\t\t--themed-color-legend-background-secondary-inverse: ${S("color-background-secondary-inverse",e.StdTheme.Light,o.light)};\n\t}`)}(o)}))}function $(){(0,e.restoreStdThemes)(),window.requestAnimationFrame((()=>{!function(){const o=D();for(;o.cssRules.length>0;)o.deleteRule(0)}(),R()}))}function A(){const o=window.document.documentElement.classList;o.contains(L)||o.add(L)}function R(){window.document.documentElement.classList.remove(L)}let j;function D(){return void 0===j&&(j=new CSSStyleSheet,(0,C.getChartingLibraryGlobalContext)().document.adoptedStyleSheets.push(j)),j}function z(o,r,l){var c;const e=[];for(const[o,t]of Object.entries(l))if(Array.isArray(t)){const l=q(o,r);for(let o=0;o{m=setInterval((()=>{v(),f()}),6e4),v(),f()}),1e3*s.timer),s&&void 0!==s?.timeout||(s.timeout=g),v(),f()}(e)}),(function(){})),h.stop=function(){u=!0,m&&clearInterval(m),g&&clearInterval(g)},h.marketStatus=function(){return d},h}},85541:(e,t,i)=>{"use strict";i.d(t,{BarSet:()=>s});class s{constructor(e,t){this.info=e,this.bars=t||[],this.isBarClosed=!0,this.firstLoadedTimeMs=0!==this.bars.length?this.bars[0].time:1/0,this._emptyBarCount=0,this._lastBarIsEmpty=!1}symbolinfo(){return this.info}isLastBarClosed(){return this.isBarClosed}setLastBarClosed(e){this.isBarClosed=e}bar(e){const t=this.bars[e];if(void 0===t)throw new Error(`BarSet has no value at index ${e}`);return t}count(){return this.bars.length}emptyBarCount(){return this._emptyBarCount}add(e,t,i){void 0===i&&(i=!1);const s=e,r=this.bars,n=r.length,o=s.time,a=0===n?NaN:r[n-1].time;0===n||a{"use strict";i.r(t),i.d(t,{DataFeed:()=>P,setupFeed:()=>S,unsubscribeUnused:()=>b});var s=i(50151),r=i(85049);class n{constructor(){this._listeners=[]}listenersCount(){return this._listeners.reduce(((e,t)=>e+(t?1:0)),0)}addListener(e,t){this._listeners.push({dataListener:e,onErrorCallback:t}),this._barset&&e(this._barset),this._errorMsg&&t(this._errorMsg)}removeListener(e){const t=this._listeners.filter((t=>t&&t.dataListener===e));if(0===t.length)return;const i=this._listeners.indexOf(t[0]);delete this._listeners[i]}onError(e){this._errorMsg=e||"unspecified error";const t=this._listeners,i=t.length;for(let s=0;s{throw new Error("BarBuildItem scripts should not need to access any input values")},recalc:(e,t)=>{this._recalc(t)},out:(e,t)=>{this._out(e,t)},nonseriesOut:(e,t)=>{ this._nonseriesOut(e,t)},setNoMoreData:()=>{this._barset&&(this._barset.endOfData=!0)},onErrorCallback:e=>{this.listeners.onError(e)}})}stop(){this.engine?this.engine.stop():console.error("Internal library error 0x1")}_recalc(e){this._isRecalculated&&console.error("recalc called twice!"),this._barset||(this._barset=new l.BarSet(this._symbolInfo)),e&&(this._barset.firstLoadedTimeMs=e.firstLoadedTimeMs,this._barset.endOfData=e.endOfData),this.listeners.fire(this._barset),this._isRecalculated=!0}_nonseriesOut(e,t){var i,s;const r=Object.assign({},t);r.nonseries=!0,r.data=t.bars,delete r.bars,r.barsetSize=this._barset?this._barset.count():0,r.lastBar=this._barset&&this._barset.count()>0?this._barset.bar(this._barset.count()-1):null,"number"==typeof t.projectionTime&&(r.lastBar||(r.lastBar={}),null!==(i=(s=r.lastBar).projectionTime)&&void 0!==i||(s.projectionTime=t.projectionTime)),this.listeners.fire(r,!0)}_out(e,t){const i=t[0];if(isNaN(i))return;const r={time:i,open:t[1],high:t[2],low:t[3],close:t[4],volume:t[5],updatetime:t[6]},n=t[7];this._barset||(this._barset=new l.BarSet((0,s.ensureDefined)(e.info,"bar builder item output symbol info")));const o=t[8],a=t[9];if(o instanceof Array&&a)for(let e=0;e{r&&e.regular_session&&(e.session=e.regular_session),this._subs=this._host.subscribe(e,s,a,(e=>{this.listeners.fire(e)}),(e=>{this.listeners.onError(e)}))}),(e=>{this.listeners.onError(e)}))}stop(){this._subs&&this._host.unsubscribe(this._subs)}}var g=i(60656),f=i(14381),v=i(40644);class y{constructor(e,t){this._period=e,this._generateEmptyBars=!!t}init(e){this._bb=(0,f.newBarBuilder)(this._period,e.symbol.session,null),this._bbEmptyBars=this._generateEmptyBars?(0,f.newBarBuilder)(this._period,e.symbol.session,null):void 0,e.setMinimumAdditionalDepth(0)}main(e){const t=(0, s.ensureDefined)(this._bb,"bar builder study bar builder"),i=e.symbol.time,r=t.alignTime(i),n=e.new_var(r),o=h.Std.na(r),a=n.get(1),l=h.Std.na(a)?1:h.Std.neq(r,a),c=e.new_var(),d=e.new_var(),u=e.new_var(),p=e.new_var(),_=c.get(1),m=d.get(1),g=u.get(1),f=p.get(1),v=o?NaN:l?h.Std.open(e):_,y=o?NaN:l?h.Std.high(e):h.Std.max(h.Std.high(e),m),S=o?NaN:l?h.Std.low(e):h.Std.min(h.Std.low(e),g),b=o?NaN:h.Std.close(e),w=o?NaN:l?h.Std.volume(e):h.Std.volume(e)+f,C=o?NaN:i,P=e.symbol.isBarClosed&&t.isLastBar(0,i),x=this._generateEmptyBars&&l?this._extrapolate(a,r):void 0,T=e.new_var(h.Std.close(e)).get(1),I=x instanceof Array?T:NaN;return c.set(v),d.set(y),u.set(S),p.set(w),[r,v,y,S,b,w,C,P,x,I]}_extrapolate(e,t){return isNaN(e)||isNaN(t)?void 0:(0,v.extrapolateBarsFrontToTime)((0,s.ensureDefined)(this._bbEmptyBars,"bar builder study empty bar builder"),e,t,Number.MAX_SAFE_INTEGER,!0).times}}const S=e=>{P.instance=new P(e),(0,g.setupFeed)(P.instance)},b=()=>{P.instance.removeUnused()},w=e=>{console.error(e),h.Std.error(e)},C=r.Interval.parse("1M").inMilliseconds(0);class P{constructor(e){this._host=e,this._cache={}}subscribe(e,t,i,s,r,n,o,a,l,c,h){const d=l(o),u=((e,t,i,s,r,n,o,a,l)=>n+e+s+(t||"")+(i||"")+(l||"")+(r.has_empty_bars?"_":"")+"_"+o.countBack+"_"+o.to+"_"+Boolean(a))(e,t,i,s,o,a,d,c,h);let p=this._getCache(u);return p||(p=this._createItem(e,t,i,s,o,d,a,c,h),this._putCache(u,p)),p.listeners.addListener(r,n),{key:u,listener:r}}unsubscribe(e){const t=this._getCache(e.key);t&&t.listeners.removeListener(e.listener)}removeUnused(){const e=[],t=e=>!!this._cache[e];for(const i in this._cache)if(t(i)){0===(0,s.ensureNotNull)(this._cache[i],`datafeed cache item ${i}`).listeners.listenersCount()&&e.push(i)}if(0!==e.length){for(let t=0;t{"use strict";let s;function r(e,t,i,r){var n;return null!==(n=null==s?void 0:s(e,t,i,r))&&void 0!==n?n:e}function n(e){s=e}i.d(t,{getVolumeProfileResolutionForPeriod:()=>r,overwriteVolumeProfileResolutionForPeriodGetter:()=>n})},67153:(e,t,i)=>{"use strict";i.d(t,{findSuitableResolutionToBuildFrom:()=>o});var s=i(85049);function r(e,t){const i=t.multiplier();for(let s=e.length-1;s>=0;s--){const r=Number(e[s]);if(i%r==0)return{error:!1,resolution:`${r}${t.letter()}`}}return{error:!0,errorMessage:n(t.value())}}function n(e){return`Misconfiguration error: it is trying to request ${e} but we cannot build it from lower resolution`}function o(e,t){const i=s.Interval.parse(e);if((i.isWeeks()||i.isMonths())&&t.has_weekly_and_monthly){let e=["1"];i.isWeeks()&&void 0!==t.weekly_multipliers&&(e=t.weekly_multipliers),i.isMonths()&&void 0!==t.monthly_multipliers&&(e=t.monthly_multipliers);const s=r(e,i);if(!s.error)return s}if(i.isDWM()&&(void 0===t.has_daily||t.has_daily))return i.isDays()&&void 0!==t.daily_multipliers?r(t.daily_multipliers,i):void 0===t.daily_multipliers||t.daily_multipliers.includes("1")?{error:!1,resolution:"1D"}:{error:!0,errorMessage:"Misconfiguration error: it is trying to request a resolution but symbol does not support it"};if(i.isDWM())return{error:!0,errorMessage:n(i.value())};if(i.isMinutes()&&!t.has_intraday)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request intraday resolution but symbol does not support it"};if(i.isSeconds()&&!t.has_seconds)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request seconds resolution but symbol does not support it"};if(i.isTicks())return!t["is-tickbars-available"]||i.multiplier()>1?{error:!0,errorMessage:`Misconfiguration error: it is trying to request ${i.multiplier()} ticks resolution but symbol does not support it`}:{error:!1,resolution:"1T"};const o=i.isSeconds()?t.seconds_multipliers:t.intraday_multipliers;return void 0===o?{error:!1,resolution:i.value()}:r(o,i)}},60656:(e,t,i)=>{"use strict";i.d(t,{ScriptRunner:()=>C,setupFeed:()=>w});var s=i(50151),r=i(85049),n=i(73698),o=i(2740),a=i(42217),l=i(69748),c=i(14381),h=i(91007),d=i(50335);class u{constructor(e,t,i,s,o,l,c){this.periodBase="";const h=(0,n.decodeExtendedSymbol)(e),d="string"==typeof h.symbol?h:h.symbol;if((0,n.isStudySymbol)(d))throw new Error(`Unexpected nested study symbol: ${e}`) -;const u="string"==typeof h.symbol?h.symbol:h.symbol.symbol;this.ticker=u,this.currencyCode=i||d["currency-id"],this.unitId=s||d["unit-id"],this.subsessionId=c||d.session;const p=d["currency-id"]!==this.currencyCode||d["unit-id"]!==this.unitId;d["currency-id"]=this.currencyCode,d["unit-id"]=this.unitId,p&&(e=(0,n.encodeExtendedSymbolOrGetSimpleSymbolString)(h)),this.tickerid=e;const _=r.Interval.parse(t);this.resolution=_.letter(),this.interval=_.multiplier(),this.period=_.value(),this.index=-1,this.time=NaN,this.open=NaN,this.high=NaN,this.low=NaN,this.close=NaN,this.volume=NaN,this.updatetime=NaN,this.minTick=NaN,this.isNewBar=!1,this.isBarClosed=!1,this.isFirstBar=!1,this.isLastBar=!1,this.session=new a.SessionInfo("Etc/UTC","24x7"),this.regularSubsession=null,this.preMarketSubsession=null,this.postMarketSubsession=null,this.script=o,this.projectionTime=NaN,this.isAdditionalDepthAllowed=!(0,n.isStudySymbol)(h)||h.type.includes("BarSetHeikenAshi"),l&&this.set_symbolinfo(l)}set_symbolinfo(e){if(e||console.error("WARN: symbolinfo isn't defined for "+this.tickerid),this.info=e,this.minTick=e.minmov/e.pricescale,this.currencyCode=e.currency_code,this.unitId=e.unit_id,this.subsessionId=e.subsession_id,this.timezone=o.get_timezone(e.timezone),this.session.init(e.timezone,e.session,e.session_holidays,e.corrections),void 0!==e.subsessions){const t=e.subsessions.find((e=>e.id===h.SubsessionId.Regular)),i=e.subsessions.find((e=>e.id===h.SubsessionId.PreMarket)),s=e.subsessions.find((e=>e.id===h.SubsessionId.PostMarket));void 0!==t&&(this.regularSubsession=new l.SessionSpec(e.timezone,t.session,e.session_holidays,t["session-correction"])),void 0!==i&&(this.preMarketSubsession=new l.SessionSpec(e.timezone,i.session,e.session_holidays,i["session-correction"])),void 0!==s&&(this.postMarketSubsession=new l.SessionSpec(e.timezone,s.session,e.session_holidays,s["session-correction"]))}}isdwm(){return""!==this.resolution&&"S"!==this.resolution&&"T"!==this.resolution}enable_dwm_aligning(e,t){this.dwm_aligner=(0,c.newBarBuilder)(this.period,e,t)}bartime(){const e=this.time;if(!this.isdwm()||isNaN(e))return e;const t=(0,s.ensureDefined)(this.timezone,"symbol instrument timezone"),i=o.utc_to_cal(t,e);return this.session.spec.correctTradingDay(i),o.cal_to_utc(t,i)}lastbar(e){if(isNaN(e.time))return;let t=e.time;this.dwm_aligner&&(this.dwm_aligner.moveTo(t),t=this.dwm_aligner.startOfBar(0));const i=this.time!==t;i&&this.index>=0&&!this.isBarClosed&&(this.isNewBar=!1,this.isBarClosed=!0,this.script.calc(this)),this.time=t,this.open=e.open,this.high=e.high,this.low=e.low,this.close=e.close,this.volume=(0,d.isNumber)(e.volume)&&e.volume>=0?e.volume:NaN,this.updatetime=e.updatetime||NaN,this.isNewBar=i,this.isBarClosed=!!e.isBarClosed,this.isLastBar=!!e.isLastBar,this.projectionTime=e.projectionTime||NaN,this.isNewBar&&(this.index++,this.isFirstBar=0===this.index),this.script.calc(this)}}var p=i(29981),_=i(73772);class m{constructor(e){this.mindepth=0,this.original=NaN,this.modified=!1,this._hist=null,this._histPos=0,this.symbol=e}valueOf(){ -return this.get(0)}get(e){return isNaN(e)&&(e=0),e=e||0,this._hist?e>=this._hist.length?(console.error("not enough depth: "+this),NaN):this._get(e):(this.mindepth=_.Std.max(this.mindepth,e),NaN)}set(e){this._hist&&(this._hist[this._histPos]=e,this.modified=!0)}prepare(e){e===this.symbol&&(e.isNewBar?(this.original=this.get(0),!this.modified&&this._hist||this.add_hist()):this.set(this.original),this.modified=!1)}add_hist(){if(!this._hist){let e=_.Std.na(this.mindepth)?_.Std.max_series_default_size:_.Std.max(this.mindepth+1,1);e=Math.round(e);const t=new Array(e);for(let i=0;i0&&void 0!==e&&i.set(e),i}new_unlimited_var(e){const t=this._vars;t.length<=this._varsIndex&&t.push(new g(this.symbol));const i=t[this._varsIndex++];return arguments.length>0&&i.set(e),i}new_ctx(){return this._ctx.length<=this._ctxIndex&&this._ctx.push(new f(this.symbol)),this._ctx[this._ctxIndex++]}prepare(e){this._ctxIndex=0,this._varsIndex=0;for(let t=0;te&&(e=i)}return e}stop(){this.symbol=null,this._vars=null}setMinimumAdditionalDepth(e){this.minimumAdditionalDepth=e}}function v(e){ -return!Array.isArray(e)&&"composite"!==e.type&&"non_series_bars"!==e.type&&!!e.nonseries}class y{constructor(e,t,i,s,r,n,o,a,l,c,h){this._body=n,this._symbols=[],this._runner=r,this._inputCallback=a,this._out=o,this._nonseriesOut=l,this._ctx=new f(this.add_sym(e,t,i,s,c,h)),this.init()}calc(e){const t=this._ctx,i=this._body;t.prepare(e);const s=i.main(t,this._inputCallback,e);var r;if(null!=s)if(null===(r=s)||Array.isArray(r)||"composite"!==r.type)this._processResult(s);else for(let e=0;e1&&this._runner.host.enableDwmAligning&&o.enable_dwm_aligning(this._symbols[0].session,o.session),o}maxAdditionalDepth(){return this._symbols[0].isAdditionalDepthAllowed?this._ctx.maxAdditionalDepth():0}stop(){var e;this._symbols=null,null===(e=this._ctx)||void 0===e||e.stop(),this._ctx=null}get_sym(e){return this._symbols[e]}_processResult(e){const t=this._ctx;var i;this._out&&e&&(!isNaN(t.symbol.time)||v(e))&&(v(e)?(i=e,Array.isArray(i)||"projection"!==i.type||(e.projectionTime=t.symbol.time),this._nonseriesOut(t.symbol,e)):!function(e){return!Array.isArray(e)&&("non_series_bars"===e.type||"projection"===e.type)}(e)?this._out(t.symbol,e):e.bars.forEach((e=>{this._out(t.symbol,e)})))}}var S=i(53388),b=i(1452);function w(e){C.feed=e}class C{constructor(e){this._nonseriesUpdate=null,this._script=null,this._symbols=[],this._barsets=[],this._subscription=[],this.host=e,this._isRecalculated=!1,this.isStarted=!1,this.start()}add_sym(e,t,i,s,r,n,o){const a=new u(e,t,i,s,r,n,o);return this._symbols.push(a),a}get_sym(e){return this._symbols[e]}out(e,t){if(this._nonseriesUpdate){const i=Object.assign({},this._nonseriesUpdate);t.splice(0,0,e.time),i.lastBar=t,this.host.nonseriesOut(e,i)}else this.host.out(e,t)}start(){this.isStarted=!0;const e=this.host,t=new y(e.tickerid,e.period,e.currencyCode,e.unitId,this,e.body,this.out.bind(this),e.input,e.nonseriesOut,e.symbolInfo,e.subsessionId);this._script=t;const i=[],n=this._symbols,o=Object.assign({},e.dataRange,{countBack:e.dataRange.countBack+this._script.maxAdditionalDepth()}),a=n[0],l=(t,s,r)=>{i.push(C.feed.subscribe(t.tickerid,t.currencyCode,t.unitId,t.period,r,e.onErrorCallback,e.symbolInfo,e.sessionId,s,e.forceAlignBars,t.subsessionId))},c=(t,i)=>{"series"===(i.nonseries?"nonseries":"series")?this.update(t,i):i.lastBar?(this._nonseriesUpdate=i,i.lastBar.isLastBar=!0,this._symbols[0].lastbar(i.lastBar),this._nonseriesUpdate=null):e.nonseriesOut(n[0],i)},h=()=>o;l(a,h,(e=>{!e.nonseries&&Number.isFinite(e.firstLoadedTimeMs)&&(e=>{function i(i,r){let n=(0,S.createTimeToBarTimeAligner)(i,r)(e);const o=(0,S.createDwmAligner)(i,r);return null!==o&&(n=o.timeToExchangeTradingDay(n)),{to:n,countBack:(0,s.ensureNotNull)(t,"script runner script").maxAdditionalDepth()}}for(let e=1;e=0;t--){const i=e[t],s=this._barsets[t],r=s.count();for(let e=0;ee.endOfData));t&&this.host.setNoMoreData(),this.host.recalc(this,{endOfData:t,firstLoadedTimeMs:this._barsets[0].firstLoadedTimeMs,emptyBarCount:this._barsets[0].emptyBarCount()})}catch(e){if(!(e instanceof b.StudyError))throw e;this.host.onErrorCallback(e.message)}}}C.feed={subscribe(){throw console.error("must be initialized with setupFeed"),new Error("must be initialized with setupFeed")},unsubscribe(){throw console.error("must be initialized with setupFeed"),new Error("must be initialized with setupFeed")}}},23863:(e,t,i)=>{"use strict";const s=i(56570),r=i(19625).getHexColorByName;var n=i(73772).Std;i(42924);var o=i(69146).pivotPointsStandardStudyItem,a=i(24018).volumeProfileVisibleRangeStudyItem,l=i(92245).volumeProfileFixedRangeVbPStudyItem,c=i(92245).volumeProfileFixedRangeBSStudyItem,h=i(68563).spreadStudyItem,d=i(15497).ratioStudyItem,u=i(65498).regressionTrendStudyItem,p=i(46367).anchoredVWAPStudyItem;const _=r("color-ripe-red-400"),m=r("color-minty-green-400"),g=s.enabled("secondary_series_extend_time_scale");JSServer.studyLibrary=JSServer.studyLibrary.concat([{name:"Compare",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{compare:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#9C27B0"}},inputs:{source:"close",symbol:""}},plots:[{id:"compare",type:"line"}],styles:{compare:{title:"Plot",histogramBase:0}},description:"Compare",shortDescription:"Compare",is_price_study:!0,inputs:[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol",name:"Symbol",type:"symbol",isHidden:!0}],id:"Compare@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(1),n.period(this._context))},this.main=function(e,t){ -this._context=e;var i=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1);var s=this._context.new_unlimited_var(this._context.symbol.time),r=n[t(0)](this._context),o=this._context.new_unlimited_var(r);return this._context.select_sym(0),[o.adopt(s,i,0)]}}},{name:"Overlay",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{},inputs:{symbol:"",extendTimeScale:!1}},plots:[{id:"open",type:"line"},{id:"high",type:"line"},{id:"low",type:"line"},{id:"close",type:"line"}],styles:{open:{title:"Open"},high:{title:"High"},low:{title:"Low"},close:{title:"Close"}},description:"Overlay",shortDescription:"Overlay",is_price_study:!1,inputs:[{id:"symbol",name:"symbol",defval:"",type:"symbol",isHidden:!0},{id:"extendTimeScale",name:"extendTimeScale",defval:!1,type:"boolean",isHidden:!0}],id:"Overlay@tv-basicstudies-1",format:{type:"price",precision:4},canExtendTimeScale:!0},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(0),n.period(this._context))},this.main=function(e,t){this._context=e;var i=!g||!0!==t(1),s=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1);var r=this._context.new_unlimited_var(this._context.symbol.time),o=this._context.new_unlimited_var(n.open(this._context)),a=this._context.new_unlimited_var(n.high(this._context)),l=this._context.new_unlimited_var(n.low(this._context)),c=this._context.new_unlimited_var(n.close(this._context));return i?(this._context.select_sym(0),[o.adopt(r,s,1),a.adopt(r,s,1),l.adopt(r,s,1),c.adopt(r,s,1)]):[o.get(0),a.get(0),l.get(0),c.get(0)]}}},{name:"Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{vol:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:50,visible:!0,color:"#000080"},vol_ma:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"}},palettes:{volumePalette:{colors:{0:{color:_,width:1,style:0},1:{color:m,width:1,style:0}}}},inputs:{showMA:!1,length:20,col_prev_close:!1,symbol:"",smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"vol",type:"line"},{id:"volumePalette",palette:"volumePalette",target:"vol",type:"colorer"},{id:"vol_ma",type:"line"},{id:"smoothedMA",type:"line"}],styles:{vol:{title:"Volume",histogramBase:0},vol_ma:{title:"Volume MA",histogramBase:0},smoothedMA:{title:"Smoothed MA",histogramBase:0}},description:"Volume",shortDescription:"Volume",is_price_study:!1,palettes:{volumePalette:{colors:{0:{name:"Falling"},1:{name:"Growing"}}}},inputs:[{id:"symbol",name:"Other Symbol",defval:"",type:"symbol",optional:!0,isHidden:!1},{id:"showMA",name:"show MA",defval:!1,type:"bool",isHidden:!0},{id:"length",name:"MA Length",defval:20,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["vol_ma"]},{defval:!1,id:"col_prev_close",name:"Color based on previous close",type:"bool"},{id:"smoothingLine",name:"Smoothing Line", -defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"Volume@tv-basicstudies-1",format:{type:"volume"}},constructor:function(){this.init=function(e,t){this._context=e,""!==t(0)&&this._context.new_sym(t(0),n.period(this._context))},this.f_0=function(e,t){return n.gt(e,t)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=n.volume(this._context),s=n.open(this._context),r=n.close(this._context),o=this._context.new_var(this._context.symbol.time),a=this._input(4),l=this._input(5);if(this._context.setMinimumAdditionalDepth(this._input(2)+l),""!==this._input(0)){this._context.select_sym(1);var c=this._context.new_var(this._context.symbol.time),h=this._context.new_var(n.volume(this._context)),d=this._context.new_var(n.open(this._context)),u=this._context.new_var(n.close(this._context));i=h.adopt(c,o,1),s=d.adopt(c,o,1),r=u.adopt(c,o,1),this._context.select_sym(0)}var p,_,m=this._context.new_var(i),g=n.sma(m,this._input(2),this._context),f=this._context.new_var(g),v=this._context.new_var(r);return p=v.get(1)&&this._input(3)?this.f_0(v.get(1),r):this.f_0(s,r),"EMA"===a?_=n.ema(f,l,this._context):"WMA"===a?_=n.wma(f,l,this._context):"SMA"===a&&(_=n.sma(f,l,this._context)),[i,p,g,_]}}},{name:"ZigZag",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",target:"plot_0",type:"dataoffset"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Zig Zag",shortDescription:"ZigZag",is_price_study:!0,classId:"ScriptWithDataOffset",inputs:[{id:"in_0",name:"deviation",defval:5,type:"float",min:.001,max:100},{id:"in_1",name:"depth",defval:10,type:"integer",min:2,max:1e3}],id:"ZigZag@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),r=i/100,o=Math.ceil(s/2);return[n.zigzag(r,o,this._context),n.zigzagbars(r,o,this._context)]}}},{name:"Sessions",metainfo:{_metainfoVersion:52,defaults:{graphics:{vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}},backgrounds:{preMarket:{color:"#FF9800",transparency:92,visible:!0},postMarket:{color:"#2196F3",transparency:92,visible:!0}}},linkedToSeries:!0},description:"Sessions",graphics:{vertlines:{sessBreaks:{name:"Session Break",halign:"left"}},backgrounds:{preMarket:{name:"Pre market"},postMarket:{name:"Post market"}}},id:"Sessions@tv-basicstudies-1",inputs:[],is_hidden_study:!0,is_price_study:!0,name:"Sessions@tv-basicstudies",palettes:{},plots:[],shortDescription:"Sessions",format:{type:"inherit"}},constructor:function(){function e(e,t){return{id:e,index:e,extendBottom:!0,extendTop:!0}}function t(e){return{id:e.start,start:e.start,stop:e.stop}}this.init=function(){this._times=[] -},this._getVerticalLineData=function(t){return n.selectSessionBreaks(t,this._times).map(e)},this._getPreAndPostMarketBackgroundsData=function(e){const i=n.selectPreAndPostMarketTimes(e,this._times);return{preMarket:i.preMarket.map(t),postMarket:i.postMarket.map(t)}},this.main=function(e,t){if(n.isdwm(e))return null;var i=n.time(e);if(isNaN(i))return null;var s=this._times.length;if(0!==s&&this._times[s-1]===i||this._times.push(i),!e.symbol.isLastBar||!e.symbol.isNewBar)return null;var r=this._getVerticalLineData(e),o=this._getPreAndPostMarketBackgroundsData(e);return 0===r.length&&0===o.preMarket.length&&0===o.postMarket?null:{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{create:{vertlines:[{styleId:"sessBreaks",data:r}],backgrounds:[{styleId:"preMarket",data:o.preMarket},{styleId:"postMarket",data:o.postMarket}]},erase:[{action:"all"}]}}}}}},{name:"SuperTrend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:3,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#000080"},plot_2:{linestyle:0,linewidth:3,plottype:"shape_arrow_up",trackPrice:!1,location:"BelowBar",transparency:35,visible:!0,color:"#00FF00"},plot_3:{linestyle:0,linewidth:3,plottype:"shape_arrow_down",trackPrice:!1,location:"AboveBar",transparency:35,visible:!0,color:"#FF0000"}},palettes:{palette_0:{colors:{0:{color:"#008000",width:3,style:0},1:{color:"#800000",width:3,style:0}}}},inputs:{in_0:10,in_1:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"},{id:"plot_2",type:"shapes"},{id:"plot_3",type:"shapes"}],styles:{plot_0:{title:"SuperTrend",histogramBase:0,joinPoints:!1,isHidden:!1},plot_2:{title:"Up Arrow",histogramBase:0,joinPoints:!1,isHidden:!1},plot_3:{title:"Down Arrow",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"SuperTrend",shortDescription:"SuperTrend",is_price_study:!0,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}},valToIndex:{0:0,1:1}}},inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:100},{id:"in_1",name:"Factor",defval:3,type:"float",min:1,max:100}],id:"SuperTrend@tv-basicstudies-1",scriptIdPart:"",name:"SuperTrend",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.main=function(e,t){var i=t(0),s=t(1),[r,o]=n.supertrend(s,i,e),a=e.new_var(o).get(1);return[r,-1===o?0:1,-1===o&&a!==o?1:NaN,1===o&&a!==o?1:NaN]}}},o,a,l,c,h,d,u,p])},73772:(e,t,i)=>{"use strict";i.d(t,{Std:()=>h});var s=i(14381),r=i(2740);class n{constructor(e,t,i){var s,r;this._timezone=e,this._preMarketSessionEntries=null!==(s=null==t?void 0:t.entries())&&void 0!==s?s:[],this._postMarketSessionEntries=null!==(r=null==i?void 0:i.entries())&&void 0!==r?r:[]}getPreAndPostMarketTimes(e){if(0===e.length)return{preMarket:[],postMarket:[]};const t=[],i=[];let s=null,n=null,o=e[0],a=(0,r.utc_to_cal)(this._timezone,o);this._isInPreMarketSession(a)&&(n=o),this._isInPostMarketSession(a)&&(s=o);for(let l=1;le?1:0,h={};function d(e,t,i,s,r){let n=r,o=0;if(isNaN(e.get(t-1)))return{index:NaN,value:NaN};for(let i=0;ie.symbol.index+1,h.nz=(e,t=0)=>isFinite(e)?e:t,h.na=function(e){return 0===arguments.length?NaN:isNaN(e)?1:0},h.isZero=e=>Math.abs(e)<=1e-10?1:0,h.toBool=e=>isFinite(e)&&!h.isZero(e),h.eq=(e,t)=>h.isZero(e-t),h.neq=(e,t)=>c(!h.eq(e,t)),h.ge=(e,t)=>c(h.isZero(e-t)||e>t),h.gt=(e,t)=>c(!h.isZero(e-t)&&e>t),h.lt=(e,t)=>c(!h.isZero(e-t)&&ec(h.isZero(e-t)||eisNaN(e)||isNaN(t)?NaN:h.isZero(e)||h.isZero(t)?0:1,h.or=(e,t)=>isNaN(e)||isNaN(t)?NaN:h.isZero(e)&&h.isZero(t)?0:1,h.not=e=>isNaN(e)?NaN:h.isZero(e)?1:0,h.eps=()=>l,h.greaterOrEqual=(e,t,i)=>t-e<(i||l),h.lessOrEqual=(e,t,i)=>e-t<(i||l),h.equal=(e,t,i)=>Math.abs(e-t)<(i||l),h.greater=(e,t,i)=>e-t>(i||l),h.less=(e,t,i)=>t-e>(i||l),h.compare=(e,t,i)=>h.equal(e,t,i)?0:h.greater(e,t,i)?1:-1,h.max=Math.max,h.min=Math.min,h.pow=Math.pow,h.abs=Math.abs,h.log=Math.log,h.log10=e=>Math.log(e)/Math.LN10,h.sqrt=Math.sqrt,h.sign=e=>isNaN(e)?NaN:h.isZero(e)?0:e>0?1:-1,h.exp=Math.exp,h.sin=Math.sin,h.cos=Math.cos,h.tan=Math.tan,h.asin=Math.asin,h.acos=Math.acos,h.atan=Math.atan,h.floor=Math.floor,h.ceil=Math.ceil,h.round=Math.round,h.avg=(...e)=>{if(2===e.length)return(e[0]+e[1])/2;let t=0;for(let i=0;ie.symbol.open,h.high=e=>e.symbol.high,h.low=e=>e.symbol.low,h.close=e=>e.symbol.close,h.hl2=e=>(e.symbol.high+e.symbol.low)/2,h.hlc3=e=>(e.symbol.high+e.symbol.low+e.symbol.close)/3,h.ohlc4=e=>(e.symbol.open+e.symbol.high+e.symbol.low+e.symbol.close)/4,h.volume=e=>e.symbol.volume,h.updatetime=e=>e.symbol.updatetime,h.time=e=>e.symbol.bartime(),h.period=e=>e.symbol.period,h.tickerid=e=>e.symbol.tickerid,h.currencyCode=e=>e.symbol.currencyCode,h.unitId=e=>e.symbol.unitId,h.ticker=e=>e.symbol.ticker,h.interval=e=>e.symbol.interval,h.isdwm=e=>e.symbol.isdwm(),h.isintraday=e=>!e.symbol.isdwm(),h.isdaily=e=>"D"===e.symbol.resolution,h.isweekly=e=>"W"===e.symbol.resolution,h.ismonthly=e=>"M"===e.symbol.resolution,h.year=(e,t)=>h.timepart(e.symbol,r.YEAR,t),h.month=(e,t)=>h.timepart(e.symbol,r.MONTH,t), -h.weekofyear=(e,t)=>h.timepart(e.symbol,r.WEEK_OF_YEAR,t),h.dayofmonth=(e,t)=>h.timepart(e.symbol,r.DAY_OF_MONTH,t),h.dayofweek=(e,t)=>h.timepart(e.symbol,r.DAY_OF_WEEK,t),h.hour=(e,t)=>h.timepart(e.symbol,r.HOUR_OF_DAY,t),h.minute=(e,t)=>h.timepart(e.symbol,r.MINUTE,t),h.second=(e,t)=>h.timepart(e.symbol,r.SECOND,t),h.add_days_considering_dst=(e,t,i)=>r.add_days_considering_dst(r.get_timezone(e),t,i),h.add_years_considering_dst=(e,t,i)=>r.add_years_considering_dst(r.get_timezone(e),t,i),h.selectSessionBreaks=(e,t)=>{if(h.isdwm(e)||void 0===e.symbol.session.timezone)return[];const i=(0,s.newBarBuilder)(e.symbol.period,e.symbol.session,null),r=[],n=t.length;if(i.moveTo(t[n-1]),1===n&&i.startOfBar(0)===t[0])r.push(t[0]);else{for(let e=n-2;e>=0;--e){const s=t[e];if(s>=i.startOfBar(0))continue;i.moveTo(s);const n=t[e+1];r.push(n)}r.reverse()}return r},h.selectPreAndPostMarketTimes=(e,t)=>{var i,s;if(h.isdwm(e)||void 0===e.symbol.session.timezone)return{preMarket:[],postMarket:[]};return new n(e.symbol.session.timezone,null!==(i=e.symbol.preMarketSubsession)&&void 0!==i?i:null,null!==(s=e.symbol.postMarketSubsession)&&void 0!==s?s:null).getPreAndPostMarketTimes(t)},h.iff=(e,t,i)=>h.not(e)?i:t,h.rising=(e,t)=>{for(let i=1;ie.get(0))return 0;return 1},h.falling=(e,t)=>{for(let i=1;i{const s=r.utc_to_cal(e.session.timezone,i||e.bartime());return r.get_part(s,t)},h.rsi=(e,t)=>h.isZero(t)?100:h.isZero(e)?0:100-100/(1+e/t),h.sum=(e,t,i)=>{const s=i.new_var(),r=h.nz(e.get())+h.nz(s.get(1))-h.nz(e.get(t));return s.set(r),r},h.sma=(e,t,i)=>{const s=h.sum(e,t,i);return h.na(e.get(t-1))?NaN:s/t},h.smma=(e,t,i)=>{const s=i.new_var(e),r=h.sma(s,t,i),n=i.new_var(),o=(n.get(1)*(t-1)+e)/t;return n.set(h.na(n.get(1))?r:o),n.get(0)},h.rma=(e,t,i)=>{const s=h.sum(e,t,i),r=t-1,n=e.get(r),o=i.new_var(),a=o.get(1),l=e.get(),c=h.na(n)?NaN:h.na(a)?s/t:(l+a*r)/t;return o.set(c),c},h.fixnan=(e,t)=>{const i=t.new_var();return isNaN(e)?i.get(1):(i.set(e),e)},h.tr=(e,t)=>{let i=t.new_var(h.close(t)).get(1);return e&&isNaN(i)&&(i=h.close(t)),h.max(h.max(h.high(t)-h.low(t),h.abs(h.high(t)-i)),h.abs(h.low(t)-i))},h.atr=(e,t)=>{const i=t.new_var(h.tr(void 0,t));return h.rma(i,e,t)},h.ema=(e,t,i)=>{const s=h.sum(e,t,i),r=i.new_var(),n=e.get(0),o=e.get(t-1),a=r.get(1),l=h.na(o)?NaN:h.na(a)?s/t:2*(n-a)/(t+1)+a;return r.set(l),l},h.wma=(e,t,i)=>{let s=0;for(let i=t=Math.round(t);i>=0;i--){s+=(t-i)*e.get(i)}return 2*s/(t*(t+1))},h.vwma=(e,t,i)=>{const s=i.new_var(h.volume(i)),r=i.new_var(e.get(0)*h.volume(i));return h.sma(r,t,i)/h.sma(s,t,i)},h.swma=(e,t)=>(e.get(0)+2*e.get(1)+2*e.get(2)+e.get(3))/6,h.supertrend=(e,t,i)=>{const s=h.atr(t,i),r=i.new_var(s).get(1),n=h.hl2(i);let o=n+s*e,a=n-s*e;const l=h.close(i),c=i.new_var(l).get(1),d=i.new_var(),u=h.nz(d.get(1)),p=i.new_var(),_=h.nz(p.get(1));a=h.gt(a,u)||h.lt(c,u)?a:u,d.set(a),o=h.lt(o,_)||h.gt(c,_)?o:_,p.set(o);let m=h.na();const g=i.new_var(),f=g.get(1);m=h.na(r)?1:f===_?l>o?-1:1:l-d(e,t,0,((e,t)=>h.lt(e,t)),Number.MAX_VALUE).index,h.lowest=(e,t,i)=>d(e,t,0,((e,t)=>h.lt(e,t)),Number.MAX_VALUE).value,h.highestbars=(e,t,i)=>-d(e,t,0,((e,t)=>h.gt(e,t)),Number.MIN_VALUE).index,h.highest=(e,t,i)=>d(e,t,0,((e,t)=>h.gt(e,t)),Number.MIN_VALUE).value,h.cum=(e,t)=>{const i=t.new_var(),s=h.nz(i.get(1))+e;return i.set(s),s},h.accdist=e=>{const t=h.high(e),i=h.low(e),s=h.close(e),r=h.volume(e);return h.cum(s===t&&s===i||t===i?0:r*(2*s-i-t)/(t-i),e)},h.correlation=(e,t,i,s)=>{const r=h.sma(e,i,s),n=h.sma(t,i,s),o=s.new_var(e.get()*t.get());return(h.sma(o,i,s)-r*n)/Math.sqrt(h.variance2(e,r,i)*h.variance2(t,n,i))},h.stoch=(e,t,i,s,r)=>{const n=h.highest(t,s,r),o=h.lowest(i,s,r);return h.fixnan(100*(e.get()-o)/(n-o),r)},h.tsi=(e,t,i,s)=>{const r=s.new_var(h.change(e)),n=s.new_var(h.abs(h.change(e))),o=s.new_var(h.ema(r,i,s)),a=s.new_var(h.ema(n,i,s));return h.ema(o,t,s)/h.ema(a,t,s)},h.cross=(e,t,i)=>{if(isNaN(e)||isNaN(t))return!1;const s=i.new_var((r=e-t)<0?-1:0===r?0:1);var r;return!isNaN(s.get(1))&&s.get(1)!==s.get()},h.linreg=(e,t,i)=>{let s=0,r=0,n=0,o=0;for(let i=0;i{const r=s.new_var(),n=s.new_var(),o=s.new_var(),a=h.high(s),l=h.low(s),c=h.close(s),d=s.new_var(a),u=s.new_var(l),p=s.new_var(c),_=s.new_var();let m=_.get(1),g=n.get(1),f=o.get(1);n.set(g),o.set(f);let v=!1;const y=u.get(1),S=u.get(2),b=d.get(1),w=d.get(2),C=p.get(),P=p.get(1);2===h.n(s)&&(h.greater(C,P)?(r.set(1),o.set(d.get()),m=y,f=d.get()):(r.set(-1),o.set(u.get()),m=b,f=u.get()),v=!0,n.set(e),g=e);let x=m+g*(f-m);return 1===r.get()?h.greater(x,u.get())&&(v=!0,r.set(-1),x=Math.max(d.get(),o.get()),o.set(u.get()),n.set(e)):h.less(x,d.get())&&(v=!0,r.set(1),x=Math.min(u.get(),o.get()),o.set(d.get()),n.set(e)),v||(1===r.get()?h.greater(d.get(),o.get())&&(o.set(d.get()),n.set(Math.min(n.get()+t,i))):h.less(u.get(),o.get())&&(o.set(u.get()),n.set(Math.min(n.get()+t,i)))),1===r.get()?(x=Math.min(x,y),h.n(s)>2&&(x=Math.min(x,S))):(x=Math.max(x,b),h.n(s)>2&&(x=Math.max(x,w))),_.set(x),x},h.alma=(e,t,i,s)=>{const r=Math.floor(i*(t-1)),n=t/s*(t/s),o=[];let a=0;for(let e=0;ee.get()-e.get(1),h.roc=(e,t)=>{const i=e.get(t);return 100*(e.get()-i)/i},h.dev=(e,t,i)=>{const s=h.sma(e,t,i);return h.dev2(e,t,s)},h.dev2=(e,t,i)=>{let s=0;for(let r=0;r{const s=h.variance(e,t,i);return h.sqrt(s)},h.variance=(e,t,i)=>{const s=h.sma(e,t,i);return h.variance2(e,s,t)},h.variance2=(e,t,i)=>{let s=0;for(let r=0;r{if(h.na(e.get(t-1)))return NaN;let i=0;const s=e.get();for(let r=1;r{if(void 0===e.symbol.session.timezone)return()=>!1;const t=(0,s.newBarBuilder)(e.symbol.period,e.symbol.session,null);return e=>t.indexOfBar(e)===o.SessionStage.POST_SESSION&&(t.moveTo(e),!0)},h.createNthBarInSessionCheck=e=>{if(void 0===e.symbol.session.timezone)return()=>!1;const t=(0,s.newBarBuilder)(e.symbol.period,e.symbol.session,null);return(e,i)=>(t.indexOfBar(e)===o.SessionStage.POST_SESSION&&t.moveTo(e),t.indexOfBar(e)===i)},h.error=e=>{throw new a.StudyError(e)},h.dmi=(e,t,i)=>{const s=i.new_var(h.high(i)),r=i.new_var(h.low(i)),n=h.change(s),o=-h.change(r),a=i.new_var(h.na(n)||h.na(o)?h.na():h.and(h.gt(n,o),h.gt(n,0))?n:0),l=i.new_var(h.na(o)?h.na():h.and(h.gt(o,n),h.gt(o,0))?o:0),c=h.atr(e,i),d=h.fixnan(100*h.rma(a,e,i)/c,i),u=h.fixnan(100*h.rma(l,e,i)/c,i);let p=d+u;h.isZero(p)&&(p+=1);const _=Math.abs(d-u)/p*100,m=i.new_var(_),g=h.rma(m,t,i),f=i.new_var(g);return[d,u,_,g,(f.get(0)+f.get(e-1))/2]},h.zigzag=(e,t,i)=>new m(e,t,i).lastPrice(),h.zigzagbars=(e,t,i)=>{const s=new m(e,t,i);return-1===s.lastIndex()?NaN:s.lastIndex()-h.n(i)};const u=0,p=1;class _{constructor(e,t,i,s,r){this._areaRight=e,this._areaLeft=t,this._pivotType=i,this._series=s,this._currentIndex=r.new_var(0),this._currentValue=r.new_var(NaN),this._pivotIndex=r.new_var(-1),this._index=h.n(r),this._isNewBar=r.symbol.isNewBar;const n=this._currentIndex.get(1),o=this._currentValue.get(1),a=this._pivotIndex.get(1);this._index>1&&(this._currentIndex.set(n),this._currentValue.set(o),this._pivotIndex.set(a))}isPivotFound(){return-1!==this._pivotIndex.get()}pivotIndex(){return this._pivotIndex.get()}currentValue(){return this._currentValue.get()}pivotType(){return this._pivotType}reset(){this._currentValue.set(NaN),this._currentIndex.set(0),this._pivotIndex.set(-1)}isRightSideOk(e){return e-this._currentIndex.get()===this._areaRight}isViolate(e,t){if(e<1||isNaN(this._currentValue.get()))return!0;const i=this._series.get(this._index-e);return!!isNaN(i)||(i===this._currentValue.get()?t:this._pivotType===p?i>this._currentValue.get():ithis._areaRight}update(){if(this._isNewBar&&this.isPivotFound()&&this.reset(),this.processPoint(this._index),this.isRightSideOk(this._index)){if(-1===this._pivotIndex.get()){let e=!0;for(let t=0;t1&&this.addPivot(n,o,a),this.processPivot(this._pivotHigh),this.processPivot(this._pivotLow)}addPivot(e,t,i){this._lastIndex.set(e),this._lastVal.set(t),this._lastType.set(i)}updatePivot(e,t){this._lastIndex.set(e),this._lastVal.set(t)}lastPrice(){return this._lastVal.get()}lastIndex(){return this._lastIndex.get()}addPoint(e,t,i){if(isNaN(this._lastVal.get()))return void this.addPivot(e,t,i);const s=this._lastVal.get();if(this._lastType.get()===i){return void((i===p?t>s:tthis._deviation&&this.addPivot(e,t,i)}processPivot(e){e.update(),this._isBarClosed&&e.isPivotFound()&&this.addPoint(e.pivotIndex(),e.currentValue(),e.pivotType())}}},46367:(e,t,i)=>{"use strict";i.d(t,{anchoredVWAPStudyItem:()=>o});const s={_metainfoVersion:51,description:"Anchored VWAP",shortDescription:"Anchored VWAP",format:{type:"inherit"},id:"AnchoredVWAP@tv-basicstudies-1",is_hidden_study:!0,is_price_study:!0,defaults:{areaBackground:{backgroundColor:"#4caf50",fillBackground:!0,transparency:95},filledAreasStyle:{Background_1:{fillType:void 0,color:"#4caf50",transparency:95,visible:!0}},inputs:{start_time:0,"Bands Calculation Mode":"Standard Deviation",bands_multiplier:1,bands_multiplier_2:2,bands_multiplier_3:3,calculate_stDev:!0,calculate_stDev_2:!1,calculate_stDev_3:!1,source:"hlc3"},styles:{VWAP:{color:"#1e88e5",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,display:15},LowerBand:{display:15,color:"#4caf50",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},LowerBand_2:{display:15,color:"#808000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},LowerBand_3:{display:15,color:"#00897b",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},UpperBand:{display:15,color:"#4caf50",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},UpperBand_2:{display:15,color:"#808000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},UpperBand_3:{display:15,color:"#00897b",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0}}},inputs:[{defval:0,id:"start_time",isHidden:!0,max:Number.MAX_SAFE_INTEGER,min:-Number.MAX_SAFE_INTEGER,name:"Start time",type:"time"},{defval:"Standard Deviation",group:"Bands Settings",id:"Bands Calculation Mode",name:"Bands Calculation Mode",options:["Standard Deviation","Percentage"],tooltip:"Determines the units used to calculate the distance of the bands. When 'Percentage' is selected, a multiplier of 1 means 1%.",type:"text",display:15},{defval:!0,group:"Bands Settings",id:"calculate_stDev",inline:"band_1",name:" ",type:"bool",display:0},{defval:1,group:"Bands Settings",id:"bands_multiplier",inline:"band_1",max:Number.MAX_VALUE,min:0,name:"Bands Multiplier #1",step:.5,type:"float",display:15},{defval:!1,group:"Bands Settings",id:"calculate_stDev_2",inline:"band_2",name:" ",type:"bool",display:0},{defval:2,group:"Bands Settings", -id:"bands_multiplier_2",inline:"band_2",max:Number.MAX_VALUE,min:0,name:"Bands Multiplier #2",step:.5,type:"float",display:15},{defval:!1,group:"Bands Settings",id:"calculate_stDev_3",inline:"band_3",name:" ",type:"bool",display:0},{defval:3,group:"Bands Settings",id:"bands_multiplier_3",inline:"band_3",max:Number.MAX_VALUE,min:0,name:"Bands Multiplier #3",step:.5,type:"float",display:15},{defval:"hlc3",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"source"}],plots:[{id:"VWAP",type:"line"},{id:"UpperBand",type:"line"},{id:"LowerBand",type:"line"},{id:"UpperBand_2",type:"line"},{id:"LowerBand_2",type:"line"},{id:"UpperBand_3",type:"line"},{id:"LowerBand_3",type:"line"}],styles:{VWAP:{histogramBase:0,title:"VWAP"},LowerBand:{histogramBase:0,title:"Lower Band #1"},LowerBand_2:{histogramBase:0,title:"Lower Band #2"},LowerBand_3:{histogramBase:0,title:"Lower Band #3"},UpperBand:{histogramBase:0,title:"Upper Band #1"},UpperBand_2:{histogramBase:0,title:"Upper Band #2"},UpperBand_3:{histogramBase:0,title:"Upper Band #3"}},filledAreas:[{title:"Background #1",id:"Background_1",objAId:"UpperBand",objBId:"LowerBand",type:"plot_plot"}],area:[{name:"UpperBand",visible:!0},{name:"LowerBand",visible:!0}]};var r=i(50151),n=i(73772);const o={name:"Anchored VWAP",metainfo:s,constructor:class{constructor(){this._isNewSession=null,this._firstBarTime=0}init(e,t){this._firstBarTime=t(0),this._isNewSession=null}main(e,t,i){if(void 0===i)return[NaN];(0,r.assert)(e.symbol.time===i.time);const s=i.time;if(s&&s{"use strict";i.d(t,{OHLCV:()=>r});var s=i(73772);class r{main(e){return[s.Std.open(e),s.Std.high(e),s.Std.low(e),s.Std.close(e),s.Std.volume(e),s.Std.updatetime(e),void 0,void 0,void 0,void 0]}}},69146:(e,t,i)=>{"use strict";i.d(t,{pivotPointsStandardStudyItem:()=>p});var s,r,n=i(85049),o=i(67153),a=i(73772);!function(e){e[e.TRADITIONAL=0]="TRADITIONAL",e[e.FIBONACCI=1]="FIBONACCI",e[e.WOODIE=2]="WOODIE",e[e.CLASSIC=3]="CLASSIC",e[e.DEMARK=4]="DEMARK",e[e.CAMARILLA=5]="CAMARILLA",e[e.FLOOR=6]="FLOOR"}(s||(s={})),function(e){e.AUTO="Auto",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(r||(r={}));class l{constructor(){this.p=NaN,this.r1=NaN,this.s1=NaN,this.r2=NaN,this.s2=NaN,this.r3=NaN,this.s3=NaN,this.r4=NaN,this.s4=NaN,this.r5=NaN,this.s5=NaN, -this.startIndex__t=NaN,this.endIndex__t=NaN}}class c{constructor(){this.pivots=[]}}function h(e,t){e.setUTCMonth(e.getUTCMonth()+t)}function d(e,t){if(a.Std.ismonthly(e)){let i=new Date(t);return i.getUTCDay()=1&&t.multiplier()<=15?"1D":"1W";case n.ResolutionKind.Seconds:case n.ResolutionKind.Ticks:return"1D"}throw new Error("Unexpected resolution type: "+e.symbol.resolution)}(e);case"Daily":return"1D";case"Weekly":return"1W";case"Monthly":return"1M";case"Yearly":return"12M";default:throw new Error("No such pivTimeFrame: "+t)}}const p={name:"Pivot Points Standard",metainfo:{_metainfoVersion:44,defaults:{inputs:{kind:"Traditional",lookBack:15,pivTimeFrame:"Auto",showHistoricalPivots:!0},precision:"4"},description:"Pivot Points Standard",id:"PivotPointsStandard@tv-basicstudies-80",inputs:[{defval:"Traditional",id:"kind",name:"Type",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla","Floor"],type:"text"},{defval:!0,id:"showHistoricalPivots",name:"Show historical pivots",type:"bool"},{defval:"Auto",id:"pivTimeFrame",name:"Pivots Timeframe",options:["Auto","Daily","Weekly","Monthly","Yearly"],type:"text"},{defval:15,id:"lookBack",max:5e3,min:1,name:"Number of Pivots Back",type:"integer"}],is_price_study:!0,linkedToSeries:!0,shortDescription:"Pivots",format:{type:"price",precision:4}},constructor:class{constructor(){this._secondaryRes="1D",this._firstMainSeriesBarTime=NaN,this._mainSeriesTimes=new Set}init(e,t){const i=t(0),s=t(1),r=t(2),n=t(3);this._data=new c,this._firstMainSeriesBarTime=NaN,this._kindPP=function(e){switch(e){case"Traditional":return 0;case"Fibonacci":return 1;case"Woodie":return 2;case"Classic":return 3;case"DeMark":return 4;case"Camarilla":return 5;case"Floor":return 6;default:throw new Error("Unknown kind "+e)}}(i),this._showHistoricalPivots=s,this._historicalPivotsToKeep=n,this._pivTimeFrame=r,this._isValidResolution=function(e,t){return!(a.Std.isdaily(e)&&"Daily"===t||a.Std.isweekly(e)&&("Daily"===t||"Weekly"===t)||a.Std.ismonthly(e)&&("Daily"===t||"Weekly"===t||"Monthly"===t))}(e,this._pivTimeFrame),this._isValidResolution||a.Std.error("You cannot see this pivot timeframe on this resolution"),this._isValidResolution&&(this._secondaryRes=u(e,this._pivTimeFrame),void 0!==e.symbol.info&&(0,o.findSuitableResolutionToBuildFrom)(this._secondaryRes,e.symbol.info).error&&(this._isValidResolution=!1, -a.Std.error(`Resolution ${this._secondaryRes} is not supported for this symbol`))),this._mainSeriesTimes=new Set,e.new_sym(e.symbol.tickerid,this._secondaryRes)}main(e,t,i){if(!this._isValidResolution)return null;if(e.is_main_symbol(i))return!isNaN(e.symbol.time)&&isNaN(e.symbol.projectionTime)&&this._mainSeriesTimes.add(e.symbol.time),isNaN(this._firstMainSeriesBarTime)&&(this._firstMainSeriesBarTime=e.symbol.time,this._removeUnusedPivots()),e.symbol.isLastBar&&e.symbol.isNewBar?this._createResponse():null;e.select_sym(1);const s=e.new_var(a.Std.open(e)),r=e.new_var(a.Std.high(e)),n=e.new_var(a.Std.low(e)),o=e.new_var(a.Std.close(e)),c=e.new_var(a.Std.time(e)),h=this._data,u=s.get(0),p=c.get(0),_=s.get(1),m=r.get(1),g=n.get(1),f=o.get(1),v=e.symbol.isLastBar;if(0!==h.pivots.length&&e.symbol.isNewBar){const e=h.pivots[h.pivots.length-1];e.endIndex__t!==p&&(e.endIndex__t=p)}if(0===e.symbol.index||!e.symbol.isNewBar)return e.select_sym(0),null;const y=function(e,t,i,s,r,n,o,c){const h=new l;let d=NaN;const u=i-s;switch(c){case 0:d=(i+s+r)/3,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+(i-s),h.s2=d-(i-s),h.r3=2*d+(i-2*s),h.s3=2*d-(2*i-s),h.r4=3*d+(i-3*s),h.s4=3*d-(3*i-s),h.r5=4*d+(i-4*s),h.s5=4*d-(4*i-s);break;case 1:d=(i+s+r)/3,h.p=d,h.r1=d+.382*u,h.s1=d-.382*u,h.r2=d+.618*u,h.s2=d-.618*u,h.r3=d+u,h.s3=d-u;break;case 2:d=(i+s+2*e)/4,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=i+2*(d-s),h.s3=s-2*(i-d),h.r4=h.r3+u,h.s4=h.s3-u;break;case 3:d=(i+s+r)/3,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=d+2*u,h.s3=d-2*u,h.r4=d+3*u,h.s4=d-3*u;break;case 4:let n=NaN;n=a.Std.equal(t,r)?i+s+2*r:a.Std.greater(r,t)?2*i+s+r:2*s+i+r,d=n/4,h.p=d,h.r1=n/2-s,h.s1=n/2-i;break;case 5:d=(i+s+r)/3,h.p=d,h.r1=r+1.1*u/12,h.s1=r-1.1*u/12,h.r2=r+1.1*u/6,h.s2=r-1.1*u/6,h.r3=r+1.1*u/4,h.s3=r-1.1*u/4,h.r4=r+1.1*u/2,h.s4=r-1.1*u/2;break;case 6:d=(i+s+r)/3,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+(i-s),h.s2=d-(i-s),h.r3=d-h.s1+h.r2,h.s3=2*d-(2*i-s);break;default:throw new Error("Unknown kind")}return h.startIndex__t=n,h.endIndex__t=o,h}(u,_,m,g,f,p,d(e,p),this._kindPP);return e.select_sym(0),this._showHistoricalPivots||(h.pivots=[]),h.pivots.push(y),h.pivots.length>this._historicalPivotsToKeep&&h.pivots.shift(),v?this._createResponse():null}_createResponse(){if(0===this._data.pivots.length||this._mainSeriesTimes.size<=1)return null;if(this._mainSeriesTimes.size<=this._data.pivots.length)return null;const e=Array.from(this._mainSeriesTimes).sort(((e,t)=>e-t)),t=new c;let i=0;for(let s=0;s=r.endIndex__t)break;t>=r.startIndex__t&&(n=!0,o++),i++}if(n){let n=!0;if(s>0&&t.pivots.length>0){const i=t.pivots[t.pivots.length-1];if(i.endIndex__t===r.startIndex__t){const t=e.filter((e=>e>=i.startIndex__t&&e<=i.endIndex__t));1===o&&t[t.length-1]===r.startIndex__t&&(n=!1)}}n?t.pivots.push({...r}):i=a}else t.pivots.length>0&&(t.pivots[t.pivots.length-1].endIndex__t=r.endIndex__t)} -return 0===t.pivots.length&&a.Std.error("Not enough data to calculate all pivot points"),{nonseries:!0,type:"non_series_data",data:{data:t}}}_removeUnusedPivots(){const e=Math.max(this._data.pivots.findIndex((e=>e.startIndex__t>this._firstMainSeriesBarTime))-1,0);e>0&&this._data.pivots.splice(0,e)}}}},15497:(e,t,i)=>{"use strict";i.d(t,{ratioStudyItem:()=>n});var s=i(62473);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t/(i*s)}}const n={name:"Ratio",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,description:"Ratio",shortDescription:"Ratio",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Ratio@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},65498:(e,t,i)=>{"use strict";i.d(t,{regressionTrendStudyItem:()=>n});var s=i(73772);function r(e,t,i){const r={slope:NaN,average:NaN,intercept:NaN,stdDev:NaN,upDev:NaN,downDev:NaN,pearsons:NaN};return 0===e.length||(function(e,t){let i=0,s=0,r=0,n=0;for(let t=0;tn&&(n=u),u=d-i[s],u>o&&(o=u),u=e[s];const _=u-r.average,m=d-p;u-=d,a+=u*u,l+=_*_,c+=m*m,h+=_*m,d+=r.slope}r.stdDev=Math.sqrt(a/(0===u?1:u)),r.pearsons=s.Std.isZero(l)||s.Std.isZero(c)?0:h/Math.sqrt(l*c),r.upDev=n,r.downDev=o}(e,t,i,r)),r}const n={name:"Regression Trend",metainfo:{_metainfoVersion:51,description:"Regression Trend",format:{type:"inherit"},id:"RegressionTrend@tv-basicstudies-144",is_hidden_study:!0,is_price_study:!0,shortDescription:"Reg Trend",defaults:{inputs:{"first bar time":0,"last bar time":0,"lower diviation":-2,source:"close","upper diviation":2,"use lower diviation":!0,"use upper diviation":!0},styles:{}},inputs:[{defval:2,id:"upper diviation",max:500,min:-500,name:"Upper Deviation",type:"float"},{defval:-2,id:"lower diviation",max:500,min:-500,name:"Lower Deviation",type:"float"},{defval:!0,id:"use upper diviation",name:"Use Upper Deviation",type:"bool"},{defval:!0,id:"use lower diviation",name:"Use Lower Deviation",type:"bool"},{defval:0,id:"first bar time",isHidden:!0,max:253370764800,min:-253370764800,name:"First bar time",type:"time"},{defval:0,id:"last bar time",isHidden:!0,max:253370764800,min:-253370764800,name:"Last bar time",type:"time"},{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"source"}],plots:[]},constructor:class{constructor(){this._resultSent=!1}init(e,t){this._resultSent=!1,this._data={baseLine:{startPrice:NaN,endPrice:NaN},upLine:{startPrice:NaN,endPrice:NaN},downLine:{startPrice:NaN,endPrice:NaN},pearsons:NaN,startIndex__t:NaN,endIndex__t:NaN}}main(e,t){ -const i=t(6),n=e.new_unlimited_var(s.Std.time(e)),o=e.new_unlimited_var(s.Std.high(e)),a=e.new_unlimited_var(s.Std.low(e)),l=e.new_unlimited_var(s.Std[i](e));if(!e.symbol.isLastBar)return null;if(this._resultSent)return null;const c=t(0),h=t(1),d=t(2),u=t(3),p=t(4),_=t(5),m=n.indexOf(p),g=n.indexOf(_),f=[],v=[],y=[],S=[];for(let e=m;e>=g;--e)f.push(n.get(e)),v.push(o.get(e)),y.push(a.get(e)),S.push(l.get(e));return this._updateData(f,d,c,u,h,p,_,r(S,v,y)),this._resultSent=!0,{type:"non_series_data",nonseries:!0,data:{data:this._data}}}_updateData(e,t,i,s,r,n,o,a){const l=e.length-1;this._data.baseLine.startPrice=a.intercept,this._data.baseLine.endPrice=a.intercept+a.slope*l;const c=a.intercept+(t?a.stdDev*i:a.upDev);this._data.upLine.startPrice=c,this._data.upLine.endPrice=c+a.slope*l;const h=a.intercept+(s?a.stdDev*r:-a.downDev);this._data.downLine.startPrice=h,this._data.downLine.endPrice=h+a.slope*l,this._data.pearsons=a.pearsons,this._data.startIndex__t=n,this._data.endIndex__t=o}}}},62473:(e,t,i)=>{"use strict";i.d(t,{SpreadRatioBase:()=>l,spreadRatioDefaults:()=>c,spreadRatioFilledAreas:()=>_,spreadRatioInputs:()=>h,spreadRatioPalettes:()=>p,spreadRatioPlots:()=>d,spreadRatioStyles:()=>u});var s=i(19625),r=i(94113),n=i(73772),o=i(19063);const a="rgba(0, 0, 0, 0)";class l{init(e,t){e.new_sym(t(1),n.Std.period(e)),this._source=t(0),this._scaleFactor1=1,this._scaleFactor2=1}main(e,t){const i=e.symbol.time,s=n.Std[this._source](e);e.select_sym(1);const r=n.Std[this._source](e),o=e.new_unlimited_var(r),a=e.new_unlimited_var(e.symbol.time);if(e.select_sym(0),isNaN(i))return null;let l=a.indexOf(i);-1!==l&&a.get(l)!==i&&(l=-1);const c=l<0?NaN:o.get(l),h=this._doCalculation(this._scaleFactor1,s,this._scaleFactor2,c);return[h,0,n.Std.ge(h,0),n.Std.lt(h,0)]}}const c={styles:{plot1:{linestyle:0,linewidth:2,plottype:r.LineStudyPlotStyle.Line,trackPrice:!1,transparency:35,color:"#800080",display:15},plotBaseline:{linestyle:0,linewidth:2,plottype:r.LineStudyPlotStyle.Line,trackPrice:!1,transparency:0,color:a,display:0}},palettes:{negativePalette:{colors:[{color:(0,o.applyAlpha)((0,s.getHexColorByName)("color-ripe-red-500"),.5),style:0,width:0},{color:a,style:0,width:0}]},positivePalette:{colors:[{color:(0,o.applyAlpha)((0,s.getHexColorByName)("color-minty-green-500"),.5),style:0,width:0},{color:a,style:0,width:0}]}},filledAreasStyle:{negativeFill:{color:"",transparency:0,visible:!0,fillType:void 0},positiveFill:{color:"",transparency:0,visible:!0,fillType:void 0}},precision:2,inputs:{source:"close",symbol2:""}},h=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2",name:"Symbol",type:"symbol",confirm:!0}],d=[{id:"plot1",type:"line"},{id:"plotBaseline",type:"line"},{id:"plotNegativeFill",type:"colorer",target:"negativeFill",palette:"negativePalette"},{id:"plotPositiveFill",type:"colorer",target:"positiveFill",palette:"positivePalette"}],u={plot1:{title:"Plot",histogramBase:0},plotBaseline:{title:"Baseline",isHidden:!0}},p={negativePalette:{ -valToIndex:{0:0,1:1},colors:[{name:"Color"}]},positivePalette:{valToIndex:{0:0,1:1},colors:[{name:"Color"}]}},_=[{id:"negativeFill",objAId:"plot1",objBId:"plotBaseline",type:"plot_plot",title:"Negative fill",palette:"negativePalette",fillToIntersection:!0},{id:"positiveFill",objAId:"plot1",objBId:"plotBaseline",type:"plot_plot",title:"Positive fill",palette:"positivePalette",fillToIntersection:!0}]},68563:(e,t,i)=>{"use strict";i.d(t,{spreadStudyItem:()=>n});var s=i(62473);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t-i*s}}const n={name:"Spread",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,palettes:s.spreadRatioPalettes,filledAreas:s.spreadRatioFilledAreas,description:"Spread",shortDescription:"Spread",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Spread@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},56209:(e,t,i)=>{"use strict";i.d(t,{VbPCheckHaveVolumeExpr:()=>r});var s=i(73772);class r{constructor(e){this._haveAnyVolume=!1,this._isDisabled=!1,this._seriesGetter=e}update(e,t){if(this._haveAnyVolume||this._isDisabled)return;const i=this._seriesGetter.volume().get(e);0!==i&&Number.isFinite(i)&&(this._haveAnyVolume=!0),t&&(this._haveAnyVolume||s.Std.error("The data vendor doesn't provide volume data for this symbol."),this._isDisabled=!0)}}},43789:(e,t,i)=>{"use strict";i.d(t,{VolumeByPriceExpr:()=>g});var s=i(50151),r=i(9859),n=i(85049),o=i(41978);class a extends o.GraphicsObj{constructor(e,t,i,r,n,o){super(e),(0,s.assert)(t({index:e.index,offset:e.offset,level:e.level})))}}}class _ extends o.GraphicsObj{constructor(e,t,i,s,r=!1,n=!1){super(e),this._endIndex=this._mixinJSONObject.createTimeField(i,"endIndex"),this._extendLeft=this._mixinJSONObject.createField(r,"extendLeft"),this._extendRight=this._mixinJSONObject.createField(n,"extendRight"),this._level=this._mixinJSONObject.createDoubleField(s,"level"),this._startIndex=this._mixinJSONObject.createTimeField(t,"startIndex")}isNaN(){return super.isNaN()||Number.isNaN(this._level.get())||this._startIndex.get()<0||this._endIndex.get()<0||this._startIndex.get()===this._endIndex.get()&&!this._extendLeft.get()&&!this._extendRight.get()}jsonName(){return"horizlines"}primitiveData(){return{id:this.id(),startIndex:this._startIndex.get(),endIndex:this._endIndex.get(),extendLeft:this._extendLeft.get(),extendRight:this._extendRight.get(),level:this._level.get()}}startIndex(){return this._startIndex.get()}setStartIndex(e){this._startIndex.set(e)&&this._processObjUpdate()}endIndex(){return this._endIndex.get()}setEndIndex(e){this._endIndex.set(e)&&this._processObjUpdate()}level(){return this._level.get()}setLevel(e){this._level.set(e)&&this._processObjUpdate()}isExtendLeft(){return this._extendLeft.get()}setExtendLeft(e){this._extendLeft.set(e)&&this._processObjUpdate()}extendLeft(){return this.isExtendLeft()}isExtendRight(){return this._extendRight.get()}setExtendRight(e){this._extendRight.set(e)&&this._processObjUpdate()}extendRight(){return this.isExtendRight()}}!function(e){e[e.AssertAccuracy=.05]="AssertAccuracy"}(l||(l={})),function(e){e[e.START=0]="START",e[e.END=1]="END"}(c||(c={}));class m{constructor(){this._map=new Map}get(e){const t=this._innerMap(e.start);return t&&t.get(e.end)}set(e,t){this._innerMap(e.start,!0).set(e.end,t)}clear(){this._map.clear()}size(){let e=0;return this._map.forEach((t=>e+=t.size)),e}_innerMap(e,t){let i=this._map.get(e);return void 0===i&&t&&(i=new Map,this._map.set(e,i)),i}}class g{ -constructor(e,t,i,r,n,o,a,l,c,d,u,p,_,g,f){this._freezedBoxes=new h.GraphicsList,this._freezedHists=new h.GraphicsList,this._freezedPocs=new h.GraphicsList,this._freezedVAHists=new h.GraphicsList,this._currentHistsGr=new h.GraphicsList,this._currentVAHistsGr=new h.GraphicsList,this._currentHists=[],this._currentHistsMap=new m,this._currentBox=null,this._currentPoc=null,this._historyBarSet=[],this._prevRtBar=null,this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._leftBoxTime=null,this._rightBoxTime=null,this._actualRightBoxTime=null,this._needRecalc=!1,this._largestHistItem=null,this._rowsLayout=null,this._currentVAStart=0,this._currentVAEnd=0,this._previousVAStart=0,this._previousVAEnd=0,this._idsGenerator=null,(0,s.assert)(1===e||2===e),this._numOfSubHists=e,this._outHists=r,this._outBoxLines=n,this._outPocLines=o,this._extendPocLeftRight=a,this._outVAHists=l,this._vaVolumePercent=c,this._rowsLayoutSupplier=d,this._outHists.addStable(this._freezedHists),this._outVAHists.addStable(this._freezedVAHists),this._maxHHistItems=u,this._layoutIsAutoselected=g,this._leftBoxTimeMutable=p,this._rightBoxTimeMutable=_,this._actualRightBoxTime=null!=f?f:_,this._ctx=t,this._seriesGetter=i}update(e){this._supplyRowsLayout(this._ctx),null===this._currentBox&&this._initCurrentBox(),null===this._currentPoc&&this._initCurrentPoc();const t=this._timeScale().get(e);this._leftBoxTime=this._leftBoxTimeMutable,this._rightBoxTime=this._rightBoxTimeMutable,this._ctx.symbol.isLastBar&&!Number.isNaN(this._rightBoxTime)&&(this._rightBoxTime=Math.min(t+n.Interval.parse(this._ctx.symbol.interval+this._ctx.symbol.resolution).inMilliseconds(t)-1,this._rightBoxTime));const i=d.Std.greaterOrEqual(this._seriesClose().get(e),this._seriesOpen().get(e)),s={high:this._seriesHigh().get(e),low:this._seriesLow().get(e),volume:this._seriesVol().get(e),isUp:i,time:t};this._updateCurrentHistogram(s),this._currentHists.length>0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc(),this._seriesGetter.developingPoc().set(this._currentPoc.level()),this._updateValueArea(),this._vaVolumePercent>0&&(this._seriesGetter.developingVAHigh().set(this._currentHists[this._currentVAEnd].priceHigh()),this._seriesGetter.developingVALow().set(this._currentHists[this._currentVAStart].priceLow()))),this._updateCurrentBox(),this._rebuildOutData()}setIdsGeneratorProxy(e){this._idsGenerator=e}nextGraphicsObjId(){return(0,s.ensureNotNull)(this._idsGenerator).nextGraphicsObjId()}pushEraseObjCmd(e,t){(0,s.ensureNotNull)(this._idsGenerator).pushEraseObjCmd(e,t)}popEraseCmds(){return(0,s.ensureNotNull)(this._idsGenerator).popEraseCmds()}_timeScale(){return this._seriesGetter.time()}_seriesLow(){return this._seriesGetter.low()}_seriesHigh(){return this._seriesGetter.high()}_seriesVol(){return this._seriesGetter.volume()}_seriesOpen(){return this._seriesGetter.open()}_seriesClose(){return this._seriesGetter.close()}_freezeCurrentHistogramAndCleanup(){null!==this._currentBox&&this._freezedBoxes.add(this._currentBox), -d.Std.greater(this._getVolume(this._currentHists),0)&&(this._freezedHists.addAll(this._currentHistsGr),this._freezedVAHists.addAll(this._currentVAHistsGr),null!==this._currentPoc&&this._freezedPocs.add(this._currentPoc)),this._currentHists=[],this._currentHistsGr.clear(),this._currentHistsMap.clear(),this._initCurrentBox(),this._initCurrentPoc(),this._currentVAHistsGr.clear(),this._historyBarSet=[],this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._prevRtBar=null,this._leftBoxTime=null,this._rightBoxTime=null}_supplyRowsLayout(e){null===this._rowsLayout&&e.symbol.isFirstBar&&e.symbol.isNewBar&&(this._rowsLayout=this._rowsLayoutSupplier())}_updateCurrentHistogram(e){if(this._needRecalc=!1,d.Std.greater(this._minPrice,e.low)&&(this._minPrice=e.low,this._needRecalc=!0),d.Std.less(this._maxPrice,e.high)&&(this._maxPrice=e.high,this._needRecalc=!0),this._ctx.symbol.isBarClosed&&this._historyBarSet.length>0){const t=this._historyBarSet[this._historyBarSet.length-1];t.time===e.time&&(this._prevRtBar=t,this._historyBarSet.pop())}this._needRecalc&&0===(0,s.ensureNotNull)(this._rowsLayout).type()?(this._recalculateCurrentResultsOnHistoryBarSet(),this._applyUpdateToCurrentResults(e,!1)):this._applyUpdateToCurrentResults(e,!0),this._ctx.symbol.isBarClosed?((0,s.assert)(null===this._prevRtBar||e.time===this._prevRtBar.time),this._historyBarSet.push(e),this._prevRtBar=null):this._prevRtBar=e}_getMidLevel(e){return(e.priceHigh()+e.priceLow())/2}_getMidLevelFromList(e){return e.length%2==0?e[e.length/2].priceLow():this._getMidLevel(e[Math.floor(e.length/2)])}_getLargestHistItem(){let e=[],t=this._currentHists[0];for(const i of this._currentHists)d.Std.greater(i.ratesSum(),t.ratesSum())?(t=i,e=[t]):d.Std.equal(i.ratesSum(),t.ratesSum())&&e.push(i);if(e.length>1){const i=this._getMidLevelFromList(this._currentHists);t=e[e.length-1];for(let s=e.length-2;s>=0;s--){const r=e[s];d.Std.lessOrEqual(Math.abs(this._getMidLevel(r)-i),Math.abs(this._getMidLevel(t)-i))&&(t=r)}}return t}_initCurrentPoc(){this._currentPoc=new _(this,0,0,0)}_updateCurrentPoc(){const e=(0,s.ensureNotNull)(this._currentPoc);e.setStartIndex((0,s.ensureNotNull)(this._leftBoxTime)),e.setEndIndex((0,s.ensureNotNull)(this._actualRightBoxTime)),e.setExtendLeft(this._extendPocLeftRight),e.setExtendRight(this._extendPocLeftRight);const t=this._getMidLevel((0,s.ensureNotNull)(this._largestHistItem));e.setLevel(t)}_getVolume(e){let t=0;for(const i of e)t+=i.ratesSum();return t}_getPocHistItemIndex(){for(let e=0;e=0,`ERROR - PocHistItemIndex == ${e}`),this._currentVAStart=e-1,this._currentVAEnd=e+1;const t=this._getVolume(this._currentHists)*this._vaVolumePercent*.01;let i=this._currentHists[e].ratesSum(),r=0,n=null;for(;d.Std.lessOrEqual(i+r,t)&&(i+=r,0===n?--this._currentVAStart:1===n&&++this._currentVAEnd, --1!==this._currentVAStart||this._currentVAEnd!==this._currentHists.length);){let t,i;if(this._currentVAStart>-1)if(t=this._currentHists[this._currentVAStart].ratesSum(),this._currentVAEndthis._getMidLevel(this._currentHists[this._currentVAStart])&&e.priceLow()0&&(e=this._currentHists[0].priceLow(),t=this._currentHists[this._currentHists.length-1].priceHigh());const i=[],r=(0,s.ensureNotNull)(this._leftBoxTime),n=(0,s.ensureNotNull)(this._actualRightBoxTime);i.push(new u(r,e)),i.push(new u(r,t)),i.push(new u(n,t)),i.push(new u(n,e)),(0,s.ensureNotNull)(this._currentBox).setPoints(i)}_recalculateCurrentResultsOnHistoryBarSet(){for(let e=0;e0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc()),this._updateCurrentBox()}_applyUpdateToCurrentResults(e,t){t&&null!==this._prevRtBar&&this._addHistoryBarToHistogram(this._prevRtBar,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,-1),this._addHistoryBarToHistogram(e,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,1),this._updateLastBarTimeInHistogram(this._currentHists)}_addHistoryBarToHistogram(e,t,i,r,n){(0, -s.assert)(-1===n||1===n,"Please set sign argument either +1 or -1");const o=e.low,a=e.high,l=isNaN(e.volume)?0:e.volume,c=e.isUp,h=(0,s.ensureNotNull)(this._rowsLayout);h.init(this._ctx.symbol.minTick,this._minPrice,this._maxPrice,o,a);const u=h.rowWidth();if(!d.Std.greater(u,0))return;h.calculate();const p=h.getIndexLowVbP(),_=h.getIndexHighVbP(),m=h.getStartPrice();if(p===_){const e=p*u+m,t=(p+1)*u+m;this._updateResult({start:e,end:t},n*l,c,i,r)}else{let e=0;for(let t=p;t<=_;t++){const s=t*u+m,h=(t+1)*u+m,d=this._rowCoeff(s,h,o,a),p=d*l;e+=d,this._updateResult({start:s,end:h},n*p,c,i,r)}(0,s.assert)(d.Std.equal(e,1,.05),`totalCoeff not equal 1! totalConf = ${e}`)}}_updateResult(e,t,i,r,n){const o=this._createRates(i,t);(0,s.assert)(null!==this._leftBoxTime,"leftBoxTime is not set (equals null)"),(0,s.assert)(null!==this._rightBoxTime,"rightBoxTime is not set (equals null)");const l=(0,s.ensureNotNull)(this._leftBoxTime),c=(0,s.ensureNotNull)(this._actualRightBoxTime);let h=n.get(e);if(void 0===h)h=new a(this,e.start,e.end,o,l,c),n.set(e,h),this._verifyHistogramSizeIsNotTooLarge(n.size()),this._currentHistsGr.add(h),g._addInOrder(h,r,0,r.length,((e,t)=>{let i=d.Std.compare(e.firstBarTime(),t.firstBarTime());return 0!==i?i:(i=d.Std.compare(e.priceLow(),t.priceLow()),0!==i?i:d.Std.compare(e.priceHigh(),t.priceHigh()))}));else{const e=[];for(let t=0;t0?g._addInOrder(e,t,o+1,s,n):t.splice(o,0,e)}}},7370:(e,t,i)=>{"use strict";i.d(t,{VolumeProfileBase:()=>_,maxHHistItems:()=>u,numOfSubHists:()=>p});var s,r=i(56570),n=i(85049);!function(e){e[e.NumberOfRows=0]="NumberOfRows",e[e.TicksPerRow=1]="TicksPerRow"}(s||(s={}));class o{constructor(e,t){this._minTick=NaN,this._minPrice=NaN,this._maxPrice=NaN,this._low=NaN,this._high=NaN,this._startPrice=NaN,this._indexLowVbP=NaN,this._indexHighVbP=NaN,this._rowSize=e,this._type=t}init(e,t,i,s,r){this._minTick=e,this._minPrice=t,this._maxPrice=i,this._low=s,this._high=r}getStartPrice(){return this._startPrice}setStartPrice(e){this._startPrice=e}getIndexLowVbP(){return this._indexLowVbP}setIndexLowVbP(e){this._indexLowVbP=e}getIndexHighVbP(){return this._indexHighVbP}setIndexHighVbP(e){this._indexHighVbP=e}type(){return this._type}}class a extends o{constructor(e){super(e,0)}calculate(){this.setStartPrice(this._minPrice);const e=this.rowWidth();let t=Math.floor((this._low-this._minPrice)/e),i=Math.ceil((this._high-this._minPrice)/e)-1;t=Math.max(t,0),i=Math.max(i,0),i=Math.min(i,this._rowSize-1),t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return Math.max((this._maxPrice-this._minPrice)/this._rowSize,this._minTick)}}class l extends o{constructor(e){super(e,1)}calculate(){this.setStartPrice(0);const e=this.rowWidth();let t=Math.floor(this._low/e);const i=Math.ceil(this._high/e)-1;t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return this._minTick*this._rowSize}}var c,h=i(73772),d=i(39692);function u(){return 6e3}function p(e){switch(e){case"Delta":case"Up/Down":return 2;case"Total":return 1;default:h.Std.error(`Invalid study argument value: ${e}`)}}!function(e){e.VolumeUpDown="Up/Down",e.VolumeTotal="Total",e.VolumeDelta="Delta",e.NumberOfRows="Number Of Rows",e.TicksPerRow="Ticks Per Row"}(c||(c={}));class _{findBasicResolutionForFromTo(e,t,i,s){const o=(0,d.getVolumeProfileResolutionForPeriod)(e.value(),t,i,s),a=n.Interval.parse(o);return r.enabled("charting_library_debug_mode")&&console.log(`${(new Date).toISOString()} Selected resolution ${a.value()} for (${e.value()}, ${t}, ${i})`),a}verifyRowSizeInput(e,t){"Number Of Rows"===t&&e>6e3&&h.Std.error('Histogram is too large, please reduce "Row Size" input.')}_getRowsLayout(e,t){return"Number Of Rows"===e?new a(t):new l(t)}}},92245:(e,t,i)=>{"use strict";i.d(t,{volumeProfileFixedRangeBSStudyItem:()=>w,volumeProfileFixedRangeVbPStudyItem:()=>b});var s=i(50151),r=i(7370),n=i(94113),o=i(9233),a=i(85049),l=i(40878),c=i(45382),h=i(32569),d=i(61923),u=i(62628),p=i(56209),_=i(85904),m=i(43789);class g extends m.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,c,h,d,u){super(e,t,i,n,o,a,!1,l,c,(()=>h),d,s,r,!1,u),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e);return this._firstBarTime<=t&&t=this._firstBarTime){const e=this._developingPocSeries.getLeftOrEqual(n),t=this._developingVAHighSeries.getLeftOrEqual(n),i=this._developingVALowSeries.getLeftOrEqual(n);r.data.push([e,t,i])}else r.data.push([NaN,NaN,NaN])}return r}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}function S(e){return{constructor:y,name:e.description,metainfo:{_metainfoVersion:51,shortDescription:"VPFR",format:{type:"volume"},is_price_study:!0,defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.LeftToRight,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.LeftToRight,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:_.LineStyle.Solid,visible:!0,width:2}},polygons:{histBoxBg:{color:"#37a6ef",transparency:94}}},inputs:{first_bar_time:0,last_bar_time:0,rows:24,rowsLayout:"Number Of Rows",subscribeRealtime:!0,vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:_.LineStyle.Solid,linewidth:1,plottype:n.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,display:0},developingVAHigh:{color:"#0000ff",linestyle:_.LineStyle.Solid,linewidth:1,plottype:n.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,display:0},developingVALow:{color:"#0000ff",linestyle:_.LineStyle.Solid,linewidth:1,plottype:n.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,display:0}}},graphics:{hhists:{histBars2:{location:o.HHistLocation.Absolute,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:o.HHistLocation.Absolute,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}},polygons:{histBoxBg:{mouseTouchable:!1,name:"Histogram Box",showBorder:!1}}},inputs:[{defval:"Number Of Rows",id:"rowsLayout",name:"Rows Layout", -options:["Number Of Rows","Ticks Per Row"],type:"text"},{defval:24,id:"rows",max:1e6,min:1,name:"Row Size",type:"integer"},{defval:"Up/Down",id:"volume",name:"Volume",options:["Up/Down","Total","Delta"],type:"text"},{defval:0,id:"first_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"First Bar Time",type:"time"},{defval:0,id:"last_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"Last Bar Time",type:"time"},{defval:70,id:"vaVolume",max:100,min:0,name:"Value Area Volume",type:"integer"},{defval:!0,id:"subscribeRealtime",isHidden:!0,name:"SubscribeRealtime",type:"bool"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}},...e}}}const b=S({id:"VbPFixed@tv-volumebyprice-57",description:"Volume Profile Fixed Range"}),w=S({id:"VbPFixed@tv-basicstudies-152",description:"Fixed Range",is_hidden_study:!0})},11694:(e,t,i)=>{"use strict";i.d(t,{VolumeProfileOutputSeries:()=>n});var s=i(50151),r=i(29981);class n{constructor(){this._histPos=-1,this._hist=new Float64Array(2e3),this._times=new Float64Array(2e3)}addHist(e){if(this._histPos>=0){const t=this._times[this._histPos];(0,s.assert)(t<=e,"History order violation"),this._histPos+=t===e?0:1}else this._histPos+=1;if(this._histPos===this._hist.length){const e=new Float64Array(2*this._hist.length);e.set(this._hist),this._hist=e;const t=new Float64Array(this._hist.length);t.set(this._times),this._times=t}this._hist[this._histPos]=NaN,this._times[this._histPos]=e}removeLastIfNaN(){Number.isNaN(this.get(0))&&(this._histPos-=1)}get(e){(0,s.assert)(0===e);const t=this._histPos-e;return this._hist[t]}getLeftOrEqual(e){const t=(0,r.upperbound)(this._times,e,((e,t)=>e{"use strict";i.d(t,{volumeProfileVisibleRangeStudyItem:()=>v});var s=i(50151),r=i(7370),n=i(9233),o=i(85049),a=i(40878),l=i(43789),c=i(61923);class h extends l.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,h,d){super(e,t,i,n,new c.GraphicsList,o,!0,a,l,(()=>h),d,s,r,!1),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e);return this._firstBarTime<=t&&t{"use strict";let s;function r(e,t,i,r){var n;return null!==(n=null==s?void 0:s(e,t,i,r))&&void 0!==n?n:e}function n(e){s=e}i.d(t,{getVolumeProfileResolutionForPeriod:()=>r,overwriteVolumeProfileResolutionForPeriodGetter:()=>n})},67153:(e,t,i)=>{"use strict";i.d(t,{findSuitableResolutionToBuildFrom:()=>o});var s=i(85049);function r(e,t){const i=t.multiplier();for(let s=e.length-1;s>=0;s--){const r=Number(e[s]);if(i%r==0)return{error:!1,resolution:`${r}${t.letter()}`}}return{error:!0,errorMessage:n(t.value())}}function n(e){return`Misconfiguration error: it is trying to request ${e} but we cannot build it from lower resolution`}function o(e,t){var i;const o=s.Interval.parse(e);if((o.isWeeks()||o.isMonths())&&t.has_weekly_and_monthly){let e=["1"];o.isWeeks()&&void 0!==t.weekly_multipliers&&(e=t.weekly_multipliers),o.isMonths()&&void 0!==t.monthly_multipliers&&(e=t.monthly_multipliers);const i=r(e,o);if(!i.error)return i}if(o.isDWM()&&(void 0===t.has_daily||t.has_daily))return o.isDays()&&void 0!==t.daily_multipliers?r(t.daily_multipliers,o):void 0===t.daily_multipliers||t.daily_multipliers.includes("1")?{error:!1,resolution:"1D"}:{error:!0,errorMessage:"Misconfiguration error: it is trying to request a resolution but symbol does not support it"};if(o.isDWM())return{error:!0,errorMessage:n(o.value())};if(o.isMinutes()&&!t.has_intraday)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request intraday resolution but symbol does not support it"};if(o.isSeconds()&&!t.has_seconds)return{error:!0,errorMessage:"Misconfiguration error: it is trying to request seconds resolution but symbol does not support it"};const a=null!==(i=t.seconds_multipliers)&&void 0!==i?i:["1"],l=0===a.length,c=l||a.every((e=>parseInt(e,10)>o.multiplier())),h=t.build_seconds_from_ticks&&(l||c)&&t["is-tickbars-available"];if(o.isSeconds()&&h)return{error:!1,resolution:"1T"};if(o.isTicks())return!t["is-tickbars-available"]||o.multiplier()>1?{error:!0,errorMessage:`Misconfiguration error: it is trying to request ${o.multiplier()} ticks resolution but symbol does not support it`}:{error:!1,resolution:"1T"};const d=o.isSeconds()?t.seconds_multipliers:t.intraday_multipliers;return void 0===d?{error:!1,resolution:o.value()}:r(d,o)}},60656:(e,t,i)=>{"use strict";i.d(t,{ScriptRunner:()=>C,setupFeed:()=>w});var s=i(50151),r=i(85049),n=i(73698),o=i(2740),a=i(42217),l=i(69748),c=i(14381),h=i(91007),d=i(50335);class u{ +constructor(e,t,i,s,o,l,c){this.periodBase="";const h=(0,n.decodeExtendedSymbol)(e),d="string"==typeof h.symbol?h:h.symbol;if((0,n.isStudySymbol)(d))throw new Error(`Unexpected nested study symbol: ${e}`);const u="string"==typeof h.symbol?h.symbol:h.symbol.symbol;this.ticker=u,this.currencyCode=i||d["currency-id"],this.unitId=s||d["unit-id"],this.subsessionId=c||d.session;const p=d["currency-id"]!==this.currencyCode||d["unit-id"]!==this.unitId;d["currency-id"]=this.currencyCode,d["unit-id"]=this.unitId,p&&(e=(0,n.encodeExtendedSymbolOrGetSimpleSymbolString)(h)),this.tickerid=e;const _=r.Interval.parse(t);this.resolution=_.letter(),this.interval=_.multiplier(),this.period=_.value(),this.index=-1,this.time=NaN,this.open=NaN,this.high=NaN,this.low=NaN,this.close=NaN,this.volume=NaN,this.updatetime=NaN,this.minTick=NaN,this.isNewBar=!1,this.isBarClosed=!1,this.isFirstBar=!1,this.isLastBar=!1,this.session=new a.SessionInfo("Etc/UTC","24x7"),this.regularSubsession=null,this.preMarketSubsession=null,this.postMarketSubsession=null,this.script=o,this.projectionTime=NaN,this.isAdditionalDepthAllowed=!(0,n.isStudySymbol)(h)||h.type.includes("BarSetHeikenAshi"),l&&this.set_symbolinfo(l)}set_symbolinfo(e){if(e||console.error("WARN: symbolinfo isn't defined for "+this.tickerid),this.info=e,this.minTick=e.minmov/e.pricescale,this.currencyCode=e.currency_code,this.unitId=e.unit_id,this.subsessionId=e.subsession_id,this.timezone=o.get_timezone(e.timezone),this.session.init(e.timezone,e.session,e.session_holidays,e.corrections),void 0!==e.subsessions){const t=e.subsessions.find((e=>e.id===h.SubsessionId.Regular)),i=e.subsessions.find((e=>e.id===h.SubsessionId.PreMarket)),s=e.subsessions.find((e=>e.id===h.SubsessionId.PostMarket));void 0!==t&&(this.regularSubsession=new l.SessionSpec(e.timezone,t.session,e.session_holidays,t["session-correction"])),void 0!==i&&(this.preMarketSubsession=new l.SessionSpec(e.timezone,i.session,e.session_holidays,i["session-correction"])),void 0!==s&&(this.postMarketSubsession=new l.SessionSpec(e.timezone,s.session,e.session_holidays,s["session-correction"]))}}isdwm(){return""!==this.resolution&&"S"!==this.resolution&&"T"!==this.resolution}enable_dwm_aligning(e,t){this.dwm_aligner=(0,c.newBarBuilder)(this.period,e,t)}bartime(){const e=this.time;if(!this.isdwm()||isNaN(e))return e;const t=(0,s.ensureDefined)(this.timezone,"symbol instrument timezone"),i=o.utc_to_cal(t,e);return this.session.spec.correctTradingDay(i),o.cal_to_utc(t,i)}lastbar(e){if(isNaN(e.time))return;let t=e.time;this.dwm_aligner&&(this.dwm_aligner.moveTo(t),t=this.dwm_aligner.startOfBar(0));const i=this.time!==t;i&&this.index>=0&&!this.isBarClosed&&(this.isNewBar=!1,this.isBarClosed=!0,this.script.calc(this)),this.time=t,this.open=e.open,this.high=e.high,this.low=e.low,this.close=e.close,this.volume=(0,d.isNumber)(e.volume)&&e.volume>=0?e.volume:NaN,this.updatetime=e.updatetime||NaN,this.isNewBar=i,this.isBarClosed=!!e.isBarClosed,this.isLastBar=!!e.isLastBar,this.projectionTime=e.projectionTime||NaN,this.isNewBar&&(this.index++, +this.isFirstBar=0===this.index),this.script.calc(this)}}var p=i(29981),_=i(73772);class m{constructor(e){this.mindepth=0,this.original=NaN,this.modified=!1,this._hist=null,this._histPos=0,this.symbol=e}valueOf(){return this.get(0)}get(e){return isNaN(e)&&(e=0),e=e||0,this._hist?e>=this._hist.length?(console.error("not enough depth: "+this),NaN):this._get(e):(this.mindepth=_.Std.max(this.mindepth,e),NaN)}set(e){this._hist&&(this._hist[this._histPos]=e,this.modified=!0)}prepare(e){e===this.symbol&&(e.isNewBar?(this.original=this.get(0),!this.modified&&this._hist||this.add_hist()):this.set(this.original),this.modified=!1)}add_hist(){if(!this._hist){let e=_.Std.na(this.mindepth)?_.Std.max_series_default_size:_.Std.max(this.mindepth+1,1);e=Math.round(e);const t=new Array(e);for(let i=0;i0&&void 0!==e&&i.set(e),i}new_unlimited_var(e){const t=this._vars;t.length<=this._varsIndex&&t.push(new g(this.symbol));const i=t[this._varsIndex++];return arguments.length>0&&i.set(e),i}new_ctx(){return this._ctx.length<=this._ctxIndex&&this._ctx.push(new f(this.symbol)),this._ctx[this._ctxIndex++]}prepare(e){this._ctxIndex=0,this._varsIndex=0;for(let t=0;te&&(e=i)}return e}stop(){this.symbol=null,this._vars=null}setMinimumAdditionalDepth(e){this.minimumAdditionalDepth=e}}function v(e){return!Array.isArray(e)&&"composite"!==e.type&&"non_series_bars"!==e.type&&!!e.nonseries}class y{constructor(e,t,i,s,r,n,o,a,l,c,h){this._body=n,this._symbols=[],this._runner=r,this._inputCallback=a,this._out=o,this._nonseriesOut=l,this._ctx=new f(this.add_sym(e,t,i,s,c,h)),this.init()}calc(e){const t=this._ctx,i=this._body;t.prepare(e);const s=i.main(t,this._inputCallback,e);var r;if(null!=s)if(null===(r=s)||Array.isArray(r)||"composite"!==r.type)this._processResult(s);else for(let e=0;e1&&this._runner.host.enableDwmAligning&&o.enable_dwm_aligning(this._symbols[0].session,o.session),o}maxAdditionalDepth(){return this._symbols[0].isAdditionalDepthAllowed?this._ctx.maxAdditionalDepth():0}stop(){var e;this._symbols=null,null===(e=this._ctx)||void 0===e||e.stop(),this._ctx=null}get_sym(e){return this._symbols[e]}_processResult(e){const t=this._ctx;var i;this._out&&e&&(!isNaN(t.symbol.time)||v(e))&&(v(e)?(i=e,Array.isArray(i)||"projection"!==i.type||(e.projectionTime=t.symbol.time),this._nonseriesOut(t.symbol,e)):!function(e){return!Array.isArray(e)&&("non_series_bars"===e.type||"projection"===e.type)}(e)?this._out(t.symbol,e):e.bars.forEach((e=>{this._out(t.symbol,e)})))}}var S=i(53388),b=i(1452);function w(e){C.feed=e}class C{constructor(e){this._nonseriesUpdate=null,this._script=null,this._symbols=[],this._barsets=[],this._subscription=[],this.host=e,this._isRecalculated=!1,this.isStarted=!1,this.start()}add_sym(e,t,i,s,r,n,o){const a=new u(e,t,i,s,r,n,o);return this._symbols.push(a),a}get_sym(e){return this._symbols[e]}out(e,t){if(this._nonseriesUpdate){const i=Object.assign({},this._nonseriesUpdate);t.splice(0,0,e.time),i.lastBar=t,this.host.nonseriesOut(e,i)}else this.host.out(e,t)}start(){this.isStarted=!0;const e=this.host,t=new y(e.tickerid,e.period,e.currencyCode,e.unitId,this,e.body,this.out.bind(this),e.input,e.nonseriesOut,e.symbolInfo,e.subsessionId);this._script=t;const i=[],n=this._symbols,o=Object.assign({},e.dataRange,{countBack:e.dataRange.countBack+this._script.maxAdditionalDepth()}),a=n[0],l=(t,s,r)=>{i.push(C.feed.subscribe(t.tickerid,t.currencyCode,t.unitId,t.period,r,e.onErrorCallback,e.symbolInfo,e.sessionId,s,e.forceAlignBars,t.subsessionId))},c=(t,i)=>{"series"===(i.nonseries?"nonseries":"series")?this.update(t,i):i.lastBar?(this._nonseriesUpdate=i,i.lastBar.isLastBar=!0,this._symbols[0].lastbar(i.lastBar),this._nonseriesUpdate=null):e.nonseriesOut(n[0],i)},h=()=>o;l(a,h,(e=>{!e.nonseries&&Number.isFinite(e.firstLoadedTimeMs)&&(e=>{function i(i,r){let n=(0,S.createTimeToBarTimeAligner)(i,r)(e);const o=(0,S.createDwmAligner)(i,r) +;return null!==o&&(n=o.timeToExchangeTradingDay(n)),{to:n,countBack:(0,s.ensureNotNull)(t,"script runner script").maxAdditionalDepth()}}for(let e=1;e=0;t--){const i=e[t],s=this._barsets[t],r=s.count();for(let e=0;ee.endOfData));t&&this.host.setNoMoreData(),this.host.recalc(this,{endOfData:t,firstLoadedTimeMs:this._barsets[0].firstLoadedTimeMs,emptyBarCount:this._barsets[0].emptyBarCount()})}catch(e){if(!(e instanceof b.StudyError))throw e;this.host.onErrorCallback(e.message)}}}C.feed={subscribe(){throw console.error("must be initialized with setupFeed"),new Error("must be initialized with setupFeed")},unsubscribe(){throw console.error("must be initialized with setupFeed"),new Error("must be initialized with setupFeed")}}},23863:(e,t,i)=>{"use strict";const s=i(56570),r=i(19625).getHexColorByName;var n=i(73772).Std;i(42924);var o=i(69146).pivotPointsStandardStudyItem,a=i(24018).volumeProfileVisibleRangeStudyItem,l=i(92245).volumeProfileFixedRangeVbPStudyItem,c=i(92245).volumeProfileFixedRangeBSStudyItem,h=i(68563).spreadStudyItem,d=i(15497).ratioStudyItem,u=i(65498).regressionTrendStudyItem,p=i(46367).anchoredVWAPStudyItem;const _=r("color-ripe-red-400"),m=r("color-minty-green-400"),g=s.enabled("secondary_series_extend_time_scale");JSServer.studyLibrary=JSServer.studyLibrary.concat([{name:"Compare",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{compare:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#9C27B0"}},inputs:{source:"close",symbol:""}},plots:[{id:"compare",type:"line"}],styles:{compare:{title:"Plot",histogramBase:0}},description:"Compare",shortDescription:"Compare",is_price_study:!0,inputs:[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol",name:"Symbol",type:"symbol",isHidden:!0}], +id:"Compare@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(1),n.period(this._context))},this.main=function(e,t){this._context=e;var i=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1);var s=this._context.new_unlimited_var(this._context.symbol.time),r=n[t(0)](this._context),o=this._context.new_unlimited_var(r);return this._context.select_sym(0),[o.adopt(s,i,0)]}}},{name:"Overlay",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!0,defaults:{styles:{},inputs:{symbol:"",extendTimeScale:!1}},plots:[{id:"open",type:"line"},{id:"high",type:"line"},{id:"low",type:"line"},{id:"close",type:"line"}],styles:{open:{title:"Open"},high:{title:"High"},low:{title:"Low"},close:{title:"Close"}},description:"Overlay",shortDescription:"Overlay",is_price_study:!1,inputs:[{id:"symbol",name:"symbol",defval:"",type:"symbol",isHidden:!0},{id:"extendTimeScale",name:"extendTimeScale",defval:!1,type:"boolean",isHidden:!0}],id:"Overlay@tv-basicstudies-1",format:{type:"price",precision:4},canExtendTimeScale:!0},constructor:function(){this.init=function(e,t){this._context=e,this._context.new_sym(t(0),n.period(this._context))},this.main=function(e,t){this._context=e;var i=!g||!0!==t(1),s=this._context.new_unlimited_var(this._context.symbol.time);this._context.select_sym(1);var r=this._context.new_unlimited_var(this._context.symbol.time),o=this._context.new_unlimited_var(n.open(this._context)),a=this._context.new_unlimited_var(n.high(this._context)),l=this._context.new_unlimited_var(n.low(this._context)),c=this._context.new_unlimited_var(n.close(this._context));return i?(this._context.select_sym(0),[o.adopt(r,s,1),a.adopt(r,s,1),l.adopt(r,s,1),c.adopt(r,s,1)]):[o.get(0),a.get(0),l.get(0),c.get(0)]}}},{name:"Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{vol:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:50,visible:!0,color:"#000080"},vol_ma:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1,color:"#2196F3"}},palettes:{volumePalette:{colors:{0:{color:_,width:1,style:0},1:{color:m,width:1,style:0}}}},inputs:{showMA:!1,volumeMA:"SMA",length:20,col_prev_close:!1,symbol:"",smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"vol",type:"line"},{id:"volumePalette",palette:"volumePalette",target:"vol",type:"colorer"},{id:"vol_ma",type:"line"},{id:"smoothedMA",type:"line"}],styles:{vol:{title:"Volume",histogramBase:0},vol_ma:{title:"Volume MA",histogramBase:0},smoothedMA:{title:"Smoothed MA",histogramBase:0}},description:"Volume",shortDescription:"Volume",is_price_study:!1,palettes:{volumePalette:{colors:{0:{name:"Falling"},1:{name:"Growing"}}}},inputs:[{id:"symbol",name:"Other Symbol",defval:"",type:"symbol",optional:!0,isHidden:!1},{id:"showMA",name:"show MA",defval:!1,type:"bool",isHidden:!0},{id:"length", +name:"MA Length",defval:20,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["vol_ma"]},{id:"volumeMA",name:"Volume MA",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["volumeMA"]},{defval:!1,id:"col_prev_close",name:"Color based on previous close",type:"bool"},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"Volume@tv-basicstudies-1",format:{type:"volume"}},constructor:function(){this.init=function(e,t){this._context=e,""!==t(0)&&this._context.new_sym(t(0),n.period(this._context))},this.f_0=function(e,t){return n.gt(e,t)?0:1},this.main=function(e,t){this._context=e,this._input=t;var i=n.volume(this._context),s=n.open(this._context),r=n.close(this._context),o=this._context.new_var(this._context.symbol.time),a=this._input(5),l=this._input(6),c=this._input(2),h=this._input(3);if(this._context.setMinimumAdditionalDepth(c+l),""!==this._input(0)){this._context.select_sym(1);var d=this._context.new_var(this._context.symbol.time),u=this._context.new_var(n.volume(this._context)),p=this._context.new_var(n.open(this._context)),_=this._context.new_var(n.close(this._context));i=u.adopt(d,o,1),s=p.adopt(d,o,1),r=_.adopt(d,o,1),this._context.select_sym(0)}var m=this._context.new_var(i),g=n[h.toLowerCase()](m,c,this._context),f=this._context.new_var(g),v=this._context.new_var(r);return[i,v.get(1)&&this._input(4)?this.f_0(v.get(1),r):this.f_0(s,r),g,n[a.toLowerCase()](f,l,this._context)]}}},{name:"ZigZag",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:2,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",target:"plot_0",type:"dataoffset"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Zig Zag",shortDescription:"ZigZag",is_price_study:!0,classId:"ScriptWithDataOffset",inputs:[{id:"in_0",name:"deviation",defval:5,type:"float",min:.001,max:100},{id:"in_1",name:"depth",defval:10,type:"integer",min:2,max:1e3}],id:"ZigZag@tv-basicstudies-1",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),r=i/100,o=Math.ceil(s/2);return[n.zigzag(r,o,this._context),n.zigzagbars(r,o,this._context)]}}},{name:"Sessions",metainfo:{_metainfoVersion:52,defaults:{graphics:{vertlines:{sessBreaks:{color:"#4985e7",style:2,visible:!1,width:1}},backgrounds:{preMarket:{color:"#FF9800",transparency:92,visible:!0},postMarket:{color:"#2196F3",transparency:92,visible:!0}}},linkedToSeries:!0},description:"Sessions",graphics:{vertlines:{sessBreaks:{name:"Session Break",halign:"left"}},backgrounds:{preMarket:{name:"Pre market"},postMarket:{name:"Post market"}}},id:"Sessions@tv-basicstudies-1",inputs:[],is_hidden_study:!0,is_price_study:!0, +name:"Sessions@tv-basicstudies",palettes:{},plots:[],shortDescription:"Sessions",format:{type:"inherit"}},constructor:function(){function e(e,t){return{id:e,index:e,extendBottom:!0,extendTop:!0}}function t(e){return{id:e.start,start:e.start,stop:e.stop}}this.init=function(){this._times=[]},this._getVerticalLineData=function(t){return n.selectSessionBreaks(t,this._times).map(e)},this._getPreAndPostMarketBackgroundsData=function(e){const i=n.selectPreAndPostMarketTimes(e,this._times);return{preMarket:i.preMarket.map(t),postMarket:i.postMarket.map(t)}},this.main=function(e,t){if(n.isdwm(e))return null;var i=n.time(e);if(isNaN(i))return null;var s=this._times.length;if(0!==s&&this._times[s-1]===i||this._times.push(i),!e.symbol.isLastBar||!e.symbol.isNewBar)return null;var r=this._getVerticalLineData(e),o=this._getPreAndPostMarketBackgroundsData(e);return 0===r.length&&0===o.preMarket.length&&0===o.postMarket?null:{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{create:{vertlines:[{styleId:"sessBreaks",data:r}],backgrounds:[{styleId:"preMarket",data:o.preMarket},{styleId:"postMarket",data:o.postMarket}]},erase:[{action:"all"}]}}}}}},{name:"SuperTrend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:3,plottype:0,trackPrice:!1,transparency:35,visible:!0,color:"#000080"},plot_2:{linestyle:0,linewidth:3,plottype:"shape_arrow_up",trackPrice:!1,location:"BelowBar",transparency:35,visible:!0,color:"#00FF00"},plot_3:{linestyle:0,linewidth:3,plottype:"shape_arrow_down",trackPrice:!1,location:"AboveBar",transparency:35,visible:!0,color:"#FF0000"}},palettes:{palette_0:{colors:{0:{color:"#008000",width:3,style:0},1:{color:"#800000",width:3,style:0}}}},inputs:{in_0:10,in_1:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",palette:"palette_0",target:"plot_0",type:"colorer"},{id:"plot_2",type:"shapes"},{id:"plot_3",type:"shapes"}],styles:{plot_0:{title:"SuperTrend",histogramBase:0,joinPoints:!1,isHidden:!1},plot_2:{title:"Up Arrow",histogramBase:0,joinPoints:!1,isHidden:!1},plot_3:{title:"Down Arrow",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"SuperTrend",shortDescription:"SuperTrend",is_price_study:!0,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"}},valToIndex:{0:0,1:1}}},inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:100},{id:"in_1",name:"Factor",defval:3,type:"float",min:1,max:100}],id:"SuperTrend@tv-basicstudies-1",scriptIdPart:"",name:"SuperTrend",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.main=function(e,t){var i=t(0),s=t(1),[r,o]=n.supertrend(s,i,e),a=e.new_var(o).get(1);return[r,-1===o?0:1,-1===o&&a!==o?1:NaN,1===o&&a!==o?1:NaN]}}},o,a,l,c,h,d,u,p])},73772:(e,t,i)=>{"use strict";i.d(t,{Std:()=>h});var s=i(14381),r=i(2740);class n{constructor(e,t,i){var s,r;this._timezone=e,this._preMarketSessionEntries=null!==(s=null==t?void 0:t.entries())&&void 0!==s?s:[],this._postMarketSessionEntries=null!==(r=null==i?void 0:i.entries())&&void 0!==r?r:[]} +getPreAndPostMarketTimes(e){if(0===e.length)return{preMarket:[],postMarket:[]};const t=[],i=[];let s=null,n=null,o=e[0],a=(0,r.utc_to_cal)(this._timezone,o);this._isInPreMarketSession(a)&&(n=o),this._isInPostMarketSession(a)&&(s=o);for(let l=1;le?1:0,h={};function d(e,t,i,s,r){let n=r,o=0;if(isNaN(e.get(t-1)))return{index:NaN,value:NaN};for(let i=0;ie.symbol.index+1,h.nz=(e,t=0)=>isFinite(e)?e:t,h.na=function(e){return 0===arguments.length?NaN:isNaN(e)?1:0},h.isZero=e=>Math.abs(e)<=1e-10?1:0,h.toBool=e=>isFinite(e)&&!h.isZero(e),h.eq=(e,t)=>h.isZero(e-t),h.neq=(e,t)=>c(!h.eq(e,t)),h.ge=(e,t)=>c(h.isZero(e-t)||e>t),h.gt=(e,t)=>c(!h.isZero(e-t)&&e>t),h.lt=(e,t)=>c(!h.isZero(e-t)&&ec(h.isZero(e-t)||eisNaN(e)||isNaN(t)?NaN:h.isZero(e)||h.isZero(t)?0:1,h.or=(e,t)=>isNaN(e)||isNaN(t)?NaN:h.isZero(e)&&h.isZero(t)?0:1,h.not=e=>isNaN(e)?NaN:h.isZero(e)?1:0,h.eps=()=>l,h.greaterOrEqual=(e,t,i)=>t-e<(i||l),h.lessOrEqual=(e,t,i)=>e-t<(i||l),h.equal=(e,t,i)=>Math.abs(e-t)<(i||l),h.greater=(e,t,i)=>e-t>(i||l),h.less=(e,t,i)=>t-e>(i||l),h.compare=(e,t,i)=>h.equal(e,t,i)?0:h.greater(e,t,i)?1:-1,h.max=Math.max,h.min=Math.min,h.pow=Math.pow,h.abs=Math.abs,h.log=Math.log,h.log10=e=>Math.log(e)/Math.LN10,h.sqrt=Math.sqrt,h.sign=e=>isNaN(e)?NaN:h.isZero(e)?0:e>0?1:-1,h.exp=Math.exp,h.sin=Math.sin,h.cos=Math.cos,h.tan=Math.tan,h.asin=Math.asin,h.acos=Math.acos,h.atan=Math.atan,h.floor=Math.floor,h.ceil=Math.ceil,h.round=Math.round,h.avg=(...e)=>{if(2===e.length)return(e[0]+e[1])/2;let t=0;for(let i=0;ie.symbol.open,h.high=e=>e.symbol.high,h.low=e=>e.symbol.low,h.close=e=>e.symbol.close,h.hl2=e=>(e.symbol.high+e.symbol.low)/2,h.hlc3=e=>(e.symbol.high+e.symbol.low+e.symbol.close)/3,h.ohlc4=e=>(e.symbol.open+e.symbol.high+e.symbol.low+e.symbol.close)/4,h.volume=e=>e.symbol.volume,h.updatetime=e=>e.symbol.updatetime,h.time=e=>e.symbol.bartime(),h.period=e=>e.symbol.period,h.tickerid=e=>e.symbol.tickerid,h.currencyCode=e=>e.symbol.currencyCode,h.unitId=e=>e.symbol.unitId,h.ticker=e=>e.symbol.ticker,h.interval=e=>e.symbol.interval, +h.isdwm=e=>e.symbol.isdwm(),h.isintraday=e=>!e.symbol.isdwm(),h.isdaily=e=>"D"===e.symbol.resolution,h.isweekly=e=>"W"===e.symbol.resolution,h.ismonthly=e=>"M"===e.symbol.resolution,h.year=(e,t)=>h.timepart(e.symbol,r.YEAR,t),h.month=(e,t)=>h.timepart(e.symbol,r.MONTH,t),h.weekofyear=(e,t)=>h.timepart(e.symbol,r.WEEK_OF_YEAR,t),h.dayofmonth=(e,t)=>h.timepart(e.symbol,r.DAY_OF_MONTH,t),h.dayofweek=(e,t)=>h.timepart(e.symbol,r.DAY_OF_WEEK,t),h.hour=(e,t)=>h.timepart(e.symbol,r.HOUR_OF_DAY,t),h.minute=(e,t)=>h.timepart(e.symbol,r.MINUTE,t),h.second=(e,t)=>h.timepart(e.symbol,r.SECOND,t),h.add_days_considering_dst=(e,t,i)=>r.add_days_considering_dst(r.get_timezone(e),t,i),h.add_years_considering_dst=(e,t,i)=>r.add_years_considering_dst(r.get_timezone(e),t,i),h.selectSessionBreaks=(e,t)=>{if(h.isdwm(e)||void 0===e.symbol.session.timezone)return[];const i=(0,s.newBarBuilder)(e.symbol.period,e.symbol.session,null),r=[],n=t.length;if(i.moveTo(t[n-1]),1===n&&i.startOfBar(0)===t[0])r.push(t[0]);else{for(let e=n-2;e>=0;--e){const s=t[e];if(s>=i.startOfBar(0))continue;i.moveTo(s);const n=t[e+1];r.push(n)}r.reverse()}return r},h.selectPreAndPostMarketTimes=(e,t)=>{var i,s;if(h.isdwm(e)||void 0===e.symbol.session.timezone)return{preMarket:[],postMarket:[]};return new n(e.symbol.session.timezone,null!==(i=e.symbol.preMarketSubsession)&&void 0!==i?i:null,null!==(s=e.symbol.postMarketSubsession)&&void 0!==s?s:null).getPreAndPostMarketTimes(t)},h.iff=(e,t,i)=>h.not(e)?i:t,h.rising=(e,t)=>{for(let i=1;ie.get(0))return 0;return 1},h.falling=(e,t)=>{for(let i=1;i{const s=r.utc_to_cal(e.session.timezone,i||e.bartime());return r.get_part(s,t)},h.rsi=(e,t)=>h.isZero(t)?100:h.isZero(e)?0:100-100/(1+e/t),h.sum=(e,t,i)=>{const s=i.new_var(),r=h.nz(e.get())+h.nz(s.get(1))-h.nz(e.get(t));return s.set(r),r},h.sma=(e,t,i)=>{const s=h.sum(e,t,i);return h.na(e.get(t-1))?NaN:s/t},h.smma=(e,t,i)=>{const s=i.new_var(e),r=h.sma(s,t,i),n=i.new_var(),o=(n.get(1)*(t-1)+e)/t;return n.set(h.na(n.get(1))?r:o),n.get(0)},h.rma=(e,t,i)=>{const s=h.sum(e,t,i),r=t-1,n=e.get(r),o=i.new_var(),a=o.get(1),l=e.get(),c=h.na(n)?NaN:h.na(a)?s/t:(l+a*r)/t;return o.set(c),c},h.fixnan=(e,t)=>{const i=t.new_var();return isNaN(e)?i.get(1):(i.set(e),e)},h.tr=(e,t)=>{let i=t.new_var(h.close(t)).get(1);return e&&isNaN(i)&&(i=h.close(t)),h.max(h.max(h.high(t)-h.low(t),h.abs(h.high(t)-i)),h.abs(h.low(t)-i))},h.atr=(e,t)=>{const i=t.new_var(h.tr(void 0,t));return h.rma(i,e,t)},h.ema=(e,t,i)=>{const s=h.sum(e,t,i),r=i.new_var(),n=e.get(0),o=e.get(t-1),a=r.get(1),l=h.na(o)?NaN:h.na(a)?s/t:2*(n-a)/(t+1)+a;return r.set(l),l},h.wma=(e,t,i)=>{let s=0;for(let i=t=Math.round(t);i>=0;i--){s+=(t-i)*e.get(i)}return 2*s/(t*(t+1))},h.vwma=(e,t,i)=>{const s=i.new_var(h.volume(i)),r=i.new_var(e.get(0)*h.volume(i));return h.sma(r,t,i)/h.sma(s,t,i)},h.swma=(e,t)=>(e.get(0)+2*e.get(1)+2*e.get(2)+e.get(3))/6,h.supertrend=(e,t,i)=>{const s=h.atr(t,i),r=i.new_var(s).get(1),n=h.hl2(i);let o=n+s*e,a=n-s*e +;const l=h.close(i),c=i.new_var(l).get(1),d=i.new_var(),u=h.nz(d.get(1)),p=i.new_var(),_=h.nz(p.get(1));a=h.gt(a,u)||h.lt(c,u)?a:u,d.set(a),o=h.lt(o,_)||h.gt(c,_)?o:_,p.set(o);let m=h.na();const g=i.new_var(),f=g.get(1);m=h.na(r)?1:f===_?l>o?-1:1:l-d(e,t,0,((e,t)=>h.lt(e,t)),Number.MAX_VALUE).index,h.lowest=(e,t,i)=>d(e,t,0,((e,t)=>h.lt(e,t)),Number.MAX_VALUE).value,h.highestbars=(e,t,i)=>-d(e,t,0,((e,t)=>h.gt(e,t)),Number.MIN_VALUE).index,h.highest=(e,t,i)=>d(e,t,0,((e,t)=>h.gt(e,t)),Number.MIN_VALUE).value,h.cum=(e,t)=>{const i=t.new_var(),s=h.nz(i.get(1))+e;return i.set(s),s},h.accdist=e=>{const t=h.high(e),i=h.low(e),s=h.close(e),r=h.volume(e);return h.cum(s===t&&s===i||t===i?0:r*(2*s-i-t)/(t-i),e)},h.correlation=(e,t,i,s)=>{const r=h.sma(e,i,s),n=h.sma(t,i,s),o=s.new_var(e.get()*t.get());return(h.sma(o,i,s)-r*n)/Math.sqrt(h.variance2(e,r,i)*h.variance2(t,n,i))},h.stoch=(e,t,i,s,r)=>{const n=h.highest(t,s,r),o=h.lowest(i,s,r);return h.fixnan(100*(e.get()-o)/(n-o),r)},h.tsi=(e,t,i,s)=>{const r=s.new_var(h.change(e)),n=s.new_var(h.abs(h.change(e))),o=s.new_var(h.ema(r,i,s)),a=s.new_var(h.ema(n,i,s));return h.ema(o,t,s)/h.ema(a,t,s)},h.cross=(e,t,i)=>{if(isNaN(e)||isNaN(t))return!1;const s=i.new_var((r=e-t)<0?-1:0===r?0:1);var r;return!isNaN(s.get(1))&&s.get(1)!==s.get()},h.linreg=(e,t,i)=>{let s=0,r=0,n=0,o=0;for(let i=0;i{const r=s.new_var(),n=s.new_var(),o=s.new_var(),a=h.high(s),l=h.low(s),c=h.close(s),d=s.new_var(a),u=s.new_var(l),p=s.new_var(c),_=s.new_var();let m=_.get(1),g=n.get(1),f=o.get(1);n.set(g),o.set(f);let v=!1;const y=u.get(1),S=u.get(2),b=d.get(1),w=d.get(2),C=p.get(),P=p.get(1);2===h.n(s)&&(h.greater(C,P)?(r.set(1),o.set(d.get()),m=y,f=d.get()):(r.set(-1),o.set(u.get()),m=b,f=u.get()),v=!0,n.set(e),g=e);let x=m+g*(f-m);return 1===r.get()?h.greater(x,u.get())&&(v=!0,r.set(-1),x=Math.max(d.get(),o.get()),o.set(u.get()),n.set(e)):h.less(x,d.get())&&(v=!0,r.set(1),x=Math.min(u.get(),o.get()),o.set(d.get()),n.set(e)),v||(1===r.get()?h.greater(d.get(),o.get())&&(o.set(d.get()),n.set(Math.min(n.get()+t,i))):h.less(u.get(),o.get())&&(o.set(u.get()),n.set(Math.min(n.get()+t,i)))),1===r.get()?(x=Math.min(x,y),h.n(s)>2&&(x=Math.min(x,S))):(x=Math.max(x,b),h.n(s)>2&&(x=Math.max(x,w))),_.set(x),x},h.alma=(e,t,i,s)=>{const r=Math.floor(i*(t-1)),n=t/s*(t/s),o=[];let a=0;for(let e=0;ee.get()-e.get(1),h.roc=(e,t)=>{const i=e.get(t);return 100*(e.get()-i)/i},h.dev=(e,t,i)=>{const s=h.sma(e,t,i);return h.dev2(e,t,s)},h.dev2=(e,t,i)=>{let s=0;for(let r=0;r{const s=h.variance(e,t,i);return h.sqrt(s)},h.variance=(e,t,i)=>{const s=h.sma(e,t,i) +;return h.variance2(e,s,t)},h.variance2=(e,t,i)=>{let s=0;for(let r=0;r{if(h.na(e.get(t-1)))return NaN;let i=0;const s=e.get();for(let r=1;r{if(void 0===e.symbol.session.timezone)return()=>!1;const t=(0,s.newBarBuilder)(e.symbol.period,e.symbol.session,null);return e=>t.indexOfBar(e)===o.SessionStage.POST_SESSION&&(t.moveTo(e),!0)},h.createNthBarInSessionCheck=e=>{if(void 0===e.symbol.session.timezone)return()=>!1;const t=(0,s.newBarBuilder)(e.symbol.period,e.symbol.session,null);return(e,i)=>(t.indexOfBar(e)===o.SessionStage.POST_SESSION&&t.moveTo(e),t.indexOfBar(e)===i)},h.error=e=>{throw new a.StudyError(e)},h.dmi=(e,t,i)=>{const s=i.new_var(h.high(i)),r=i.new_var(h.low(i)),n=h.change(s),o=-h.change(r),a=i.new_var(h.na(n)||h.na(o)?h.na():h.and(h.gt(n,o),h.gt(n,0))?n:0),l=i.new_var(h.na(o)?h.na():h.and(h.gt(o,n),h.gt(o,0))?o:0),c=h.atr(e,i),d=h.fixnan(100*h.rma(a,e,i)/c,i),u=h.fixnan(100*h.rma(l,e,i)/c,i);let p=d+u;h.isZero(p)&&(p+=1);const _=Math.abs(d-u)/p*100,m=i.new_var(_),g=h.rma(m,t,i),f=i.new_var(g);return[d,u,_,g,(f.get(0)+f.get(e-1))/2]},h.zigzag=(e,t,i)=>new m(e,t,i).lastPrice(),h.zigzagbars=(e,t,i)=>{const s=new m(e,t,i);return-1===s.lastIndex()?NaN:s.lastIndex()-h.n(i)};const u=0,p=1;class _{constructor(e,t,i,s,r){this._areaRight=e,this._areaLeft=t,this._pivotType=i,this._series=s,this._currentIndex=r.new_var(0),this._currentValue=r.new_var(NaN),this._pivotIndex=r.new_var(-1),this._index=h.n(r),this._isNewBar=r.symbol.isNewBar;const n=this._currentIndex.get(1),o=this._currentValue.get(1),a=this._pivotIndex.get(1);this._index>1&&(this._currentIndex.set(n),this._currentValue.set(o),this._pivotIndex.set(a))}isPivotFound(){return-1!==this._pivotIndex.get()}pivotIndex(){return this._pivotIndex.get()}currentValue(){return this._currentValue.get()}pivotType(){return this._pivotType}reset(){this._currentValue.set(NaN),this._currentIndex.set(0),this._pivotIndex.set(-1)}isRightSideOk(e){return e-this._currentIndex.get()===this._areaRight}isViolate(e,t){if(e<1||isNaN(this._currentValue.get()))return!0;const i=this._series.get(this._index-e);return!!isNaN(i)||(i===this._currentValue.get()?t:this._pivotType===p?i>this._currentValue.get():ithis._areaRight}update(){if(this._isNewBar&&this.isPivotFound()&&this.reset(),this.processPoint(this._index),this.isRightSideOk(this._index)){if(-1===this._pivotIndex.get()){let e=!0;for(let t=0;t1&&this.addPivot(n,o,a),this.processPivot(this._pivotHigh),this.processPivot(this._pivotLow)}addPivot(e,t,i){this._lastIndex.set(e),this._lastVal.set(t),this._lastType.set(i)}updatePivot(e,t){this._lastIndex.set(e),this._lastVal.set(t)}lastPrice(){return this._lastVal.get()}lastIndex(){return this._lastIndex.get()}addPoint(e,t,i){if(isNaN(this._lastVal.get()))return void this.addPivot(e,t,i);const s=this._lastVal.get();if(this._lastType.get()===i){return void((i===p?t>s:tthis._deviation&&this.addPivot(e,t,i)}processPivot(e){e.update(),this._isBarClosed&&e.isPivotFound()&&this.addPoint(e.pivotIndex(),e.currentValue(),e.pivotType())}}},46367:(e,t,i)=>{"use strict";i.d(t,{anchoredVWAPStudyItem:()=>o});const s={_metainfoVersion:51,description:"Anchored VWAP",shortDescription:"Anchored VWAP",format:{type:"inherit"},id:"AnchoredVWAP@tv-basicstudies-1",is_hidden_study:!0,is_price_study:!0,defaults:{areaBackground:{backgroundColor:"#4caf50",fillBackground:!0,transparency:95},filledAreasStyle:{Background_1:{fillType:void 0,color:"#4caf50",transparency:95,visible:!0}},inputs:{start_time:0,"Bands Calculation Mode":"Standard Deviation",bands_multiplier:1,bands_multiplier_2:2,bands_multiplier_3:3,calculate_stDev:!0,calculate_stDev_2:!1,calculate_stDev_3:!1,source:"hlc3"},styles:{VWAP:{color:"#1e88e5",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,display:15},LowerBand:{display:15,color:"#4caf50",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},LowerBand_2:{display:15,color:"#808000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},LowerBand_3:{display:15,color:"#00897b",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},UpperBand:{display:15,color:"#4caf50",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},UpperBand_2:{display:15,color:"#808000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0},UpperBand_3:{display:15,color:"#00897b",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0}}},inputs:[{defval:0,id:"start_time",isHidden:!0,max:Number.MAX_SAFE_INTEGER,min:-Number.MAX_SAFE_INTEGER,name:"Start time",type:"time"},{defval:"Standard Deviation",group:"Bands Settings",id:"Bands Calculation Mode",name:"Bands Calculation Mode",options:["Standard Deviation","Percentage"],tooltip:"Determines the units used to calculate the distance of the bands. When 'Percentage' is selected, a multiplier of 1 means 1%.",type:"text",display:15},{defval:!0,group:"Bands Settings",id:"calculate_stDev",inline:"band_1",name:" ",type:"bool",display:0},{defval:1, +group:"Bands Settings",id:"bands_multiplier",inline:"band_1",max:Number.MAX_VALUE,min:0,name:"Bands Multiplier #1",step:.5,type:"float",display:15},{defval:!1,group:"Bands Settings",id:"calculate_stDev_2",inline:"band_2",name:" ",type:"bool",display:0},{defval:2,group:"Bands Settings",id:"bands_multiplier_2",inline:"band_2",max:Number.MAX_VALUE,min:0,name:"Bands Multiplier #2",step:.5,type:"float",display:15},{defval:!1,group:"Bands Settings",id:"calculate_stDev_3",inline:"band_3",name:" ",type:"bool",display:0},{defval:3,group:"Bands Settings",id:"bands_multiplier_3",inline:"band_3",max:Number.MAX_VALUE,min:0,name:"Bands Multiplier #3",step:.5,type:"float",display:15},{defval:"hlc3",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"source"}],plots:[{id:"VWAP",type:"line"},{id:"UpperBand",type:"line"},{id:"LowerBand",type:"line"},{id:"UpperBand_2",type:"line"},{id:"LowerBand_2",type:"line"},{id:"UpperBand_3",type:"line"},{id:"LowerBand_3",type:"line"}],styles:{VWAP:{histogramBase:0,title:"VWAP"},LowerBand:{histogramBase:0,title:"Lower Band #1"},LowerBand_2:{histogramBase:0,title:"Lower Band #2"},LowerBand_3:{histogramBase:0,title:"Lower Band #3"},UpperBand:{histogramBase:0,title:"Upper Band #1"},UpperBand_2:{histogramBase:0,title:"Upper Band #2"},UpperBand_3:{histogramBase:0,title:"Upper Band #3"}},filledAreas:[{title:"Background #1",id:"Background_1",objAId:"UpperBand",objBId:"LowerBand",type:"plot_plot"}],area:[{name:"UpperBand",visible:!0},{name:"LowerBand",visible:!0}]};var r=i(50151),n=i(73772);const o={name:"Anchored VWAP",metainfo:s,constructor:class{constructor(){this._isNewSession=null,this._firstBarTime=0}init(e,t){this._firstBarTime=t(0),this._isNewSession=null}main(e,t,i){if(void 0===i)return[NaN];(0,r.assert)(e.symbol.time===i.time);const s=i.time;if(s&&s{"use strict";i.d(t,{OHLCV:()=>r});var s=i(73772);class r{main(e){return[s.Std.open(e),s.Std.high(e),s.Std.low(e),s.Std.close(e),s.Std.volume(e),s.Std.updatetime(e),void 0,void 0,void 0,void 0]}}},69146:(e,t,i)=>{"use strict";i.d(t,{pivotPointsStandardStudyItem:()=>p});var s,r,n=i(85049),o=i(67153),a=i(73772);!function(e){e[e.TRADITIONAL=0]="TRADITIONAL",e[e.FIBONACCI=1]="FIBONACCI",e[e.WOODIE=2]="WOODIE",e[e.CLASSIC=3]="CLASSIC",e[e.DEMARK=4]="DEMARK",e[e.CAMARILLA=5]="CAMARILLA", +e[e.FLOOR=6]="FLOOR"}(s||(s={})),function(e){e.AUTO="Auto",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(r||(r={}));class l{constructor(){this.p=NaN,this.r1=NaN,this.s1=NaN,this.r2=NaN,this.s2=NaN,this.r3=NaN,this.s3=NaN,this.r4=NaN,this.s4=NaN,this.r5=NaN,this.s5=NaN,this.startIndex__t=NaN,this.endIndex__t=NaN}}class c{constructor(){this.pivots=[]}}function h(e,t){e.setUTCMonth(e.getUTCMonth()+t)}function d(e,t){if(a.Std.ismonthly(e)){let i=new Date(t);return i.getUTCDay()=1&&t.multiplier()<=15?"1D":"1W";case n.ResolutionKind.Seconds:case n.ResolutionKind.Ticks:return"1D"}throw new Error("Unexpected resolution type: "+e.symbol.resolution)}(e);case"Daily":return"1D";case"Weekly":return"1W";case"Monthly":return"1M";case"Yearly":return"12M";default:throw new Error("No such pivTimeFrame: "+t)}}const p={name:"Pivot Points Standard",metainfo:{_metainfoVersion:44,defaults:{inputs:{kind:"Traditional",lookBack:15,pivTimeFrame:"Auto",showHistoricalPivots:!0},precision:"4"},description:"Pivot Points Standard",id:"PivotPointsStandard@tv-basicstudies-80",inputs:[{defval:"Traditional",id:"kind",name:"Type",options:["Traditional","Fibonacci","Woodie","Classic","DeMark","Camarilla","Floor"],type:"text"},{defval:!0,id:"showHistoricalPivots",name:"Show historical pivots",type:"bool"},{defval:"Auto",id:"pivTimeFrame",name:"Pivots Timeframe",options:["Auto","Daily","Weekly","Monthly","Yearly"],type:"text"},{defval:15,id:"lookBack",max:5e3,min:1,name:"Number of Pivots Back",type:"integer"}],is_price_study:!0,linkedToSeries:!0,shortDescription:"Pivots",format:{type:"price",precision:4}},constructor:class{constructor(){this._secondaryRes="1D",this._firstMainSeriesBarTime=NaN,this._mainSeriesTimes=new Set}init(e,t){const i=t(0),s=t(1),r=t(2),n=t(3);this._data=new c,this._firstMainSeriesBarTime=NaN,this._kindPP=function(e){switch(e){case"Traditional":return 0;case"Fibonacci":return 1;case"Woodie":return 2;case"Classic":return 3;case"DeMark":return 4;case"Camarilla":return 5;case"Floor":return 6;default:throw new Error("Unknown kind "+e)}}(i),this._showHistoricalPivots=s,this._historicalPivotsToKeep=n,this._pivTimeFrame=r,this._isValidResolution=function(e,t){return!(a.Std.isdaily(e)&&"Daily"===t||a.Std.isweekly(e)&&("Daily"===t||"Weekly"===t)||a.Std.ismonthly(e)&&("Daily"===t||"Weekly"===t||"Monthly"===t))}(e,this._pivTimeFrame), +this._isValidResolution||a.Std.error("You cannot see this pivot timeframe on this resolution"),this._isValidResolution&&(this._secondaryRes=u(e,this._pivTimeFrame),void 0!==e.symbol.info&&(0,o.findSuitableResolutionToBuildFrom)(this._secondaryRes,e.symbol.info).error&&(this._isValidResolution=!1,a.Std.error(`Resolution ${this._secondaryRes} is not supported for this symbol`))),this._mainSeriesTimes=new Set,e.new_sym(e.symbol.tickerid,this._secondaryRes)}main(e,t,i){if(!this._isValidResolution)return null;if(e.is_main_symbol(i))return!isNaN(e.symbol.time)&&isNaN(e.symbol.projectionTime)&&this._mainSeriesTimes.add(e.symbol.time),isNaN(this._firstMainSeriesBarTime)&&(this._firstMainSeriesBarTime=e.symbol.time,this._removeUnusedPivots()),e.symbol.isLastBar&&e.symbol.isNewBar?this._createResponse():null;e.select_sym(1);const s=e.new_var(a.Std.open(e)),r=e.new_var(a.Std.high(e)),n=e.new_var(a.Std.low(e)),o=e.new_var(a.Std.close(e)),c=e.new_var(a.Std.time(e)),h=this._data,u=s.get(0),p=c.get(0),_=s.get(1),m=r.get(1),g=n.get(1),f=o.get(1),v=e.symbol.isLastBar;if(0!==h.pivots.length&&e.symbol.isNewBar){const e=h.pivots[h.pivots.length-1];e.endIndex__t!==p&&(e.endIndex__t=p)}if(0===e.symbol.index||!e.symbol.isNewBar)return e.select_sym(0),null;const y=function(e,t,i,s,r,n,o,c){const h=new l;let d=NaN;const u=i-s;switch(c){case 0:d=(i+s+r)/3,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+(i-s),h.s2=d-(i-s),h.r3=2*d+(i-2*s),h.s3=2*d-(2*i-s),h.r4=3*d+(i-3*s),h.s4=3*d-(3*i-s),h.r5=4*d+(i-4*s),h.s5=4*d-(4*i-s);break;case 1:d=(i+s+r)/3,h.p=d,h.r1=d+.382*u,h.s1=d-.382*u,h.r2=d+.618*u,h.s2=d-.618*u,h.r3=d+u,h.s3=d-u;break;case 2:d=(i+s+2*e)/4,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=i+2*(d-s),h.s3=s-2*(i-d),h.r4=h.r3+u,h.s4=h.s3-u;break;case 3:d=(i+s+r)/3,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+u,h.s2=d-u,h.r3=d+2*u,h.s3=d-2*u,h.r4=d+3*u,h.s4=d-3*u;break;case 4:let n=NaN;n=a.Std.equal(t,r)?i+s+2*r:a.Std.greater(r,t)?2*i+s+r:2*s+i+r,d=n/4,h.p=d,h.r1=n/2-s,h.s1=n/2-i;break;case 5:d=(i+s+r)/3,h.p=d,h.r1=r+1.1*u/12,h.s1=r-1.1*u/12,h.r2=r+1.1*u/6,h.s2=r-1.1*u/6,h.r3=r+1.1*u/4,h.s3=r-1.1*u/4,h.r4=r+1.1*u/2,h.s4=r-1.1*u/2;break;case 6:d=(i+s+r)/3,h.p=d,h.r1=2*d-s,h.s1=2*d-i,h.r2=d+(i-s),h.s2=d-(i-s),h.r3=d-h.s1+h.r2,h.s3=2*d-(2*i-s);break;default:throw new Error("Unknown kind")}return h.startIndex__t=n,h.endIndex__t=o,h}(u,_,m,g,f,p,d(e,p),this._kindPP);return e.select_sym(0),this._showHistoricalPivots||(h.pivots=[]),h.pivots.push(y),h.pivots.length>this._historicalPivotsToKeep&&h.pivots.shift(),v?this._createResponse():null}_createResponse(){if(0===this._data.pivots.length||this._mainSeriesTimes.size<=1)return null;if(this._mainSeriesTimes.size<=this._data.pivots.length)return null;const e=Array.from(this._mainSeriesTimes).sort(((e,t)=>e-t)),t=new c;let i=0;for(let s=0;s=r.endIndex__t)break;t>=r.startIndex__t&&(n=!0,o++),i++}if(n){let n=!0;if(s>0&&t.pivots.length>0){const i=t.pivots[t.pivots.length-1] +;if(i.endIndex__t===r.startIndex__t){const t=e.filter((e=>e>=i.startIndex__t&&e<=i.endIndex__t));1===o&&t[t.length-1]===r.startIndex__t&&(n=!1)}}n?t.pivots.push({...r}):i=a}else t.pivots.length>0&&(t.pivots[t.pivots.length-1].endIndex__t=r.endIndex__t)}return 0===t.pivots.length&&a.Std.error("Not enough data to calculate all pivot points"),{nonseries:!0,type:"non_series_data",data:{data:t}}}_removeUnusedPivots(){const e=Math.max(this._data.pivots.findIndex((e=>e.startIndex__t>this._firstMainSeriesBarTime))-1,0);e>0&&this._data.pivots.splice(0,e)}}}},15497:(e,t,i)=>{"use strict";i.d(t,{ratioStudyItem:()=>n});var s=i(62473);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t/(i*s)}}const n={name:"Ratio",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,description:"Ratio",shortDescription:"Ratio",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Ratio@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},65498:(e,t,i)=>{"use strict";i.d(t,{regressionTrendStudyItem:()=>n});var s=i(73772);function r(e,t,i){const r={slope:NaN,average:NaN,intercept:NaN,stdDev:NaN,upDev:NaN,downDev:NaN,pearsons:NaN};return 0===e.length||(function(e,t){let i=0,s=0,r=0,n=0;for(let t=0;tn&&(n=u),u=d-i[s],u>o&&(o=u),u=e[s];const _=u-r.average,m=d-p;u-=d,a+=u*u,l+=_*_,c+=m*m,h+=_*m,d+=r.slope}r.stdDev=Math.sqrt(a/(0===u?1:u)),r.pearsons=s.Std.isZero(l)||s.Std.isZero(c)?0:h/Math.sqrt(l*c),r.upDev=n,r.downDev=o}(e,t,i,r)),r}const n={name:"Regression Trend",metainfo:{_metainfoVersion:51,description:"Regression Trend",format:{type:"inherit"},id:"RegressionTrend@tv-basicstudies-144",is_hidden_study:!0,is_price_study:!0,shortDescription:"Reg Trend",defaults:{inputs:{"first bar time":0,"last bar time":0,"lower diviation":-2,source:"close","upper diviation":2,"use lower diviation":!0,"use upper diviation":!0},styles:{}},inputs:[{defval:2,id:"upper diviation",max:500,min:-500,name:"Upper Deviation",type:"float"},{defval:-2,id:"lower diviation",max:500,min:-500,name:"Lower Deviation",type:"float"},{defval:!0,id:"use upper diviation",name:"Use Upper Deviation",type:"bool"},{defval:!0,id:"use lower diviation",name:"Use Lower Deviation",type:"bool"},{defval:0,id:"first bar time",isHidden:!0,max:253370764800,min:-253370764800,name:"First bar time",type:"time"},{defval:0,id:"last bar time",isHidden:!0,max:253370764800,min:-253370764800,name:"Last bar time",type:"time"},{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"source"}],plots:[]},constructor:class{constructor(){this._resultSent=!1}init(e,t){this._resultSent=!1,this._data={baseLine:{startPrice:NaN,endPrice:NaN},upLine:{startPrice:NaN, +endPrice:NaN},downLine:{startPrice:NaN,endPrice:NaN},pearsons:NaN,startIndex__t:NaN,endIndex__t:NaN}}main(e,t){const i=t(6),n=e.new_unlimited_var(s.Std.time(e)),o=e.new_unlimited_var(s.Std.high(e)),a=e.new_unlimited_var(s.Std.low(e)),l=e.new_unlimited_var(s.Std[i](e));if(!e.symbol.isLastBar)return null;if(this._resultSent)return null;const c=t(0),h=t(1),d=t(2),u=t(3),p=t(4),_=t(5),m=n.indexOf(p),g=n.indexOf(_),f=[],v=[],y=[],S=[];for(let e=m;e>=g;--e)f.push(n.get(e)),v.push(o.get(e)),y.push(a.get(e)),S.push(l.get(e));return this._updateData(f,d,c,u,h,p,_,r(S,v,y)),this._resultSent=!0,{type:"non_series_data",nonseries:!0,data:{data:this._data}}}_updateData(e,t,i,s,r,n,o,a){const l=e.length-1;this._data.baseLine.startPrice=a.intercept,this._data.baseLine.endPrice=a.intercept+a.slope*l;const c=a.intercept+(t?a.stdDev*i:a.upDev);this._data.upLine.startPrice=c,this._data.upLine.endPrice=c+a.slope*l;const h=a.intercept+(s?a.stdDev*r:-a.downDev);this._data.downLine.startPrice=h,this._data.downLine.endPrice=h+a.slope*l,this._data.pearsons=a.pearsons,this._data.startIndex__t=n,this._data.endIndex__t=o}}}},62473:(e,t,i)=>{"use strict";i.d(t,{SpreadRatioBase:()=>l,spreadRatioDefaults:()=>c,spreadRatioFilledAreas:()=>_,spreadRatioInputs:()=>h,spreadRatioPalettes:()=>p,spreadRatioPlots:()=>d,spreadRatioStyles:()=>u});var s=i(19625),r=i(94113),n=i(73772),o=i(19063);const a="rgba(0, 0, 0, 0)";class l{init(e,t){e.new_sym(t(1),n.Std.period(e)),this._source=t(0),this._scaleFactor1=1,this._scaleFactor2=1}main(e,t){const i=e.symbol.time,s=n.Std[this._source](e);e.select_sym(1);const r=n.Std[this._source](e),o=e.new_unlimited_var(r),a=e.new_unlimited_var(e.symbol.time);if(e.select_sym(0),isNaN(i))return null;let l=a.indexOf(i);-1!==l&&a.get(l)!==i&&(l=-1);const c=l<0?NaN:o.get(l),h=this._doCalculation(this._scaleFactor1,s,this._scaleFactor2,c);return[h,0,n.Std.ge(h,0),n.Std.lt(h,0)]}}const c={styles:{plot1:{linestyle:0,linewidth:2,plottype:r.LineStudyPlotStyle.Line,trackPrice:!1,transparency:35,color:"#800080",display:15},plotBaseline:{linestyle:0,linewidth:2,plottype:r.LineStudyPlotStyle.Line,trackPrice:!1,transparency:0,color:a,display:0}},palettes:{negativePalette:{colors:[{color:(0,o.applyAlpha)((0,s.getHexColorByName)("color-ripe-red-500"),.5),style:0,width:0},{color:a,style:0,width:0}]},positivePalette:{colors:[{color:(0,o.applyAlpha)((0,s.getHexColorByName)("color-minty-green-500"),.5),style:0,width:0},{color:a,style:0,width:0}]}},filledAreasStyle:{negativeFill:{color:"",transparency:0,visible:!0,fillType:void 0},positiveFill:{color:"",transparency:0,visible:!0,fillType:void 0}},precision:2,inputs:{source:"close",symbol2:""}},h=[{defval:"close",id:"source",name:"Source",options:["open","high","low","close","hl2","hlc3","ohlc4"],type:"text"},{id:"symbol2",name:"Symbol",type:"symbol",confirm:!0}],d=[{id:"plot1",type:"line"},{id:"plotBaseline",type:"line"},{id:"plotNegativeFill",type:"colorer",target:"negativeFill",palette:"negativePalette"},{id:"plotPositiveFill",type:"colorer",target:"positiveFill",palette:"positivePalette"}],u={ +plot1:{title:"Plot",histogramBase:0},plotBaseline:{title:"Baseline",isHidden:!0}},p={negativePalette:{valToIndex:{0:0,1:1},colors:[{name:"Color"}]},positivePalette:{valToIndex:{0:0,1:1},colors:[{name:"Color"}]}},_=[{id:"negativeFill",objAId:"plot1",objBId:"plotBaseline",type:"plot_plot",title:"Negative fill",palette:"negativePalette",fillToIntersection:!0},{id:"positiveFill",objAId:"plot1",objBId:"plotBaseline",type:"plot_plot",title:"Positive fill",palette:"positivePalette",fillToIntersection:!0}]},68563:(e,t,i)=>{"use strict";i.d(t,{spreadStudyItem:()=>n});var s=i(62473);class r extends s.SpreadRatioBase{_doCalculation(e,t,i,s){return e*t-i*s}}const n={name:"Spread",metainfo:{_metainfoVersion:15,defaults:s.spreadRatioDefaults,plots:s.spreadRatioPlots,styles:s.spreadRatioStyles,palettes:s.spreadRatioPalettes,filledAreas:s.spreadRatioFilledAreas,description:"Spread",shortDescription:"Spread",is_price_study:!1,inputs:s.spreadRatioInputs,id:"Spread@tv-basicstudies-1",format:{type:"price",precision:2}},constructor:r}},56209:(e,t,i)=>{"use strict";i.d(t,{VbPCheckHaveVolumeExpr:()=>r});var s=i(73772);class r{constructor(e){this._haveAnyVolume=!1,this._isDisabled=!1,this._seriesGetter=e}update(e,t){if(this._haveAnyVolume||this._isDisabled)return;const i=this._seriesGetter.volume().get(e);0!==i&&Number.isFinite(i)&&(this._haveAnyVolume=!0),t&&(this._haveAnyVolume||s.Std.error("The data vendor doesn't provide volume data for this symbol."),this._isDisabled=!0)}}},43789:(e,t,i)=>{"use strict";i.d(t,{VolumeByPriceExpr:()=>g});var s=i(50151),r=i(9859),n=i(85049),o=i(41978);class a extends o.GraphicsObj{constructor(e,t,i,r,n,o){super(e),(0,s.assert)(t({index:e.index,offset:e.offset,level:e.level})))}}}class _ extends o.GraphicsObj{constructor(e,t,i,s,r=!1,n=!1){super(e),this._endIndex=this._mixinJSONObject.createTimeField(i,"endIndex"),this._extendLeft=this._mixinJSONObject.createField(r,"extendLeft"),this._extendRight=this._mixinJSONObject.createField(n,"extendRight"),this._level=this._mixinJSONObject.createDoubleField(s,"level"),this._startIndex=this._mixinJSONObject.createTimeField(t,"startIndex")}isNaN(){return super.isNaN()||Number.isNaN(this._level.get())||this._startIndex.get()<0||this._endIndex.get()<0||this._startIndex.get()===this._endIndex.get()&&!this._extendLeft.get()&&!this._extendRight.get()}jsonName(){return"horizlines"}primitiveData(){return{id:this.id(),startIndex:this._startIndex.get(),endIndex:this._endIndex.get(),extendLeft:this._extendLeft.get(),extendRight:this._extendRight.get(),level:this._level.get()}}startIndex(){return this._startIndex.get()}setStartIndex(e){this._startIndex.set(e)&&this._processObjUpdate()}endIndex(){return this._endIndex.get()}setEndIndex(e){this._endIndex.set(e)&&this._processObjUpdate()}level(){return this._level.get()}setLevel(e){this._level.set(e)&&this._processObjUpdate()}isExtendLeft(){return this._extendLeft.get()}setExtendLeft(e){this._extendLeft.set(e)&&this._processObjUpdate()}extendLeft(){return this.isExtendLeft()}isExtendRight(){return this._extendRight.get()}setExtendRight(e){this._extendRight.set(e)&&this._processObjUpdate()}extendRight(){return this.isExtendRight()}}!function(e){e[e.AssertAccuracy=.05]="AssertAccuracy"}(l||(l={})),function(e){e[e.START=0]="START",e[e.END=1]="END"}(c||(c={}));class m{constructor(){this._map=new Map}get(e){const t=this._innerMap(e.start);return t&&t.get(e.end)}set(e,t){this._innerMap(e.start,!0).set(e.end,t)}clear(){this._map.clear()}size(){let e=0;return this._map.forEach((t=>e+=t.size)),e} +_innerMap(e,t){let i=this._map.get(e);return void 0===i&&t&&(i=new Map,this._map.set(e,i)),i}}class g{constructor(e,t,i,r,n,o,a,l,c,d,u,p,_,g,f){this._freezedBoxes=new h.GraphicsList,this._freezedHists=new h.GraphicsList,this._freezedPocs=new h.GraphicsList,this._freezedVAHists=new h.GraphicsList,this._currentHistsGr=new h.GraphicsList,this._currentVAHistsGr=new h.GraphicsList,this._currentHists=[],this._currentHistsMap=new m,this._currentBox=null,this._currentPoc=null,this._historyBarSet=[],this._prevRtBar=null,this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._leftBoxTime=null,this._rightBoxTime=null,this._actualRightBoxTime=null,this._needRecalc=!1,this._largestHistItem=null,this._rowsLayout=null,this._currentVAStart=0,this._currentVAEnd=0,this._previousVAStart=0,this._previousVAEnd=0,this._idsGenerator=null,(0,s.assert)(1===e||2===e),this._numOfSubHists=e,this._outHists=r,this._outBoxLines=n,this._outPocLines=o,this._extendPocLeftRight=a,this._outVAHists=l,this._vaVolumePercent=c,this._rowsLayoutSupplier=d,this._outHists.addStable(this._freezedHists),this._outVAHists.addStable(this._freezedVAHists),this._maxHHistItems=u,this._layoutIsAutoselected=g,this._leftBoxTimeMutable=p,this._rightBoxTimeMutable=_,this._actualRightBoxTime=null!=f?f:_,this._ctx=t,this._seriesGetter=i}update(e){this._supplyRowsLayout(this._ctx),null===this._currentBox&&this._initCurrentBox(),null===this._currentPoc&&this._initCurrentPoc();const t=this._timeScale().get(e);this._leftBoxTime=this._leftBoxTimeMutable,this._rightBoxTime=this._rightBoxTimeMutable,this._ctx.symbol.isLastBar&&!Number.isNaN(this._rightBoxTime)&&(this._rightBoxTime=Math.min(t+n.Interval.parse(this._ctx.symbol.interval+this._ctx.symbol.resolution).inMilliseconds(t)-1,this._rightBoxTime));const i=d.Std.greaterOrEqual(this._seriesClose().get(e),this._seriesOpen().get(e)),s={high:this._seriesHigh().get(e),low:this._seriesLow().get(e),volume:this._seriesVol().get(e),isUp:i,time:t};this._updateCurrentHistogram(s),this._currentHists.length>0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc(),this._seriesGetter.developingPoc().set(this._currentPoc.level()),this._updateValueArea(),this._vaVolumePercent>0&&(this._seriesGetter.developingVAHigh().set(this._currentHists[this._currentVAEnd].priceHigh()),this._seriesGetter.developingVALow().set(this._currentHists[this._currentVAStart].priceLow()))),this._updateCurrentBox(),this._rebuildOutData()}setIdsGeneratorProxy(e){this._idsGenerator=e}nextGraphicsObjId(){return(0,s.ensureNotNull)(this._idsGenerator).nextGraphicsObjId()}pushEraseObjCmd(e,t){(0,s.ensureNotNull)(this._idsGenerator).pushEraseObjCmd(e,t)}popEraseCmds(){return(0,s.ensureNotNull)(this._idsGenerator).popEraseCmds()}_timeScale(){return this._seriesGetter.time()}_seriesLow(){return this._seriesGetter.low()}_seriesHigh(){return this._seriesGetter.high()}_seriesVol(){return this._seriesGetter.volume()}_seriesOpen(){return this._seriesGetter.open()}_seriesClose(){return this._seriesGetter.close()} +_freezeCurrentHistogramAndCleanup(){null!==this._currentBox&&this._freezedBoxes.add(this._currentBox),d.Std.greater(this._getVolume(this._currentHists),0)&&(this._freezedHists.addAll(this._currentHistsGr),this._freezedVAHists.addAll(this._currentVAHistsGr),null!==this._currentPoc&&this._freezedPocs.add(this._currentPoc)),this._currentHists=[],this._currentHistsGr.clear(),this._currentHistsMap.clear(),this._initCurrentBox(),this._initCurrentPoc(),this._currentVAHistsGr.clear(),this._historyBarSet=[],this._minPrice=Number.POSITIVE_INFINITY,this._maxPrice=Number.NEGATIVE_INFINITY,this._prevRtBar=null,this._leftBoxTime=null,this._rightBoxTime=null}_supplyRowsLayout(e){null===this._rowsLayout&&e.symbol.isFirstBar&&e.symbol.isNewBar&&(this._rowsLayout=this._rowsLayoutSupplier())}_updateCurrentHistogram(e){if(this._needRecalc=!1,d.Std.greater(this._minPrice,e.low)&&(this._minPrice=e.low,this._needRecalc=!0),d.Std.less(this._maxPrice,e.high)&&(this._maxPrice=e.high,this._needRecalc=!0),this._ctx.symbol.isBarClosed&&this._historyBarSet.length>0){const t=this._historyBarSet[this._historyBarSet.length-1];t.time===e.time&&(this._prevRtBar=t,this._historyBarSet.pop())}this._needRecalc&&0===(0,s.ensureNotNull)(this._rowsLayout).type()?(this._recalculateCurrentResultsOnHistoryBarSet(),this._applyUpdateToCurrentResults(e,!1)):this._applyUpdateToCurrentResults(e,!0),this._ctx.symbol.isBarClosed?((0,s.assert)(null===this._prevRtBar||e.time===this._prevRtBar.time),this._historyBarSet.push(e),this._prevRtBar=null):this._prevRtBar=e}_getMidLevel(e){return(e.priceHigh()+e.priceLow())/2}_getMidLevelFromList(e){return e.length%2==0?e[e.length/2].priceLow():this._getMidLevel(e[Math.floor(e.length/2)])}_getLargestHistItem(){let e=[],t=this._currentHists[0];for(const i of this._currentHists)d.Std.greater(i.ratesSum(),t.ratesSum())?(t=i,e=[t]):d.Std.equal(i.ratesSum(),t.ratesSum())&&e.push(i);if(e.length>1){const i=this._getMidLevelFromList(this._currentHists);t=e[e.length-1];for(let s=e.length-2;s>=0;s--){const r=e[s];d.Std.lessOrEqual(Math.abs(this._getMidLevel(r)-i),Math.abs(this._getMidLevel(t)-i))&&(t=r)}}return t}_initCurrentPoc(){this._currentPoc=new _(this,0,0,0)}_updateCurrentPoc(){const e=(0,s.ensureNotNull)(this._currentPoc);e.setStartIndex((0,s.ensureNotNull)(this._leftBoxTime)),e.setEndIndex((0,s.ensureNotNull)(this._actualRightBoxTime)),e.setExtendLeft(this._extendPocLeftRight),e.setExtendRight(this._extendPocLeftRight);const t=this._getMidLevel((0,s.ensureNotNull)(this._largestHistItem));e.setLevel(t)}_getVolume(e){let t=0;for(const i of e)t+=i.ratesSum();return t}_getPocHistItemIndex(){for(let e=0;e=0,`ERROR - PocHistItemIndex == ${e}`),this._currentVAStart=e-1,this._currentVAEnd=e+1;const t=this._getVolume(this._currentHists)*this._vaVolumePercent*.01;let i=this._currentHists[e].ratesSum(),r=0,n=null;for(;d.Std.lessOrEqual(i+r,t)&&(i+=r, +0===n?--this._currentVAStart:1===n&&++this._currentVAEnd,-1!==this._currentVAStart||this._currentVAEnd!==this._currentHists.length);){let t,i;if(this._currentVAStart>-1)if(t=this._currentHists[this._currentVAStart].ratesSum(),this._currentVAEndthis._getMidLevel(this._currentHists[this._currentVAStart])&&e.priceLow()0&&(e=this._currentHists[0].priceLow(),t=this._currentHists[this._currentHists.length-1].priceHigh());const i=[],r=(0,s.ensureNotNull)(this._leftBoxTime),n=(0,s.ensureNotNull)(this._actualRightBoxTime);i.push(new u(r,e)),i.push(new u(r,t)),i.push(new u(n,t)),i.push(new u(n,e)),(0,s.ensureNotNull)(this._currentBox).setPoints(i)}_recalculateCurrentResultsOnHistoryBarSet(){for(let e=0;e0&&(this._largestHistItem=this._getLargestHistItem(),this._updateCurrentPoc()),this._updateCurrentBox()}_applyUpdateToCurrentResults(e,t){t&&null!==this._prevRtBar&&this._addHistoryBarToHistogram(this._prevRtBar,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,-1),this._addHistoryBarToHistogram(e,this._historyBarSet.length-1,this._currentHists,this._currentHistsMap,1), +this._updateLastBarTimeInHistogram(this._currentHists)}_addHistoryBarToHistogram(e,t,i,r,n){(0,s.assert)(-1===n||1===n,"Please set sign argument either +1 or -1");const o=e.low,a=e.high,l=isNaN(e.volume)?0:e.volume,c=e.isUp,h=(0,s.ensureNotNull)(this._rowsLayout);h.init(this._ctx.symbol.minTick,this._minPrice,this._maxPrice,o,a);const u=h.rowWidth();if(!d.Std.greater(u,0))return;h.calculate();const p=h.getIndexLowVbP(),_=h.getIndexHighVbP(),m=h.getStartPrice();if(p===_){const e=p*u+m,t=(p+1)*u+m;this._updateResult({start:e,end:t},n*l,c,i,r)}else{let e=0;for(let t=p;t<=_;t++){const s=t*u+m,h=(t+1)*u+m,d=this._rowCoeff(s,h,o,a),p=d*l;e+=d,this._updateResult({start:s,end:h},n*p,c,i,r)}(0,s.assert)(d.Std.equal(e,1,.05),`totalCoeff not equal 1! totalConf = ${e}`)}}_updateResult(e,t,i,r,n){const o=this._createRates(i,t);(0,s.assert)(null!==this._leftBoxTime,"leftBoxTime is not set (equals null)"),(0,s.assert)(null!==this._rightBoxTime,"rightBoxTime is not set (equals null)");const l=(0,s.ensureNotNull)(this._leftBoxTime),c=(0,s.ensureNotNull)(this._actualRightBoxTime);let h=n.get(e);if(void 0===h)h=new a(this,e.start,e.end,o,l,c),n.set(e,h),this._verifyHistogramSizeIsNotTooLarge(n.size()),this._currentHistsGr.add(h),g._addInOrder(h,r,0,r.length,((e,t)=>{let i=d.Std.compare(e.firstBarTime(),t.firstBarTime());return 0!==i?i:(i=d.Std.compare(e.priceLow(),t.priceLow()),0!==i?i:d.Std.compare(e.priceHigh(),t.priceHigh()))}));else{const e=[];for(let t=0;t0?g._addInOrder(e,t,o+1,s,n):t.splice(o,0,e)}}},7370:(e,t,i)=>{"use strict";i.d(t,{VolumeProfileBase:()=>_,maxHHistItems:()=>u,numOfSubHists:()=>p});var s,r=i(56570),n=i(85049);!function(e){e[e.NumberOfRows=0]="NumberOfRows",e[e.TicksPerRow=1]="TicksPerRow"}(s||(s={}));class o{constructor(e,t){this._minTick=NaN,this._minPrice=NaN,this._maxPrice=NaN,this._low=NaN,this._high=NaN,this._startPrice=NaN,this._indexLowVbP=NaN,this._indexHighVbP=NaN,this._rowSize=e,this._type=t}init(e,t,i,s,r){this._minTick=e,this._minPrice=t,this._maxPrice=i,this._low=s,this._high=r}getStartPrice(){return this._startPrice}setStartPrice(e){this._startPrice=e}getIndexLowVbP(){return this._indexLowVbP}setIndexLowVbP(e){this._indexLowVbP=e}getIndexHighVbP(){return this._indexHighVbP}setIndexHighVbP(e){this._indexHighVbP=e}type(){return this._type}}class a extends o{constructor(e){super(e,0)}calculate(){this.setStartPrice(this._minPrice);const e=this.rowWidth();let t=Math.floor((this._low-this._minPrice)/e),i=Math.ceil((this._high-this._minPrice)/e)-1;t=Math.max(t,0),i=Math.max(i,0),i=Math.min(i,this._rowSize-1),t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return Math.max((this._maxPrice-this._minPrice)/this._rowSize,this._minTick)}}class l extends o{constructor(e){super(e,1)}calculate(){this.setStartPrice(0);const e=this.rowWidth();let t=Math.floor(this._low/e);const i=Math.ceil(this._high/e)-1;t=Math.min(t,i),this.setIndexLowVbP(t),this.setIndexHighVbP(i)}rowWidth(){return this._minTick*this._rowSize}}var c,h=i(73772),d=i(39692);function u(){return 6e3}function p(e){switch(e){case"Delta":case"Up/Down":return 2;case"Total":return 1;default:h.Std.error(`Invalid study argument value: ${e}`)}}!function(e){e.VolumeUpDown="Up/Down",e.VolumeTotal="Total",e.VolumeDelta="Delta",e.NumberOfRows="Number Of Rows",e.TicksPerRow="Ticks Per Row"}(c||(c={}));class _{findBasicResolutionForFromTo(e,t,i,s){const o=(0,d.getVolumeProfileResolutionForPeriod)(e.value(),t,i,s),a=n.Interval.parse(o);return r.enabled("charting_library_debug_mode")&&console.log(`${(new Date).toISOString()} Selected resolution ${a.value()} for (${e.value()}, ${t}, ${i})`),a}verifyRowSizeInput(e,t){"Number Of Rows"===t&&e>6e3&&h.Std.error('Histogram is too large, please reduce "Row Size" input.')}_getRowsLayout(e,t){return"Number Of Rows"===e?new a(t):new l(t)}}},92245:(e,t,i)=>{"use strict";i.d(t,{volumeProfileFixedRangeBSStudyItem:()=>w,volumeProfileFixedRangeVbPStudyItem:()=>b});var s=i(50151),r=i(7370),n=i(94113),o=i(9233),a=i(85049),l=i(40878),c=i(45382),h=i(32569),d=i(61923),u=i(62628),p=i(56209),_=i(85904),m=i(43789);class g extends m.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,c,h,d,u){super(e,t,i,n,o,a,!1,l,c,(()=>h),d,s,r,!1,u),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e) +;return this._firstBarTime<=t&&t=this._firstBarTime){const e=this._developingPocSeries.getLeftOrEqual(n),t=this._developingVAHighSeries.getLeftOrEqual(n),i=this._developingVALowSeries.getLeftOrEqual(n);r.data.push([e,t,i])}else r.data.push([NaN,NaN,NaN])}return r}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}function S(e){return{constructor:y,name:e.description,metainfo:{_metainfoVersion:51,shortDescription:"VPFR",format:{type:"volume"},is_price_study:!0,defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.LeftToRight,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:o.HHistDirection.LeftToRight,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:_.LineStyle.Solid,visible:!0,width:2}},polygons:{histBoxBg:{color:"#37a6ef",transparency:94}}},inputs:{first_bar_time:0,last_bar_time:0,rows:24,rowsLayout:"Number Of Rows",subscribeRealtime:!0,vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:_.LineStyle.Solid,linewidth:1,plottype:n.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,display:0},developingVAHigh:{color:"#0000ff",linestyle:_.LineStyle.Solid,linewidth:1,plottype:n.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,display:0},developingVALow:{color:"#0000ff",linestyle:_.LineStyle.Solid,linewidth:1,plottype:n.LineStudyPlotStyle.StepLine,trackPrice:!1,transparency:0,display:0}}},graphics:{hhists:{histBars2:{location:o.HHistLocation.Absolute,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:o.HHistLocation.Absolute,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}},polygons:{histBoxBg:{mouseTouchable:!1,name:"Histogram Box",showBorder:!1}}},inputs:[{defval:"Number Of Rows",id:"rowsLayout", +name:"Rows Layout",options:["Number Of Rows","Ticks Per Row"],type:"text"},{defval:24,id:"rows",max:1e6,min:1,name:"Row Size",type:"integer"},{defval:"Up/Down",id:"volume",name:"Volume",options:["Up/Down","Total","Delta"],type:"text"},{defval:0,id:"first_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"First Bar Time",type:"time"},{defval:0,id:"last_bar_time",isHidden:!0,max:253370764800,min:-253370764800,name:"Last Bar Time",type:"time"},{defval:70,id:"vaVolume",max:100,min:0,name:"Value Area Volume",type:"integer"},{defval:!0,id:"subscribeRealtime",isHidden:!0,name:"SubscribeRealtime",type:"bool"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],styles:{developingPoc:{histogramBase:0,title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}},...e}}}const b=S({id:"VbPFixed@tv-volumebyprice-57",description:"Volume Profile Fixed Range"}),w=S({id:"VbPFixed@tv-basicstudies-152",description:"Fixed Range",is_hidden_study:!0})},11694:(e,t,i)=>{"use strict";i.d(t,{VolumeProfileOutputSeries:()=>n});var s=i(50151),r=i(29981);class n{constructor(){this._histPos=-1,this._hist=new Float64Array(2e3),this._times=new Float64Array(2e3)}addHist(e){if(this._histPos>=0){const t=this._times[this._histPos];(0,s.assert)(t<=e,"History order violation"),this._histPos+=t===e?0:1}else this._histPos+=1;if(this._histPos===this._hist.length){const e=new Float64Array(2*this._hist.length);e.set(this._hist),this._hist=e;const t=new Float64Array(this._hist.length);t.set(this._times),this._times=t}this._hist[this._histPos]=NaN,this._times[this._histPos]=e}removeLastIfNaN(){Number.isNaN(this.get(0))&&(this._histPos-=1)}get(e){(0,s.assert)(0===e);const t=this._histPos-e;return this._hist[t]}getLeftOrEqual(e){const t=(0,r.upperbound)(this._times,e,((e,t)=>e{"use strict";i.d(t,{volumeProfileVisibleRangeStudyItem:()=>v});var s=i(50151),r=i(7370),n=i(9233),o=i(85049),a=i(40878),l=i(43789),c=i(61923);class h extends l.VolumeByPriceExpr{constructor(e,t,i,s,r,n,o,a,l,h,d){super(e,t,i,n,new c.GraphicsList,o,!0,a,l,(()=>h),d,s,r,!1),this._firstBarTime=s,this._lastBarTime=r}update(e){this._supplyRowsLayout(this._ctx),this.timeInRequestedRange(e)&&super.update(e)}timeInRequestedRange(e){const t=this._timeScale().get(e);return this._firstBarTime<=t&&t=this._firstBarTime){const e=this._developingPocSeries.getLeftOrEqual(n),t=this._developingVAHighSeries.getLeftOrEqual(n),i=this._developingVALowSeries.getLeftOrEqual(n);r.data.push([e,t,i])}else r.data.push([NaN,NaN,NaN])}return r}time(){return this._timeSeries}open(){return this._openSeries}high(){return this._highSeries}low(){return this._lowSeries}close(){return this._closeSeries}volume(){return this._volumeSeries}developingPoc(){return this._developingPocSeries}developingVAHigh(){return this._developingVAHighSeries}developingVALow(){return this._developingVALowSeries}}const v={constructor:f,name:"Volume Profile Visible Range",metainfo:{_metainfoVersion:51,id:"VbPVisible@tv-basicstudies-49",description:"Volume Profile Visible Range",shortDescription:"VPVR",format:{type:"volume"},is_price_study:!0,linkedToSeries:!0,palettes:{},inputs:[{id:"rowsLayout",name:"Rows Layout",defval:"Number Of Rows",options:["Number Of Rows","Ticks Per Row"],type:"text"},{id:"rows",name:"Row Size",defval:24,max:1e6,min:1,type:"integer"},{id:"volume",name:"Volume",defval:"Up/Down",options:["Up/Down","Total","Delta"],type:"text"},{id:"first_visible_bar_time",name:"First Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"last_visible_bar_time",name:"Last Visible Bar Time",defval:0,isHidden:!0,max:253370764800,min:-253370764800,type:"time"},{id:"vaVolume",name:"Value Area Volume",defval:70,max:100,min:0,type:"integer"}],plots:[{id:"developingPoc",type:"line"},{id:"developingVAHigh",type:"line"},{id:"developingVALow",type:"line"}],graphics:{hhists:{histBars2:{location:n.HHistLocation.Relative,title:"Volume Profile",titles:["Up Volume","Down Volume"]},histBarsVA:{location:n.HHistLocation.Relative,title:"Value Area",titles:["Value Area Up","Value Area Down"]}},horizlines:{pocLines:{name:"POC",showPrice:!0}}},defaults:{graphics:{hhists:{histBars2:{colors:["#1592e6","#fbc123"],direction:n.HHistDirection.RightToLeft,percentWidth:30,showValues:!1,transparencies:[76,76],valuesColor:"#424242",visible:!0},histBarsVA:{colors:["#1592e6","#fbc123"],direction:n.HHistDirection.RightToLeft,percentWidth:30,showValues:!1,transparencies:[30,30],valuesColor:"#424242",visible:!0}},horizlines:{pocLines:{color:"#ff0000",style:0,visible:!0,width:2}}},inputs:{first_visible_bar_time:0,last_visible_bar_time:0,rows:24,rowsLayout:"Number Of Rows",vaVolume:70,volume:"Up/Down"},styles:{developingPoc:{color:"#ff0000",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,display:0},developingVAHigh:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,display:0},developingVALow:{color:"#0000ff",linestyle:0,linewidth:1,plottype:9,trackPrice:!1,transparency:0,display:0}}},styles:{developingPoc:{histogramBase:0, title:"Developing Poc"},developingVAHigh:{histogramBase:0,title:"Developing VA High"},developingVALow:{histogramBase:0,title:"Developing VA Low"}}}}},20629:(e,t,i)=>{"use strict";i.d(t,{StudyEngine:()=>r});var s=i(60656);class r{constructor(e){this.runner=new s.ScriptRunner(e)}stop(){this.runner.stop()}isStarted(){return this.runner.isStarted}}},1452:(e,t,i)=>{"use strict";i.d(t,{StudyError:()=>s});class s extends Error{constructor(e){super(e),this.studyError=!0}}},32569:(e,t,i)=>{"use strict";var s;i.d(t,{EraseAll:()=>n,EraseObj:()=>r,GraphicsCmds:()=>o}),function(e){e.One="one",e.All="all"}(s||(s={}));class r{constructor(e,t){this.id=e,this.type=t}primitiveData(){return{action:"one",id:this.id,type:this.type}}}class n{primitiveData(){return{action:"all"}}}class o{constructor(){this.erase=[],this.create=null,this._modified=!1}primitiveData(e){if(this.isNaN())return null;const t={},i=this.create&&this.create.primitiveData(e);return null!==i&&(t.create=i),null!==this.erase&&this.erase.length>0&&(t.erase=this.erase.map((e=>e.primitiveData()))),void 0===t.create&&void 0===t.erase?null:t}setCreate(e){this.create=e,this.create.forEachList((e=>e.setOwner(this)))}isNaN(){return(null===this.erase||0===this.erase.length)&&null===this.create}isModified(){return this._modified}setModified(e){this._modified=e}dirty(){this._modified=!0}setOwner(e){throw new Error("Unsupported")}}},40878:(e,t,i)=>{"use strict";i.d(t,{GraphicsListColl:()=>s});class s{constructor(){this._stable=[],this._variable=null,this._owner=null}addStable(e){e.setOwner(this),this._stable.push(e)}setVariable(e){this._variable=e,null!==this._variable&&this._variable.setOwner(this)}primitivesData(e){const t=[];return this._forEach((i=>t.push(...i.primitivesData(e)))),t}deleteErasedItems(){this._forEach((e=>e.deleteErasedItems()))}markPostedItems(){this._forEach((e=>e.markPostedItems()))}isNaN(){return this._all((e=>e.isNaN()))}dirty(){null!==this._owner&&this._owner.dirty()}setOwner(e){this._owner=e}_forEach(e){for(const t of this._stable)e(t);null!==this._variable&&e(this._variable)}_all(e){for(const t of this._stable)if(!e(t))return!1;return null===this._variable||e(this._variable)}}},61923:(e,t,i)=>{"use strict";i.d(t,{GraphicsList:()=>n});var s=i(41978),r=i(67908);class n{constructor(){this._items=[],this._owner=null}primitivesData(e){const t=[];for(const i of this._items)e.isIgnoredObj(i)||t.push(i.primitiveData());return t}get(e){return this._items[e]}set(e,t){return this.dirty(),t.setOwner(this),this._items[e]=t,t}addAtIndex(e,t){this.dirty(),t.setOwner(this),this._items[e]=t}clear(){this._unsetOwner(this._items),this._items=[],this.dirty()}addAllFromNumber(e,t){this.setOwner(t),this._items.splice(e,0,...t._items);return this._setCachedDataValid(!1),true}addAll(e){this.setOwner(e),this._items.push(...e._items);return this._setCachedDataValid(!1),true}remove(e){const t=this._items[e];return this._items.splice(e,1),t.unsetOwner(this),this.dirty(),t}getItems(){return this._items}size(){return this._items.length}add(e){e.setOwner(this),this._items.push(e) @@ -100,50 +100,50 @@ shortDescription:"Linear Regression Slope",plots:[{id:"plot_0",type:"line"}],def hideWhenPlotsHidden:["plot_0","plot_2"]},{id:"in_1",name:"Length EMA",defval:10,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_1","plot_2"]}],id:"MA with EMA Cross@tv-basicstudies-1",scriptIdPart:"",name:"MA with EMA Cross",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e?t:r.na()},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.close(this._context),o=this._context.new_var(n),a=r.sma(o,i,this._context),l=this._context.new_var(n),c=r.ema(l,s,this._context),h=a,d=c,u=r.cross(a,c,this._context);return[h,d,this.f_0(u,a)]}}},{name:"Mass Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Mass Index",shortDescription:"Mass Index",is_price_study:!1,inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Mass Index@tv-basicstudies-1",scriptIdPart:"",name:"Mass Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this.f_0(r.high(this._context),r.low(this._context)),n=this._context.new_var(s),o=r.ema(n,9,this._context),a=this._context.new_var(o),l=r.ema(a,9,this._context),c=this.f_1(o,l),h=this._context.new_var(c);return[r.sum(h,i,this._context)]}}},{name:"McGinley Dynamic",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"McGinley Dynamic",shortDescription:"McGinley Dynamic",is_price_study:!0,is_hidden_study:!1,id:"mcginley_dynamic@tv-basicstudies-1",inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:1e12}],scriptIdPart:"",name:"McGinley Dynamic",format:{type:"inherit"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=r.close(this._context),i=this._context.new_var(t),s=r.ema(i,e,this._context),n=this._context.new_var(),o=n.get(1)+(t-n.get(1))/(e*r.pow(t/n.get(1),4));return n.set(r.na(n.get(1))?s:r.nz(o,s)),[n.get(0)]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Median Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Median Price@tv-basicstudies-1",scriptIdPart:"",name:"Median Price",description:"Median Price",shortDescription:"Median Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){ this.main=function(e,t){return this._context=e,this._input=t,[r.hl2(this._context)]}}},{name:"Momentum",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:10,in_1:"close"}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Mom",histogramBase:0,joinPoints:!1,isHidden:!1,zorder:0}},description:"Momentum",shortDescription:"Mom",is_price_study:!1,bands:[{id:"hline_0",name:"Zero",zorder:-1}],inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:2e3},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"Momentum@tv-basicstudies-1",scriptIdPart:"",name:"Momentum",format:{type:"inherit"},usePlotsZOrder:!0},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r[this._input(1)](this._context),n=this._context.new_var(s).get(i);return[n?s-n:null]}}},{name:"Money Flow Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,zorder:1}},description:"Money Flow Index",shortDescription:"MFI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit",zorder:-1.1},{id:"hline_1",name:"LowerLimit",zorder:-1.11}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background",zorder:-2}],inputs:[{id:"in_0",name:"Length",defval:14,type:"integer",min:1,max:2e3}],id:"Money Flow@tv-basicstudies-1",scriptIdPart:"",name:"Money Flow Index",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){return e*(r.le(t,0)?0:i)},this.f_1=function(e,t,i){return e*(r.ge(t,0)?0:i)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.hlc3(this._context),n=this._context.new_var(s),o=r.change(n),a=this.f_0(r.volume(this._context),o,s),l=this._context.new_var(a),c=r.sum(l,i,this._context),h=this.f_1(r.volume(this._context),o,s),d=this._context.new_var(h),u=r.sum(d,i,this._context);return[r.rsi(c,u)]}}},{name:"Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{symbol:"",length:9,source:"close",offset:0,smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line" }],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Moving Average",shortDescription:"MA",is_price_study:!0,inputs:[{id:"symbol",name:"Other Symbol",defval:"",type:"symbol",optional:!0,isHidden:!1},{id:"length",name:"Length",defval:9,type:"integer",min:1,max:1e4},{id:"source",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"offset",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"Moving Average@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average",format:{type:"inherit"},symbolSource:{type:"symbolInputSymbolSource",inputId:"symbol"}},constructor:function(){this.init=function(e,t){this._context=e,""!==t(0)&&this._context.new_sym(t(0),r.period(this._context))},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(this._context.symbol.time),s=r[this._input(2)](this._context),n=this._input(1),o=this._input(3),a=this._input(4),l=this._input(5);if(this._context.setMinimumAdditionalDepth(n+l),""!==this._input(0)){this._context.select_sym(1);var c=this._context.new_var(this._context.symbol.time),h=r[this._input(2)](this._context);s=this._context.new_var(h).adopt(c,i,1),this._context.select_sym(0)}var d,u=this._context.new_var(s),p=r.sma(u,n,this._context),_=this._context.new_var(p);return"EMA"===a?d=r.ema(_,l,this._context):"WMA"===a?d=r.wma(_,l,this._context):"SMA"===a&&(d=r.sma(_,l,this._context)),[{value:p,offset:o},{value:d,offset:o}]}}},{name:"Moving Average Channel",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:20,in_1:20,in_2:0,in_3:0}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"Upper",histogramBase:0,joinPoints:!1},plot_1:{title:"Lower",histogramBase:0,joinPoints:!1}},filledAreas:[{id:"fill_0",objAId:"plot_0",objBId:"plot_1",type:"plot_plot",title:"Plots Background"}],description:"Moving Average Channel",shortDescription:"MAC",is_price_study:!0,inputs:[{id:"in_0",name:"Upper Length",defval:20,type:"integer",min:1,max:1e4},{id:"in_1",name:"Lower Length",defval:20,type:"integer",min:1,max:1e4},{id:"in_2",name:"Upper Offset",defval:0,type:"integer",min:-1e4,max:1e4},{id:"in_3",name:"Lower Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Channel@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Channel",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e, -this._input=t;var i=r.high(this._context),s=r.low(this._context),n=this._input(0),o=this._input(1),a=this._input(2),l=this._input(3),c=this._context.new_var(i),h=this._context.new_var(s);return[{value:r.sma(c,n,this._context),offset:a},{value:r.sma(h,o,this._context),offset:l}]}}},{name:"Moving Average Convergence/Divergence",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:0,visible:!0,color:c},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},palettes:{palette_0:{colors:{0:{color:d,width:1,style:0},1:{color:h,width:1,style:0},2:{color:n,width:1,style:0},3:{color:"#FF5252",width:1,style:0}}}},inputs:{in_0:12,in_1:26,in_3:"close",in_2:9}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"},{id:"plot_3",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Histogram",histogramBase:0,joinPoints:!1},plot_1:{title:"MACD",histogramBase:0,joinPoints:!1},plot_2:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"MACD",shortDescription:"MACD",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"},2:{name:"Color 2"},3:{name:"Color 3"}}}},inputs:[{id:"in_0",name:"fastLength",defval:12,type:"integer",min:1,max:2e3},{id:"in_1",name:"slowLength",defval:26,type:"integer",min:1,max:2e3},{id:"in_3",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"signalLength",defval:9,type:"integer",min:1,max:50}],id:"Moving Average Convergence/Divergence@tv-basicstudies-1",scriptIdPart:"",name:"MACD",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e){var t=e>0?1:3,i=r.change(this._context.new_var(e));return t-(r.le(i,0)?0:1)},this.main=function(e,t){this._context=e,this._input=t;var i=r[this._input(2)](this._context),s=this._input(0),n=this._input(1),o=this._input(3);this._context.setMinimumAdditionalDepth(Math.max(s,n)+o);var a=this._context.new_var(i),l=r.ema(a,s,this._context),c=this._context.new_var(i),h=r.ema(c,n,this._context),d=this.f_0(l,h),u=this._context.new_var(d),p=r.ema(u,o,this._context),_=this.f_0(d,p);return[_,d,p,this.f_1(_)]}}},{name:"Moving Average Exponential",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{length:9,source:"close",offset:0,smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Moving Average Exponential", -shortDescription:"EMA",is_price_study:!0,inputs:[{id:"length",name:"Length",defval:9,type:"integer",min:1,max:1e4},{id:"source",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"offset",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"Moving Average Exponential@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Exponential",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._input(3),a=this._input(4);this._context.setMinimumAdditionalDepth(s+a);var l,c=this._context.new_var(i),h=r.ema(c,s,this._context),d=this._context.new_var(h);return"EMA"===o?l=r.ema(d,a,this._context):"WMA"===o?l=r.wma(d,a,this._context):"SMA"===o&&(l=r.sma(d,a,this._context)),[{value:h,offset:n},{value:l,offset:n}]}}},{name:"Moving Average Weighted",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Weighted",shortDescription:"WMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Weighted@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Weighted",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._context.new_var(i);return[{value:r.wma(o,s,this._context),offset:n}]}}},{name:"Moving Average Double",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Moving Average Double@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Double",description:"Moving Average Double",shortDescription:"Moving Average Double",is_price_study:!0,plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{firstPeriods:14,secondPeriods:21,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"method", -name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n=this._context.new_var(r.close(this._context));return"Exponential"===this._input(2)?(i=r.ema(n,this._input(0),this._context),s=r.ema(n,this._input(1),this._context)):"Weighted"===this._input(2)?(i=r.wma(n,this._input(0),this._context),s=r.wma(n,this._input(1),this._context)):(i=r.sma(n,this._input(0),this._context),s=r.sma(n,this._input(1),this._context)),[i,s]}}},{name:"Moving Average Triple",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Triple@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Triple",description:"Moving Average Triple",shortDescription:"Moving Average Triple",plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#2196F3"},plot_2:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#26C6DA"}},inputs:{firstPeriods:14,secondPeriods:21,thirdPeriods:35,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"},plot_2:{title:"Plot 3"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4,hideWhenPlotsHidden:["plot_0"]},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4,hideWhenPlotsHidden:["plot_1"]},{id:"thirdPeriods",name:"3rd Period",type:"integer",defval:35,min:1,max:1e4,hideWhenPlotsHidden:["plot_2"]},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n,o=this._context.new_var(r.close(this._context));return"Exponential"===this._input(3)?(i=r.ema(o,this._input(0),this._context),s=r.ema(o,this._input(1),this._context),n=r.ema(o,this._input(2),this._context)):"Weighted"===this._input(3)?(i=r.wma(o,this._input(0),this._context),s=r.wma(o,this._input(1),this._context),n=r.wma(o,this._input(2),this._context)):(i=r.sma(o,this._input(0),this._context),s=r.sma(o,this._input(1),this._context),n=r.sma(o,this._input(2),this._context)),[i,s,n]}}},{name:"Moving Average Adaptive",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Adaptive@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Adaptive",description:"Moving Average Adaptive",shortDescription:"Moving Average Adaptive",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#AB47BC"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:2,max:1e4}],format:{type:"inherit"} -},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0)},this.ama=function(e,t){var i=this.periods,s=this._context.new_var(),n=e.get(),o=r.stdev(t,i,this._context),a=r.log(n/e.get(i))/(o*Math.sqrt(i)),l=.1*Math.abs(a),c=(n-s.get(1))*l+s.get(1);return s.set(isNaN(c)?n:c),c},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.close(this._context)),s=this._context.new_var(r.log(i.get()/i.get(1)));return[this.ama(i,s)]}}},{name:"Moving Average Hamming",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Hamming@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Hamming",description:"Moving Average Hamming",shortDescription:"Moving Average Hamming",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#4CAF50"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0);for(var i=[],s=0,r=1;r<=this.periods;++r){var n=Math.sin((1+r)/this.periods*Math.PI/2);i.unshift(n),s+=n}this.hmaFactors=i,this.hmaFactorsSum=s},this.hma=function(e){for(var t=this.periods,i=0,s=0;sthis._context.new_var(s).get(1)?1:0,[100*r.sma(this._context.new_var(i),this.rollingPeriod,this._context)]}}},{name:"Net Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Net Volume",shortDescription:"Net Volume",is_price_study:!1,inputs:[],id:"Net Volume@tv-basicstudies-1",scriptIdPart:"",name:"Net Volume",format:{type:"volume"}},constructor:function(){ -this.f_0=function(e,t,i){return r.gt(e,0)?t:r.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._context.new_var(i),n=r.change(s);return[this.f_0(n,r.volume(this._context),n)]}}},{name:"On Balance Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"On Balance Volume",shortDescription:"OBV",is_price_study:!1,inputs:[{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"On Balance Volume@tv-basicstudies-1",scriptIdPart:"",name:"On Balance Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return r.gt(e,0)?t:r.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.close(this._context),o=this._context.new_var(n),a=r.change(o),l=this.f_0(a,r.volume(this._context),a),c=r.cum(l,this._context);this._context.setMinimumAdditionalDepth(s);var h,d=this._context.new_var(c);return"EMA"===i?h=r.ema(d,s,this._context):"WMA"===i?h=r.wma(d,s,this._context):"SMA"===i&&(h=r.sma(d,s,this._context)),[c,h]}}},{name:"Parabolic SAR",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:.02,in_1:.02,in_2:.2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Parabolic SAR",shortDescription:"SAR",is_price_study:!0,inputs:[{id:"in_0",name:"start",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_1",name:"increment",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"maximum",defval:.2,type:"float",min:-1e12,max:1e12}],id:"Parabolic SAR@tv-basicstudies-1",scriptIdPart:"",name:"Parabolic SAR",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);return[r.sar(i,s,n,this._context)]}}},{name:"Price Channel",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}}, -inputs:{in_0:20,in_1:0}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Highprice Line",histogramBase:0,joinPoints:!1},plot_1:{title:"Lowprice Line",histogramBase:0,joinPoints:!1},plot_2:{title:"Centerprice Line",histogramBase:0,joinPoints:!1}},description:"Price Channel",shortDescription:"PC",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Offset Length",defval:0,type:"integer",min:1,max:2e3}],id:"Price Channel@tv-basicstudies-1",scriptIdPart:"",name:"Price Channel",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.high(this._context),s=this._context.new_var(i),n=r.low(this._context),o=this._context.new_var(n),a=this._input(0),l=this._input(1),c=r.highest(s,a,this._context),h=r.lowest(o,a,this._context);return[{value:c,offset:l},{value:h,offset:l},{value:r.avg(c,h),offset:l}]}}},{name:"Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:u}},inputs:{in_0:10,in_1:21}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Price Oscillator",shortDescription:"PPO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:10,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:21,type:"integer",min:1,max:2e3}],id:"Price Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t){return(e-t)/t*100},this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.sma(o,s,this._context),l=this._context.new_var(i),c=r.sma(l,n,this._context);return[this.f_0(a,c)]}}},{name:"Price Volume Trend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"PVT",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Price Volume Trend",shortDescription:"PVT",is_price_study:!1,is_hidden_study:!1,id:"price_volume_trend@tv-basicstudies-1",inputs:[],scriptIdPart:"",name:"Price Volume Trend",format:{type:"volume"}},constructor:function(){this.f_0=function(){var e=this._context.new_var(r.close(this._context));return[r.cum(r.change(e)/e.get(1)*r.volume(this._context),this._context)]},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0()[0]]}}},{name:"Rate Of Change",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:9}},plots:[{id:"plot_0", -type:"line"}],styles:{plot_0:{title:"ROC",histogramBase:0,joinPoints:!1,isHidden:!1,zorder:1}},description:"Rate Of Change",shortDescription:"ROC",is_price_study:!1,bands:[{id:"hline_0",name:"Zero Line",isHidden:!1,zorder:-1}],inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e12}],id:"rate_of_change@tv-basicstudies-1",scriptIdPart:"",name:"Rate Of Change",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.close(this._context)),s=this._input(0);return[100*(i.get(0)-i.get(s))/i.get(s)]}}},{name:"Relative Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:70,zorder:-1.1},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:50,zorder:-1.11},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:30,zorder:-1.111}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{length:14,smoothingLine:"SMA",smoothingLength:14}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,zorder:1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1,zorder:2}},description:"Relative Strength Index",shortDescription:"RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit",zorder:-1.1},{id:"hline_2",name:"MiddleLimit",zorder:-1.11},{id:"hline_1",name:"LowerLimit",zorder:-1.111}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background",zorder:-2}],inputs:[{id:"length",name:"Length",defval:14,type:"integer",min:1,max:2e3},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:14,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"Relative Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Strength Index",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.f_0=function(e){return r.max(e,0)},this.f_1=function(e){return-r.min(e,0)},this.f_2=function(e,t){return r.eq(e,0)?100:r.eq(t,0)?0:100-100/(1+t/e)},this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2);this._context.setMinimumAdditionalDepth(s+o);var a,l=this._context.new_var(i),c=r.change(l),h=this.f_0(c),d=this._context.new_var(h),u=r.rma(d,s,this._context),p=this.f_1(c),_=this._context.new_var(p),m=r.rma(_,s,this._context),g=this.f_2(m,u),f=this._context.new_var(g);return"EMA"===n?a=r.ema(f,o,this._context):"WMA"===n?a=r.wma(f,o,this._context):"SMA"===n&&(a=r.sma(f,o,this._context)),[{value:g},{value:a}]}}},{ -name:"Relative Vigor Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:u},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"RVGI",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"Relative Vigor Index",shortDescription:"RVGI",is_price_study:!1,inputs:[{id:"in_0",name:"Length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Vigor Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Vigor Index",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e,t){return e/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this.f_0(r.close(this._context),r.open(this._context)),n=this._context.new_var(s),o=r.swma(n,this._context),a=this._context.new_var(o),l=r.sum(a,i,this._context),c=this.f_0(r.high(this._context),r.low(this._context)),h=this._context.new_var(c),d=r.swma(h,this._context),u=this._context.new_var(d),p=r.sum(u,i,this._context),_=this.f_1(l,p),m=this._context.new_var(_);return[_,r.swma(m,this._context)]}}},{name:"Relative Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,zorder:1}},description:"Relative Volatility Index",shortDescription:"RVI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit",zorder:-1.1},{id:"hline_1",name:"LowerLimit",zorder:-1.11}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background",zorder:-2}],inputs:[{id:"in_0",name:"length",defval:10,type:"integer",min:1,max:2e3}],id:"Relative Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Relative Volatility Index",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.f_0=function(e,t){return r.le(e,0)?0:t},this.f_1=function(e,t){return r.gt(e,0)?0:t},this.f_2=function(e,t){return e/(e+t)*100},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);this._context.setMinimumAdditionalDepth(i+12);var s=r.close(this._context),n=this._context.new_var(s),o=r.stdev(n,i,this._context),a=this._context.new_var(s),l=r.change(a),c=this.f_0(l,o),h=this._context.new_var(c),d=r.ema(h,14,this._context),u=this.f_1(l,o),p=this._context.new_var(u),_=r.ema(p,14,this._context);return[this.f_2(d,_)]}}},{name:"SMI Ergodic Indicator/Oscillator",metainfo:{ -_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"},plot_2:{linestyle:0,linewidth:1,plottype:1,trackPrice:!1,transparency:0,visible:!0,color:c}},inputs:{in_0:5,in_1:20,in_2:5}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Indicator",histogramBase:0,joinPoints:!1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1},plot_2:{title:"Oscillator",histogramBase:0,joinPoints:!1}},description:"SMI Ergodic Indicator/Oscillator",shortDescription:"SMIIO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:20,type:"integer",min:1,max:2e3},{id:"in_2",name:"siglen",defval:5,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_1"]}],id:"SMI Ergodic Indicator/Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"SMI Ergodic Indicator/Oscillator",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t){return e-t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+s+n);var o=r.close(this._context),a=this._context.new_var(o),l=r.tsi(a,i,s,this._context),c=this._context.new_var(l),h=r.ema(c,n,this._context);return[l,h,this.f_0(l,h)]}}},{name:"Smoothed Moving Average",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#673AB7"}},inputs:{in_0:7,in_1:"close"}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Smoothed Moving Average",shortDescription:"SMMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]}],id:"smoothed_moving_average@tv-basicstudies-1",scriptIdPart:"",name:"Smoothed Moving Average",format:{type:"inherit"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=r[this._input(1)](this._context);return[r.smma(t,e,this._context)]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Standard Deviation",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Standard Deviation@tv-basicstudies-1",scriptIdPart:"",name:"Standard Deviation",description:"Standard Deviation",shortDescription:"Standard Deviation",is_price_study:!1,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:u}},inputs:{periods:5,deviations:1}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"deviations",name:"Deviations", -type:"float"}],format:{precision:2,type:"price"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._context.new_var(r.close(this._context));return[r.stdev(n,i,this._context)*s]}}},{name:"Stochastic",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:1,in_2:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1,zorder:1.1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1,zorder:1.11}},description:"Stochastic",shortDescription:"Stoch",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit",zorder:-1.1},{id:"hline_1",name:"LowerLimit",zorder:-1.11}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background",zorder:-2}],inputs:[{id:"in_0",name:"%K Length",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"%K Smoothing",defval:1,type:"integer",min:1,max:1e4},{id:"in_2",name:"%D Smoothing",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(i+s+n);var o=r.close(this._context),a=r.high(this._context),l=r.low(this._context),c=this._context.new_var(o),h=this._context.new_var(a),d=this._context.new_var(l),u=r.stoch(c,h,d,i,this._context),p=this._context.new_var(u),_=r.sma(p,s,this._context),m=this._context.new_var(_);return[_,r.sma(m,n,this._context)]}}},{name:"Stochastic RSI",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:80},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:20}],filledAreasStyle:{fill_0:{color:"#2196F3",transparency:90,visible:!0}},inputs:{in_0:14,in_1:14,in_2:3,in_3:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"%K",histogramBase:0,joinPoints:!1,zorder:1.1},plot_1:{title:"%D",histogramBase:0,joinPoints:!1,zorder:1.11}},description:"Stochastic RSI",shortDescription:"Stoch RSI",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit",zorder:-1.1},{id:"hline_1",name:"LowerLimit",zorder:-1.11}],filledAreas:[{id:"fill_0", -objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background",zorder:-2}],inputs:[{id:"in_0",name:"lengthRSI",defval:14,type:"integer",min:1,max:1e4},{id:"in_1",name:"lengthStoch",defval:14,type:"integer",min:1,max:1e4},{id:"in_2",name:"smoothK",defval:3,type:"integer",min:1,max:1e4},{id:"in_3",name:"smoothD",defval:3,type:"integer",min:1,max:1e4}],id:"Stochastic RSI@tv-basicstudies-1",scriptIdPart:"",name:"Stochastic RSI",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.f_1=function(e,t,i){var s=i.new_var(r.max(r.change(e),0));return r.rma(s,t,i)},this.f_2=function(e,t,i){var s=i.new_var(-r.min(r.change(e),0));return r.rma(s,t,i)},this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3);e.setMinimumAdditionalDepth(s+n+o+a);var l=this._context.new_var(i),c=r.rsi(this.f_1(l,s,this._context),this.f_2(l,s,this._context)),h=this._context.new_var(c),d=this._context.new_var(c),u=this._context.new_var(c),p=r.stoch(h,d,u,n,this._context),_=this._context.new_var(p),m=r.sma(_,o,this._context),g=this._context.new_var(m);return[m,r.sma(g,a,this._context)]}}},{name:"TRIX",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:18}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"TRIX",histogramBase:0,joinPoints:!1,zorder:1}},description:"TRIX",shortDescription:"TRIX",is_price_study:!1,bands:[{id:"hline_0",name:"Zero",zorder:-1}],inputs:[{id:"in_0",name:"length",defval:18,type:"integer",min:1,max:2e3}],id:"TRIX@tv-basicstudies-1",scriptIdPart:"",name:"TRIX",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.f_0=function(e){return r.log(e)},this.f_1=function(e){return 1e4*e},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0);e.setMinimumAdditionalDepth(3*i);var s=this.f_0(r.close(this._context)),n=this._context.new_var(s),o=r.ema(n,i,this._context),a=this._context.new_var(o),l=r.ema(a,i,this._context),c=this._context.new_var(l),h=r.ema(c,i,this._context),d=this._context.new_var(h),u=r.change(d);return[this.f_1(u)]}}},{name:"Triple EMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Triple EMA",shortDescription:"TEMA",is_price_study:!0,inputs:[{id:"in_0",name:"length",defval:9,type:"integer",min:1,max:1e4}],id:"Triple EMA@tv-basicstudies-1",scriptIdPart:"",name:"Triple EMA",format:{type:"inherit"}},constructor:function(){this.f_0=function(e,t,i){return 3*(e-t)+i},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0) -;this._context.setMinimumAdditionalDepth(3*i);var s=r.close(this._context),n=this._context.new_var(s),o=r.ema(n,i,this._context),a=this._context.new_var(o),l=r.ema(a,i,this._context),c=this._context.new_var(l),h=r.ema(c,i,this._context);return[this.f_0(o,l,h)]}}},{name:"True Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:25,in_1:13,in_2:13}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"True Strength Index",histogramBase:0,joinPoints:!1,zorder:1.1},plot_1:{title:"Signal",histogramBase:0,joinPoints:!1,zorder:1.11}},description:"True Strength Index",shortDescription:"True Strength Index",is_price_study:!1,bands:[{id:"hline_0",name:"Zero",zorder:-1}],inputs:[{id:"in_0",name:"long",defval:25,type:"integer",min:1,max:4999},{id:"in_1",name:"short",defval:13,type:"integer",min:1,max:4999},{id:"in_2",name:"siglen",defval:13,type:"integer",min:1,max:4999,hideWhenPlotsHidden:["plot_1"]}],id:"True Strength Indicator@tv-basicstudies-1",scriptIdPart:"",name:"True Strength Index",format:{precision:4,type:"price"},usePlotsZOrder:!0},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);this._context.setMinimumAdditionalDepth(this._input(0)+this._input(1)+this._input(2));var o=r.close(this._context),a=this._context.new_var(o),l=r.tsi(a,s,i,this._context),c=this._context.new_var(l);return[l,r.ema(c,n,this._context)]}}},{name:"Trend Strength Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Trend Strength Index@tv-basicstudies-1",scriptIdPart:"",name:"Trend Strength Index",description:"Trend Strength Index",shortDescription:"Trend Strength Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:c}},inputs:{periods:14}},styles:{plot_0:{title:"Plot",histogramBase:0}},inputs:[{id:"periods",type:"integer",name:"Periods"}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.invertedPeriod=1/this.period,this.sumX=(this.period-1)*this.period/2,this.sumXX=(this.period-1)*this.period*(2*this.period-1)/6,this.invertedPeriodSumXSumX=this.invertedPeriod*this.sumX*this.sumX},this.trendStrengthIndex=function(){for(var e=this._context.new_var(r.close(this._context)),t=r.sum(e,this.period,this._context),i=0,s=0,n=0;n0?1:-1:a/(l=Math.sqrt(l))},this.main=function(e,t){ -return this._context=e,this._input=t,[this.trendStrengthIndex()]}}},{name:"Typical Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"TypicalPrice@tv-basicstudies-1",scriptIdPart:"",name:"Typical Price",description:"Typical Price",shortDescription:"Typical Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[r.hlc3(this._context)]}}},{name:"Ultimate Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}},inputs:{in_0:7,in_1:14,in_2:28}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"UO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Ultimate Oscillator",shortDescription:"UO",is_price_study:!1,inputs:[{id:"in_0",name:"length7",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"length14",defval:14,type:"integer",min:1,max:1e12},{id:"in_2",name:"length28",defval:28,type:"integer",min:1,max:1e12}],id:"ultimate_oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Ultimate Oscillator",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){var s=this._context.new_var(e),n=this._context.new_var(t);return[r.sum(s,i,this._context)/r.sum(n,i,this._context)]},this.f_1=function(){var e=this._input(0),t=this._input(1),i=this._input(2),s=this._context.new_var(r.close(this._context)),n=r.max(r.high(this._context),s.get(1)),o=this._context.new_var(r.close(this._context)),a=r.min(r.low(this._context),o.get(1)),l=r.close(this._context)-a,c=n-a,h=this.f_0(l,c,e),d=this.f_0(l,c,t),u=this.f_0(l,c,i);return[100*(4*h[0]+2*d[0]+u[0])/7]},this.main=function(e,t){return this._context=e,this._input=t,this.f_1()}}},{name:"Volatility Close-to-Close",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Volatility Close-to-Close@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Close-to-Close",description:"Volatility Close-to-Close",shortDescription:"Volatility Close-to-Close",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{periods:10,daysPerYear:252}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer",defval:10,min:2},{id:"daysPerYear",name:"Days Per Year",type:"integer",defval:252,min:1,max:366}],format:{precision:2,type:"percent"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.daysPerYear=this._input(1)},this.stdev=function(e,t,i){var s=this.variance(e,t,i);return r.sqrt(s)},this.variance=function(e,t,i){var s=r.sma(e,t,i);return this.variance2(e,s,t)}, -this.variance2=function(e,t,i){var s,r,n=0;for(s=0;s0&&(l=.12*this.square(e.get()-s.get(1))/this.marketClosedPercentage+.88*l/(1-this.marketClosedPercentage)),l/=a,l*=this.secondsPerYear;var c=this._context.new_var(l);return 100*Math.sqrt(r.sum(c,this.period,this._context)/this.period)},this.main=function(e,t){return this._context=e,this._input=t,[this.volatilityOHLC()]}}},{name:"Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Index",description:"Volatility Index",shortDescription:"Volatility Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:c}},inputs:{periods:10,atrMult:3,method:"Wilder Smoothing"}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"atrMult",name:"ATR Mult",type:"float"},{id:"method",name:"Method",type:"text",defval:"Exponential",options:["Exponential","Wilder Smoothing"]}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.atrMult=this._input(1),this.maMethod=this._input(2),this.nextsar=null,this.position=null,this.sic=null,this.bars=[],this.count=0,this.lastSar=null,this._context.setMinimumAdditionalDepth("Exponential"===this.maMethod?2*this.period+2:this.period)},this.computeATR=function(){var e=r.high(this._context)-r.low(this._context),t=r.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-r.low(this._context);return this.tr=Math.max(e,t,i),"Exponential"===this.maMethod?this.atr=r.ema(this._context.new_var(this.tr),this.period,this._context):this.atr=this.tr/this.period+(1-1/this.period)*this.atr,this.atr*this.atrMult},this.calculateVolatility=function(){if(r.close(this._context)===this.bars[this.bars.length-1])return this.lastSar;if(this.bars.push(r.close(this._context)),1===this.count)this.atr=r.high(this._context)-r.low(this._context),this.sic=r.close(this._context);else if(this.countthis.sic&&(this.sic=r.close(this._context))}else if(this.count===this.period){e=r.high(this._context)-r.low(this._context),t=r.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-r.low(this._context);this.atr+=Math.max(e,t,i),this.atr*=1/this.period, -r.close(this._context)>this.sic&&(this.sic=r.close(this._context)),this.position="LONG",this.nextsar=this.sic-this.atr*this.atrMult}else{var s=this.nextsar;"LONG"===this.position?r.close(this._context)s?(this.position="LONG",this.sic=r.close(this._context),this.nextsar=this.sic-this.computeATR()):(this.position="SHORT",this.sic=Math.min(r.close(this._context),this.sic),this.nextsar=this.sic+this.computeATR())),this.lastSar=s}return this.count++,s},this.main=function(e,t){return this._context=e,this._input=t,this._context.select_sym(0),[this.calculateVolatility()]}}},{name:"VWAP",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{inputs:{in_0:"hlc3",in_anchor:"Session"},styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:0,transparency:0,visible:!0,color:"#2196F3"}}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"VWAP",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"VWAP",shortDescription:"VWAP",is_price_study:!0,inputs:[{id:"in_0",name:"Source",defval:"hlc3",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_anchor",name:"Anchor Period",defval:"Session",type:"text",options:["Session","Week","Month","Quarter","Year","Decade","Century"]}],id:"VWAP@tv-basicstudies-1",scriptIdPart:"",name:"VWAP",format:{type:"inherit"}},constructor:function(){this.f_1=function(e){e.reset_hist()},this.createAnchorChecker=function(e,t){switch(t){case"Week":return function(t,i){return r.weekofyear(e,t)!==r.weekofyear(e,i)||r.year(e,t)!==r.year(e,i)};case"Month":return function(t,i){return r.month(e,t)!==r.month(e,i)||r.year(e,t)!==r.year(e,i)};case"Quarter":return function(t,i){return Math.floor(r.month(e,t)/3)!==Math.floor(r.month(e,i)/3)||r.year(e,t)!==r.year(e,i)};case"Year":return function(t,i){return r.year(e,t)!==r.year(e,i)};case"Decade":return function(t,i){return Math.floor(r.year(e,t)/10)!==Math.floor(r.year(e,i)/10)};case"Century":return function(t,i){return Math.floor(r.year(e,t)/100)!==Math.floor(r.year(e,i)/100)};default:return e=>this._isFirstBarInSession(e)}},this.init=function(e,t){this._input=t,this._isFirstBarInSession=null;const i=this._input(1)||"Session";this._anchorChecker=this.createAnchorChecker(e,i)},this.main=function(e,t){this._context=e,this._input=t;const i=this._input(0);var s=e.new_var(),n=e.new_var(),o=e.new_var();const a=r.time(this._context),l=this._context.new_unlimited_var(a).get(1);if(a){if(null===this._isFirstBarInSession){const t=r.createNthBarInSessionCheck(e);this._isFirstBarInSession=e=>t(e,0)}this._anchorChecker(a,l)&&(this.f_1(s),this.f_1(n),o.set(a))}return s.set(r.nz(s.get(1))+r[i](this._context)*r.volume(this._context)),n.set(r.nz(n.get(1))+r.volume(this._context)),r.na(o.get(0))?[NaN]:[s.get(0)/n.get(0)]}}},{name:"VWMA",metainfo:{ -_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"VWMA",shortDescription:"VWMA",is_price_study:!0,inputs:[{id:"in_0",name:"len",defval:20,type:"integer",min:1,max:1e4}],id:"VWMA@tv-basicstudies-1",scriptIdPart:"",name:"VWMA",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._input(0),n=this._context.new_var(i);return[r.vwma(n,s,this._context)]}}},{name:"Volume Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,zorder:1}},description:"Volume Oscillator",shortDescription:"Volume Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero",zorder:-1}],inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:4999},{id:"in_1",name:"longlen",defval:10,type:"integer",min:1,max:4999}],id:"Volume Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Volume Oscillator",format:{precision:2,type:"percent"},usePlotsZOrder:!0},constructor:function(){this.f_0=function(e,t){return 100*(e-t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.volume(this._context),o=this._context.new_var(n),a=r.ema(o,i,this._context),l=this._context.new_var(n),c=r.ema(l,s,this._context);return[this.f_0(a,c)]}}},{name:"Vortex Indicator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"VI +",histogramBase:0,joinPoints:!1,isHidden:!1},plot_1:{title:"VI -",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Vortex Indicator",shortDescription:"VI",is_price_study:!1,is_hidden_study:!1,id:"vortex_indicator@tv-basicstudies-1",inputs:[{id:"in_0",name:"Period",defval:14,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Vortex Indicator",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._context.new_var(r.low(this._context)),i=this._context.new_var(r.abs(r.high(this._context)-t.get(1))),s=r.sum(i,e,this._context),n=this._context.new_var(r.high(this._context)),o=this._context.new_var(r.abs(r.low(this._context)-n.get(1))),a=r.sum(o,e,this._context),l=this._context.new_var(r.atr(1,this._context)),c=r.sum(l,e,this._context) -;return[s/c,a/c]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Willams %R",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-20},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-80}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,zorder:1}},description:"Williams %R",shortDescription:"%R",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit",zorder:-1.1},{id:"hline_1",name:"LowerLimit",zorder:-1.11}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background",zorder:-2}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Willams %R@tv-basicstudies-1",scriptIdPart:"",name:"Willams %R",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.f_0=function(e,t,i){return 100*(e-t)/(t-i)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.high(this._context),n=this._context.new_var(s),o=r.highest(n,i,this._context),a=r.low(this._context),l=this._context.new_var(a),c=r.lowest(l,i,this._context);return[this.f_0(r.close(this._context),o,c)]}}},{name:"Williams Alligator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#66BB6A"}},inputs:{in_0:21,in_1:13,in_2:8,in_3:8,in_4:5,in_5:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Jaw",histogramBase:0,joinPoints:!1},plot_1:{title:"Teeth",histogramBase:0,joinPoints:!1},plot_2:{title:"Lips",histogramBase:0,joinPoints:!1}},description:"Williams Alligator",shortDescription:"Alligator",is_price_study:!0,inputs:[{id:"in_0",name:"Jaw Length",defval:21,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_0"]},{id:"in_1",name:"Teeth Length",defval:13,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_1"]},{id:"in_2",name:"Lips Length",defval:8,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_2"]},{id:"in_3",name:"Jaw Offset",defval:8,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_0"]},{id:"in_4",name:"Teeth Offset",defval:5,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_1"]},{id:"in_5",name:"Lips Offset",defval:3,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_2"]}],id:"Williams Alligator@tv-basicstudies-1",scriptIdPart:"",name:"Williams Alligator",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e, -this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2),o=this._input(3),a=this._input(4),l=this._input(5),c=r.hl2(this._context);return[{value:r.smma(c,i,this._context),offset:o},{value:r.smma(c,s,this._context),offset:a},{value:r.smma(c,n,this._context),offset:l}]}}},{name:"Williams Fractals",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{plottype:"shape_triangle_down",visible:!0,location:"BelowBar",transparency:0,color:a},plot_1:{plottype:"shape_triangle_up",visible:!0,location:"AboveBar",transparency:0,color:u}},inputs:{in_0:2}},plots:[{id:"plot_0",type:"shapes"},{id:"plot_1",type:"shapes"}],styles:{plot_0:{title:"Down fractals",isHidden:!1},plot_1:{title:"Up fractals",isHidden:!1}},description:"Williams Fractal",shortDescription:"Fractals",is_price_study:!0,is_hidden_study:!1,id:"Williams Fractals@tv-basicstudies-1",inputs:[{id:"in_0",name:"Periods",defval:2,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Williams Fractals",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.f_0=function(){for(var e=this._input(0),t=this._context.new_var(r.high(this._context)),i=!0,s=!0,n=!0,o=!0,a=!0,l=!0,c=1;c<=e;c++)i=r.and(i,r.lt(t.get(e-c),t.get(e))),s=r.and(s,r.lt(t.get(e+c),t.get(e))),n=r.and(n,r.and(r.le(t.get(e+1),t.get(e)),r.lt(t.get(e+c+1),t.get(e)))),o=r.and(o,r.and(r.le(t.get(e+1),t.get(e)),r.and(r.le(t.get(e+2),t.get(e)),r.lt(t.get(e+c+2),t.get(e))))),a=r.and(a,r.and(r.le(t.get(e+1),t.get(e)),r.and(r.le(t.get(e+2),t.get(e)),r.and(r.le(t.get(e+3),t.get(e)),r.lt(t.get(e+c+3),t.get(e)))))),l=r.and(l,r.and(r.le(t.get(e+1),t.get(e)),r.and(r.le(t.get(e+2),t.get(e)),r.and(r.le(t.get(e+3),t.get(e)),r.and(r.le(t.get(e+4),t.get(e)),r.lt(t.get(e+c+4),t.get(e)))))));var h=r.or(s,r.or(n,r.or(o,r.or(a,l)))),d=r.and(i,h),u=this._context.new_var(r.low(this._context)),p=1,_=1,m=1,g=1,f=1,v=1;for(c=1;c<=e;c++)p=r.and(p,r.gt(u.get(e-c),u.get(e))),_=r.and(_,r.gt(u.get(e+c),u.get(e))),m=r.and(m,r.and(r.ge(u.get(e+1),u.get(e)),r.gt(u.get(e+c+1),u.get(e)))),g=r.and(g,r.and(r.ge(u.get(e+1),u.get(e)),r.and(r.ge(u.get(e+2),u.get(e)),r.gt(u.get(e+c+2),u.get(e))))),f=r.and(f,r.and(r.ge(u.get(e+1),u.get(e)),r.and(r.ge(u.get(e+2),u.get(e)),r.and(r.ge(u.get(e+3),u.get(e)),r.gt(u.get(e+c+3),u.get(e)))))),v=r.and(v,r.and(r.ge(u.get(e+1),u.get(e)),r.and(r.ge(u.get(e+2),u.get(e)),r.and(r.ge(u.get(e+3),u.get(e)),r.and(r.ge(u.get(e+4),u.get(e)),r.gt(u.get(e+c+4),u.get(e)))))));var y=r.or(_,r.or(m,r.or(g,r.or(f,v))));return[r.and(p,y),d]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:-this._input(0)},{value:i[1],offset:-this._input(0)}]}}},{name:"Guppy Multiple Moving Average",metainfo:{isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,description:"Guppy Multiple Moving Average",shortDescription:"GMMA",is_price_study:!0,id:"Guppy Multiple Moving Average@tv-basicstudies-1",_metainfoVersion:52,format:{type:"inherit"},defaults:{inputs:{traderEMA1Length:3,traderEMA2Length:5,traderEMA3Length:8,traderEMA4Length:10, -traderEMA5Length:12,traderEMA6Length:15,investorEMA1Length:30,investorEMA2Length:35,investorEMA3Length:40,investorEMA4Length:45,investorEMA5Length:50,investorEMA6Length:60},styles:{traderEMA1:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},traderEMA2:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},traderEMA3:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},traderEMA4:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},traderEMA5:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},traderEMA6:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},investorEMA1:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},investorEMA2:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},investorEMA3:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},investorEMA4:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},investorEMA5:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},investorEMA6:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0}}},inputs:[{defval:3,id:"traderEMA1Length",max:1e3,min:1,name:"Trader EMA 1 length",type:"integer",hideWhenPlotsHidden:["traderEMA1"]},{defval:5,id:"traderEMA2Length",max:1e3,min:1,name:"Trader EMA 2 length",type:"integer",hideWhenPlotsHidden:["traderEMA2"]},{defval:8,id:"traderEMA3Length",max:1e3,min:1,name:"Trader EMA 3 length",type:"integer",hideWhenPlotsHidden:["traderEMA3"]},{defval:10,id:"traderEMA4Length",max:1e3,min:1,name:"Trader EMA 4 length",type:"integer",hideWhenPlotsHidden:["traderEMA4"]},{defval:12,id:"traderEMA5Length",max:1e3,min:1,name:"Trader EMA 5 length",type:"integer",hideWhenPlotsHidden:["traderEMA5"]},{defval:15,id:"traderEMA6Length",max:1e3,min:1,name:"Trader EMA 6 length",type:"integer",hideWhenPlotsHidden:["traderEMA6"]},{defval:30,id:"investorEMA1Length",max:1e3,min:1,name:"Investor EMA 1 length",type:"integer",hideWhenPlotsHidden:["investorEMA1"]},{defval:35,id:"investorEMA2Length",max:1e3,min:1,name:"Investor EMA 2 length",type:"integer",hideWhenPlotsHidden:["investorEMA2"]},{defval:40,id:"investorEMA3Length",max:1e3,min:1,name:"Investor EMA 3 length",type:"integer",hideWhenPlotsHidden:["investorEMA3"]},{defval:45,id:"investorEMA4Length",max:1e3,min:1,name:"Investor EMA 4 length",type:"integer",hideWhenPlotsHidden:["investorEMA4"]},{defval:50,id:"investorEMA5Length",max:1e3,min:1,name:"Investor EMA 5 length",type:"integer",hideWhenPlotsHidden:["investorEMA5"]},{defval:60,id:"investorEMA6Length",max:1e3,min:1,name:"Investor EMA 6 length",type:"integer",hideWhenPlotsHidden:["investorEMA6"]}],plots:[{id:"traderEMA1",type:"line"},{id:"traderEMA2",type:"line"},{ -id:"traderEMA3",type:"line"},{id:"traderEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"traderEMA6",type:"line"},{id:"investorEMA1",type:"line"},{id:"investorEMA2",type:"line"},{id:"investorEMA3",type:"line"},{id:"investorEMA4",type:"line"},{id:"investorEMA5",type:"line"},{id:"investorEMA6",type:"line"}],styles:{traderEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 1"},traderEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 2"},traderEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 3"},traderEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 4"},traderEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 5"},traderEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 6"},investorEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 1"},investorEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 2"},investorEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 3"},investorEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 4"},investorEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 5"},investorEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 6"}}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.close(this._context)),s=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3),l=this._input(4),c=this._input(5),h=r.ema(i,s,this._context),d=r.ema(i,n,this._context),u=r.ema(i,o,this._context),p=r.ema(i,a,this._context),_=r.ema(i,l,this._context),m=r.ema(i,c,this._context),g=this._input(6),f=this._input(7),v=this._input(8),y=this._input(9),S=this._input(10),b=this._input(11);return[h,d,u,p,_,m,r.ema(i,g,this._context),r.ema(i,f,this._context),r.ema(i,v,this._context),r.ema(i,y,this._context),r.ema(i,S,this._context),r.ema(i,b,this._context)]}}},{name:"52 Week High/Low",metainfo:{_metainfoVersion:52,id:"52 Week High/Low@tv-basicstudies-1",description:"52 Week High/Low",shortDescription:"52W H/L",is_price_study:!0,format:{type:"inherit"},plots:[],graphics:{horizlines:{highest:{name:"Highest"},lowest:{name:"Lowest"}}},inputs:[{defval:"close",id:"highestSource",name:"High source",options:["close","high"],type:"text"},{defval:"close",id:"lowestSource",name:"Low source",options:["close","low"],type:"text"}],defaults:{graphics:{horizlines:{highest:{color:"rgb(93, 96, 107)",showPrice:!0,style:1,visible:!0,width:2},lowest:{color:"rgb(93, 96, 107)",showPrice:!0,style:1,visible:!0,width:2}}},inputs:{highestSource:"close",lowestSource:"close"}}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._symbolSupports1DResolution=!this._context.symbol.info.supported_resolutions||-1!==this._context.symbol.info.supported_resolutions.indexOf("1D"),this._symbolSupports1DResolution&&"1D"!==r.period(this._context)&&this._context.new_sym(this._context.symbol.ticker,"1D")},this.main=function(e,t){ -this._symbolSupports1DResolution||r.error(`Daily bars are not available for ${this._context.symbol.info.name}`),this._context=e,this._input=t,"1D"!==r.period(this._context)&&this._context.select_sym(1);const i=this._input(0),s=this._input(1),n=r.time(this._context),o=this._context.new_unlimited_var(n),a=this._context.new_unlimited_var(r[i](this._context)),l=this._context.new_unlimited_var(r[s](this._context));if(o.get(365),!this._context.symbol.isLastBar||!this._context.symbol.isNewBar)return null;const c=r.add_years_considering_dst(this._context.symbol.info.timezone,new Date(n),-1),h=o.indexOf(c.getTime()),d=-1===h?NaN:r.highest(a,h,this._context),u=-1===h?NaN:r.lowest(l,h,this._context);if(isNaN(d)||isNaN(u))return{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{erase:[{action:"all"}]}}};return{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{create:{horizlines:[{styleId:"highest",data:[{startIndex:n,endIndex:n,level:d,extendLeft:!0,extendRight:!0}]},{styleId:"lowest",data:[{startIndex:n,endIndex:n,level:u,extendLeft:!0,extendRight:!0}]}]},erase:[{action:"all"}]}}}}}}]},91007:(e,t,i)=>{"use strict";var s;i.d(t,{SubsessionId:()=>s}),function(e){e.Regular="regular",e.Extended="extended",e.PreMarket="premarket",e.PostMarket="postmarket"}(s||(s={}))},16426:(e,t,i)=>{"use strict";i.d(t,{PointsetsManager:()=>n});var s=i(85049);const r=(0,i(31955).getLogger)("ChartApi.PointsetsManager");class n{constructor(){this._pointsetsDataBySymbol=new Map}destroy(){this._pointsetsDataBySymbol.clear()}createPointset(e,t,i,s,n){let o=this._pointsetsDataBySymbol.get(t);void 0===o&&(o=new Map,this._pointsetsDataBySymbol.set(t,o));const a=[];for(const t of s){const[i,s]=t;"number"!=typeof i||Number.isNaN(i)?r.logWarn(`Pointset time is invalid: id=${e}, ${i} of type ${typeof i}`):a.push({point:t,extrapolation:n.extrapolateTimeWithOffsetToTime(1e3*i,s)})}s.length===a.length&&o.set(e,{resolution:i,points:a})}removePointset(e){const t=[];this._pointsetsDataBySymbol.forEach(((i,s)=>{i.delete(e),0===i.size&&t.push(s)}));for(const e of t)this._pointsetsDataBySymbol.delete(e)}invalidatePointsetsForSymbol(e,t){const i=this._pointsetsDataBySymbol.get(e);void 0!==i&&i.forEach(((e,i)=>{if(s.Interval.isEqual(e.resolution,t))for(const t of e.points)null!==t.extrapolation&&t.extrapolation.exact&&(t.extrapolation.exact=!1)}))}getUpdatesForSymbol(e,t,i,s){const r=new Map,n=this._pointsetsDataBySymbol.get(e);return void 0!==n&&n.forEach(((e,n)=>{const o=this._refreshPointsetData(e,t,i,s);null!==o&&r.set(n,o)})),r}_refreshPointsetData(e,t,i,n){if(s.Interval.isEqual(e.resolution,t))for(let t=0;t ${t}`),null;o.push({ -index:i,value:[a.index,a.timeMs/1e3]})}return o}}},75683:(e,t,i)=>{"use strict";i.d(t,{SessionTimeScale:()=>y});var s=i(50151),r=i(56570),n=i(2740),o=i(29981),a=i(53388),l=i(50503),c=i(9447);function h(e){return 60*e*60*1e3}function d(e){return 60*e*1e3}const u=[{divisor:1,weight:18},{divisor:(p=1,1e3*p),weight:19},{divisor:d(1),weight:20},{divisor:d(5),weight:21},{divisor:d(30),weight:22},{divisor:h(1),weight:30},{divisor:h(3),weight:31},{divisor:h(6),weight:32},{divisor:h(12),weight:33}];var p,_;function m(e,t){if(null!==t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;const i=t.getTime(),s=e.getTime();for(let e=u.length-1;e>=0;--e)if(Math.floor(i/u[e].divisor)!==Math.floor(s/u[e].divisor))return u[e].weight}return 18}function g(e,t,i=0){if(0===e.length)return[];let s=i,r=i;const n=[];for(;s=t.length?(n.push({old:s,new:l.INVALID_TIME_POINT_INDEX}),s++):e[s].timeMs===t[r].timeMs?(s!==r&&n.push({old:s,new:r}),s++,r++):e[s].timeMs{if(e.new===t.new&&e.new===l.INVALID_TIME_POINT_INDEX)return e.old-t.old;if(e.new===l.INVALID_TIME_POINT_INDEX)return-1;if(t.new===l.INVALID_TIME_POINT_INDEX)return 1;const i=e.old-e.new,s=t.old-t.new;return i>0?s>0?e.old-t.old:-1:s<0?t.new-e.new:1}))}function f(e,t){return{span:e.markWeight,time:e.displayTime,index:t}}!function(e){e[e.FutureTickMarksLimit=1e3]="FutureTickMarksLimit"}(_||(_={}));const v=r.enabled("end_of_period_timescale_marks");class y{constructor(){this._completed=!0,this._mainSymbolExtrapolator=null,this._pointDataByTimePoint=new Map,this._instanceIds=new Set,this._displayTimezone=null,this._minFutureBarsCount=0,this._sortedTimePoints=[]}destroy(){this.clearTimeScale()}setCompleted(e){this._completed=e}isCompleted(){return this._completed}clearTimeScale(){return this._pointDataByTimePoint.clear(),this._instanceIds.clear(),this._sortedTimePoints=[],{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]}}indexOfTime(e){if(0===this._sortedTimePoints.length)return null===this._mainSymbolExtrapolator?null:this._mainSymbolExtrapolator.indexOfTime(e);if(ethis._sortedTimePoints[this._sortedTimePoints.length-1].timeMs){if(null===this._mainSymbolExtrapolator)return null;const t=this._mainSymbolExtrapolator.indexOfTime(e),i=this._mainSymbolExtrapolator.indexOfTime(this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs);if(null===t||null===i)return null;const s=t.index-i.index-1;return{index:this._sortedTimePoints.length+s,timeMs:t.timeMs}}let t=(0,o.lowerbound)(this._sortedTimePoints,e,((e,t)=>e.timeMs({timeMs:e,markWeight:0,displayTime:NaN})));this._fillPointsData(i,0,0!==this._sortedTimePoints.length?this._sortedTimePoints[this._sortedTimePoints.length-1].displayTime:null);const r=[];for(let t=e;tf(e,i+t)));return r.concat(n)}setTimezone(e){this._displayTimezone="exchange"===e?null:(0,n.get_timezone)(e),this._fillPointsData(this._sortedTimePoints,0)}fillIndexesInRows(e){if(0===e.length)return;let t=-1,i=(0,o.lowerbound)(this._sortedTimePoints,Math.round(1e3*e[0].value[0]),((e,t)=>e.timeMse.timeMs{for(;i=this._sortedTimePoints.length){const t=this.indexOfTime(e);if(null===t)return l.INVALID_TIME_POINT_INDEX;i=t.timeMs!==e?t.index+1:t.index}return(0,s.assert)(i>t,"data must have unique sorted times"),t=i,i}))}firstSeriesBarTime(){return 0===this._sortedTimePoints.length?null:this._sortedTimePoints[0].timeMs}replaceBarsTimesTail(e,t){if(0===t.length)return null;if(!this._instanceIds.has(e))return this.setSeriesBarsTimes(e,t);const i=[],s=(0,o.lowerbound)(this._sortedTimePoints,t[0],((e,t)=>e.timeMs({timeMs:e.timeMs,pointData:e.pointData,markWeight:0,displayTime:NaN})));for(let e=s;ee.timeMs-t.timeMs));const a=this._updateTimeScalePointsTail(n) -;return this._applyTimeScaleChanges(a,!1)}setSeriesBarsTimes(e,t){return this._setBarsTimes(e,t)}setStudyBarsTimes(e,t){return this._setBarsTimes(e,t)}_setBarsTimes(e,t){const i=0!==this._pointDataByTimePoint.size;if(this._instanceIds.has(e))for(const t of this._sortedTimePoints)t.pointData.instances.delete(e);0===t.length?this._instanceIds.delete(e):this._instanceIds.add(e),this._addBarsTimesToInstance(e,t,!1),i&&this._cleanupPointsData(this._sortedTimePoints);const s=[];this._pointDataByTimePoint.forEach(((e,t)=>{s.push({markWeight:0,timeMs:t,displayTime:NaN,pointData:e})})),s.sort(((e,t)=>e.timeMs-t.timeMs));const r=this._updateTimeScalePoints(s);return this._applyTimeScaleChanges(r,!1)}_updateFutureBars(){if(0===this._minFutureBarsCount||null===this._mainSymbolExtrapolator)return;if(0!==this._sortedTimePoints.length){const e=this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs;this._mainSymbolExtrapolator.ensureExtrapolatedToFutureTime(e)}const e=this._futureBarsFirstPointIndex();this._mainSymbolExtrapolator.setMinFutureBarsCount(e+this._minFutureBarsCount)}_addBarsTimesToInstance(e,t,i){const s=i?[]:null;for(const i of t){const t=this._pointDataByTimePoint.get(i);if(void 0===t){const t=new Set;t.add(e);const r={index:0,instances:t};this._pointDataByTimePoint.set(i,r),null!==s&&s.push({timeMs:i,pointData:r})}else t.instances.add(e)}return s}_futureBarsFirstPointIndex(){if(null===this._mainSymbolExtrapolator||0===this._sortedTimePoints.length)return 0;const e=this._mainSymbolExtrapolator.futureBars();return(0,o.upperbound_int)(e,this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs)}_futureBars(){return null===this._mainSymbolExtrapolator?[]:this._mainSymbolExtrapolator.futureBars().slice(this._futureBarsFirstPointIndex(),this._futureBarsFirstPointIndex()+1e3)}_cleanupPointsData(e){for(const t of e)0===t.pointData.instances.size&&this._pointDataByTimePoint.delete(t.timeMs)}_updateTimeScalePoints(e){let t=-1;for(let i=0;ie.timeMs=this._sortedTimePoints.length)continue;this._sortedTimePoints[n].timeMs!==r.timeMs&&-1===i&&(i=n)}const s=t+e.length;if(i=S(i,this._sortedTimePoints.length,s),-1===i)return null;this._fillPointsData(e,0,0===t||0===this._sortedTimePoints.length?null:this._sortedTimePoints[t-1].displayTime);const r=g(this._sortedTimePoints.slice(t),e).map((e=>({old:e.old+t,new:e.new===l.INVALID_TIME_POINT_INDEX?e.new:e.new+t})));{ -const i=this._sortedTimePoints;let r=0;for(;t+r1&&null===i){const t=Math.ceil(n/(e.length-1)),i=new Date(1e3*(e[0].displayTime-t));e[0].markWeight=m(new Date(1e3*e[0].displayTime),i)}}(e,t,i)}_applyTimeScaleChanges(e,t){if(null===e)return t?(this._fillPointsData(this._sortedTimePoints,0),{points:[],pointsIndex:0,baseIndex:this._getBaseIndex(),indexChange:[],marks:this.tickMarks(0)}):null;let i=e.pointsIndex;if(0!==i&&t&&(this._fillPointsData(this._sortedTimePoints,0),i=0),0===this._sortedTimePoints.length)return{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]};const s=[];for(let t=e.pointsIndex;t{"use strict";var s=i(2060),r=i(20629).StudyEngine,n=i(3075).OHLCV,o=i(36802),a=i(1430).SymbolExtrapolator,l=i(75683).SessionTimeScale,c=i(16426).PointsetsManager,h=i(14381),d=i(53388).createDwmAligner,u=i(85049).Interval,p=i(76422),_=i(44843).visitObject,m=i(37265).isObject;i(42924),i(6058);var g=i(47282).DatafeedRequestsCachedProcessor,f=i(63950).timezoneIsAvailable,v=i(53388).isAlignmentEnabled,y=i(73698),S=y.isEncodedExtendedSymbol,b=y.decodeExtendedSymbol,w=i(68805).extractSymbolNameFromSymbolInfo,C=i(30328).replaceGraphicsTimesWithTimePointIndexIndex,P=i(56570),x=i(91007).SubsessionId,T=i(14381).getPeriodsBetweenDates,I=i(39692).overwriteVolumeProfileResolutionForPeriodGetter;const M="pre_post_market_sessions",A=P.enabled(M),L=P.enabled("pay_attention_to_ticker_not_symbol");function k(e,t,i,s){return[e,t,i,s].filter((e=>!!e)).join("|")}var D=-5e6;function E(e){ -var t=e.findIndex((function(e){return e.index!==D}));return-1===t?[]:0===t?e:e.slice(t)}function V(e,t,i){if(e){if("string"==typeof e)return void F("`logo_urls` should be an array of urls, not a string.");const[t,s]=e;s?(i["base-currency-logoid"]=t,i["currency-logoid"]=s):i.logoid=e}t&&(i.provider_id=t,i.country=void 0)}function B(e,t){return e+"_"+t}function R(e){if(null===e||"number"==typeof e)return e;if("object"==typeof e&&Array.isArray(e)){switch(e[0]){case"bar_count":return e[2];case"from_to":return e.length>=3?e[2]:null}}return null}function N(e){const t=b(e),i="string"==typeof t.symbol?t:t.symbol;return[i.symbol,{currency:i["currency-id"],unit:i["unit-id"],session:i.session===x.Regular?void 0:i.session}]}var O=function(e){var t=this;this._studiesCache={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._metainfoCache=[],this._barsCoefficientsCache={},this._externalDatafeed=e,e.getVolumeProfileResolutionForPeriod&&I((function(t,i,s,r){return e.getVolumeProfileResolutionForPeriod(t,i,s,r)})),this._datafeedConfiguration=null,this._marketStatusWatchers={},this._resolveRequests={},this._resolvePromisesBySymbolId=new Map,this._symbolIdToSymbolRequestString=new Map,this._callbacks={},this._serverTimeOffset=0,t._logMessage("Datafeed settings received: {0}".format(JSON.stringify(window.configurationData))),t._datafeedConfiguration=t._adoptConfigurationData(window.configurationData),t._fireEvent("configuration_received"),t._externalDatafeed.getServerTime&&t._externalDatafeed.getServerTime((function(e){t._serverTimeOffset=e-(new Date).valueOf()/1e3})),this._invalidatedPointsetSessions=new Set,this._refreshPointsetsTimerId=null,this._pointsetsManagers={},this._quotesInfo=[],this._depthInfo=[],this._endOfData={},this._computeStudyCounter=0,this._symbolExtrapolators={},this._timeScales={},this._cachedDatafeed=new g(e,this.serverTimeOffset.bind(this),this._datafeedConfiguration.reset_cache_timeout),o.setupFeed({resolve:function(e,i,s,r){t._resolveSymbolByName(e,i,s,r)},subscribe:function(e,i,s,r,n){return t._cachedDatafeed.subscribe(e,i,s,function(e,i,s){var r=new h.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),n=h.newBarBuilder(i,r,r);return function(e){if(e&&e.count()){var i=1e3*t.getCurrentUTCTime();n.moveTo(i),n.indexOfBar(i)>=0&&e.setLastBarClosed(!1)}s(e)}}(e,i,r),n)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function F(e){console.warn(`${(new Date).toISOString()} ${e}`)}function W(e,t){return e+"_"+t}function H(e,t,i,s){return e+(t?"_#_"+t:"")+(i?"_#_"+i:"")+(s?"_#_"+s:"")}O.prototype._getSymbolExtrapolator=function(e,t,i){var s=u.normalize(i),r=function(e,t,i){const s=void 0!==t.subsession_id?","+t.subsession_id:"";return e+","+t.full_name+","+i+s}(e,t,s),n=this._symbolExtrapolators[r];return void 0===n&&(n=new a(t,s),this._symbolExtrapolators[r]=n),n},O.prototype._barsCoefficients=function(e,t){if(void 0===b(e).type)return{};var i=e+t;return this._barsCoefficientsCache[i]||(this._barsCoefficientsCache[i]={}),this._barsCoefficientsCache[i]}, -O.prototype.destroy=function(){for(const e of Object.keys(this._quotesInfo))this._stopQuotesSubscription(e);this._cachedDatafeed.destroy(),this._externalDatafeed=null;for(const e of Object.keys(this._pointsetsManagers))this._pointsetsManagers[e].destroy();this._quotesInfo={},this._pointsetsManagers={}},O.prototype.purgeCache=function(){this._endOfData={},this._resolveRequests={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._studiesCache={},this._resolvePromisesBySymbolId.clear(),this._symbolIdToSymbolRequestString.clear(),Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={},Object.keys(this._timeScales).forEach((function(e){this._timeScales[e].destroy()}),this),this._timeScales={},Object.keys(this._symbolExtrapolators).forEach((function(e){this._symbolExtrapolators[e].destroy()}),this),this._symbolExtrapolators={}},O.prototype.purgeDataCache=function(){this._cachedDatafeed.purgeCache()},O.prototype._logMessage=function(e){P.enabled("charting_library_debug_mode")&&console.log(`${(new Date).toISOString()} ${e}`)},O.prototype.on=function(e,t){return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},O.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){for(var s=this._callbacks[e],r=0;r{this._resolveSymbolImpl(e,(e=>{t(e.price_sources)}),(e=>{i(e)}))}))},O.prototype.supportedSymbolsTypes=function(){return this._datafeedConfiguration.symbols_types||[]},O.prototype.symbolsGrouping=function(){return this._datafeedConfiguration.symbols_grouping||{futures:/$a/}},O.prototype._findStudyObject=function(e){e.endsWith("!")&&(e=e.slice(0,-1));var t=e.split("@")[0],i=JSServer.studyLibrary.filter((function(i){return i.metainfo.id===e||i.metainfo.shortDescription===t}));return 0===i.length?null:i[0]},O.prototype.getMarks=function(e,t,i,s,r){var n={red:6,green:5,blue:4,yellow:3};if(this._externalDatafeed.getMarks&&this._datafeedConfiguration.supports_marks){this._logMessage("Requesting bars marks: symbol {0}, resolution {1}, range [{2} ... {3}]".format(e.full_name,r,new Date(1e3*t).toUTCString(),new Date(1e3*i).toUTCString()));var o=this;this._externalDatafeed.getMarks(e,t,i,(function(t){var i=t.map((function(e){return e.time=parseInt(e.time),e})) -;o._logMessage("Received bars marks: symbol {0}, resolution {1}, marks {2}".format(e.full_name,r,JSON.stringify(i)));var a=d(r,e),l=P.enabled("two_character_bar_marks_labels"),c=i.map((function(e){return e.tickmark=null!==a?a.timeToSessionStart(1e3*e.time)/1e3:e.time,e.direction=n[e.color],e.onClicked=function(){p.emit("onMarkClick",e.id)},e.label=!!e.label&&(l?e.label.slice(0,2):e.label[0]),e}));s(c)}),r)}},O.prototype.getTimescaleMarks=function(e,t,i,s,r){if(this._externalDatafeed.getTimescaleMarks&&this._datafeedConfiguration.supports_timescale_marks){this._logMessage("Requesting timescale marks: symbol {0}, resolution {1}, range [{2} ... {3}]".format(e.full_name,r,new Date(1e3*t).toUTCString(),new Date(1e3*i).toUTCString()));var n=this;this._externalDatafeed.getTimescaleMarks(e,t,i,(function(t){n._logMessage("Received timescale marks: symbol {0}, resolution {1}, marks {2}".format(e.full_name,r,JSON.stringify(t)));var i=d(r,e),o=t.map((function(e){return e.tickmark=null!==i?i.timeToSessionStart(1e3*e.time)/1e3:e.time,e}));s(o)}),r)}},O.prototype.getSeriesLastBarTime=function(e,t){var i=this._getSeriesData(e,t);return null===i||0===i.length?null:i[i.length-1].timeMs},O.prototype.getSeriesInterval=function(e,t){var i=this._studiesCache[e][t];return i?i.resolution:null},O.prototype.getSeriesSymbolInfo=function(e,t){var i=this._studiesCache[e][t];return i?i.symbolInfo:null},O.prototype._getSeriesData=function(e,t){return this._objectsDataCache[W(e,t)]||null},O.prototype._computeStudy=async function(e,t,i,s,n,o,a,l,c,h){var p=!0,_=[];null!==l&&(this._objectsDataCache[l]=null),this._timeScales[e].setCompleted(!1);var m=this._computeStudyCounter++;function g(e,t){if(e_[a].timeMs;l?_.push({index:g(s,_.length),value:[s/1e3].concat(r),timeMs:s -}):(_[a].index=g(s,a),_[a].value=[s/1e3].concat(r),_[a].timeMs=s),p||h.onRealtimeCallback([_[_.length-1]],l,_.length,f,i)}(e,t,i)},nonseriesOut:function(e,t){h.onNonSeriesDataUpdate(t,i)},setNoMoreData:function(){y=!0},recalc:function(e,s){p=!1,_.endOfData=y,_.emptyBarCount=s.emptyBarCount,t.error&&null!==t.error()||(null!==l&&(S._objectsDataCache[l]=_),h.onDataReadyCallback(_,f,i,s))}});if(!S._studiesCache[e]||!S._studiesCache[e][n])throw Error("This should never happen");S._studiesCache[e][n].engine=w}catch(e){if(!e.studyError)throw e;h.onErrorCallback(e.message)}}else h.onErrorCallback("Unsupported resolution. Did you forget to set has_intraday to true?")}(w,C)},O.prototype._getDataRangeForStudy=function(e,t){var i=this._studiesCache[e][t],s={...this._seriesDataRange(e,i.parentId)};return this._studyCanExtendTimeScale(e,t)?void 0!==i.dataRange?i.dataRange:(i.firstLoadedTimeMs&&(s.to=i.firstLoadedTimeMs),s):s},O.prototype._createStudy=function(e,t,i,s,r,n,o,a){var l=this;function c(e,t,i){const o=l._studiesCache[s][r];if(o.completed=!0,e.length>0&&(o.firstLoadedTimeMs=e[0].timeMs),e=E(e),l._setEndOfData(s,r,n,!l._studyCanExtendTimeScale(s,r)||e.endOfData),l._studyCanExtendTimeScale(s,r)){const t=e.map((function(e){return e.timeMs})),i=l._timeScales[s].setStudyBarsTimes(r,t);l._applyTimeScaleUpdate(s,i)}l._timeScales[s].fillIndexesInRows(e),TradingView.ChartapiMessagerInstances[s].onDataUpdate(r,n,e,t),TradingView.ChartapiMessagerInstances[s].onStudyCompleted(r,n),l._updateTimeScaleState(s)}function h(e){var t={};if(0!==e.size){var i={},n=l._studiesCache[s][r].metainfo;e.forEach((function(e,t){i[n.plots[t].id]=e})),t.data={offsets:i}}return t}this._studiesCache[s][r].completed=!1,a=function(e){if(Array.isArray(e))return e;for(var t=[],i=l._studiesCache[s][r].metainfo.inputs,n=0;n=0},O.prototype.ensureExtendedTo=function(e,t,i){if(!this._studiesCache[t][e])throw Error("This should never happen");var s=this;setTimeout((function(){ -s._recreateSourcesForDataRange(t,{to:i})}),0)},O.prototype.extendSeriesRange=function(e,t){var i=this._timeScales[e].firstSeriesBarTime();if(null!==i){var s=this._mainSeriesRecord(e);if(u.isDWM(s.resolution)&&null!=s.symbolInfo){var r=d(s.resolution,s.symbolInfo);null!==r&&(i=r.timeToExchangeTradingDay(i))}var n=this._symbolIdToSymbolRequestString.get(B(e,s.symbolId)),o=this._barsCoefficients(n,s.resolution),a=o.barsCoefficient||1;if(!o.barsCoefficient){var l=this._getSeriesData(e,s.guid);null!==l&&(o.expectedBarsCount=l.length+t)}var c=this;setTimeout((function(){c._recreateSourcesForDataRange(e,{to:i,countBack:(t+2)*a})}),0)}else this._logMessage("Nothing to extend - there is no points on time scale")},O.prototype.seriesTurnaround=function(e,t){return this._studiesCache[e]&&this._studiesCache[e][t]&&this._studiesCache[e][t].turnaround},O.prototype._seriesDataRange=function(e,t){var i=this._studiesCache[e][t];return null!==i.firstLoadedTimeMs?{to:i.firstLoadedTimeMs,countBack:0}:i.dataRange},O.prototype._applyTimeScaleUpdate=function(e,t){if(null!==t){var i=[];for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if(r&&"study"===r.type){var n=this._studiesNonSeriesTimes[e][s];if(n){var o={indexes:this._timeScales[e].convertTimesToIndexes(n),data:{indexes_replace:!0}};i.push({objId:s,turnaround:r.turnaround,data:[],nonSeriesData:o})}}}TradingView.ChartapiMessagerInstances[e].onTimescaleUpdate(t,i),Promise.resolve().then(function(){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._pointsetsManagers[e].getUpdatesForSymbol(t.symbolInfo.full_name,t.resolution,i,this._timeScales[e]).forEach((function(t,i){TradingView.ChartapiMessagerInstances[e].onPointsetDataUpdate(i,null,t)}))}}.bind(this))}},O.prototype._updateMainTsBuilder=function(e){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._timeScales[e].setMainSymbolExtrapolator(i)}},O.prototype._updateTimeScaleState=function(e){var t=!0,i=!0;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];i=i&&this._isEndOfData(e,s,r.turnaround),t=t&&r.completed}this._timeScales[e].isCompleted()!==t&&(this._timeScales[e].setCompleted(t),t&&TradingView.ChartapiMessagerInstances[e].onTimescaleCompleted(i))},O.prototype._mainSeriesRecord=function(e){var t=null,i=null;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if("series"===r.type&&(null===t&&(t=r),r.isMain)){i=r;break}}return null===i&&(i=t),null!==i&&(i.isMain=!0),i},O.prototype._seriesCount=function(e){var t=0;for(var i in this._studiesCache[e]){"series"===this._studiesCache[e][i].type&&(t+=1)}return t},O.prototype._prepareSeriesNonSeriesData=function(e,t,i){var s=i.data[i.data.length-1],r=this._getSeriesData(e,t),n=null===r?[]:i.data;return{data:{data:{reversalAmount:i.reversalAmount,boxSize:i.boxSize,price:s?s[4]:i.price,bars:n.map((function(e,t){return{time:t,open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5], -factor:e[6],additionalPrice:e[6]}}))}},indexes:this._timeScales[e].convertTimesToIndexes(n.map((function(e){var t=e[0]||0;return t<0?r[r.length+t].timeMs:i.projectionTime+t})))}},O.prototype.createSeries=function(e,t,i,s,r,o,a){this._setEndOfData(e,t,i,!1);var l=new n;this._studiesCache[e]=this._studiesCache[e]||{};var c=this._getSeriesData(e,t),h=this._studiesCache[e][t],d=this._seriesCount(e),p=this._mainSeriesRecord(e);if(!h||u.isEqual(h.resolution,r)&&h.symbolId===s)void 0!==o.countBack&&null!==c&&0!==c.length&&(o.to=c[0].timeMs),h&&null!=h.firstLoadedTimeMs?o.to=void 0!==o.to?Math.min(h.firstLoadedTimeMs,o.to):h.firstLoadedTimeMs:h||0===d||null!==p&&(null!=p.firstLoadedTimeMs?(o.to=p.firstLoadedTimeMs,o.countBack=0):o=Object.assign({},p.dataRange));else if(1===d)o=Object.assign({},h.initialDatarange);else{var _=this._timeScales[e].firstSeriesBarTime();(void 0===o.to||null!==_&&_{V(e.logo_urls,e.exchange_logo,e)})),s(e)}))},O.prototype.resolveSymbol=function(e,t,i){var s=this;this._symbolIdToSymbolRequestString.set(B(e,t),i),this._resolvePromisesBySymbolId.set(B(e,t),new Promise((function(r,n){s._resolveSymbolImpl(i,(function(s){TradingView.ChartapiMessagerInstances[e].onSymbolResolved(t,s),r({symbolInfo:s,requestedSymbol:i})}),(function(i){TradingView.ChartapiMessagerInstances[e].onSymbolError(t,i),n(i)}))})))},O.prototype._resolveSymbolImpl=function(e,t,i){var s;S(e)||(s="Expect to get symbol encoded string, but got the following instead: "+e,console.error(`${(new Date).toISOString()} ${s}`));const[r,n]=N(e);this._resolveSymbolByName(r,n,t,i)},O.prototype._resolveSymbolByName=function(e,t,i,s){var r,n=t&&t.currency,o=t&&t.unit,a=t&&t.session,l=H(e,n,o,a);if(this._resolveRequests[l])r=this._resolveRequests[l];else{r=this._resolveSymbolInternal(e,n||void 0,o||void 0,a||void 0),this._resolveRequests[l]=r;var c=this;r.then((function(t){c._resolveRequests[H(e,t.currency_id,t.unit_id,t.subsession_id)]=r,c._resolveRequests[H(w(t,null),t.currency_id,t.unit_id,t.subsession_id)]=r,c._resolveRequests[H(w(t,null),n,o,a)]=r})).catch((function(){}))}r.then(i).catch(s)},O.prototype._resolveSymbolInternal=function(e,t,i,s){var r=this;return new Promise(function(n,o){const a=k(e,t,i,s);this._logMessage("Symbol resolve requested: `{0}` ".format(a));var l=!0;this._externalDatafeed.resolveSymbol(e,(function(e){ -l&&F("`resolveSymbol` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),r._logMessage("Symbol resolved: `{0}`, SymbolInfo in server response {1}".format(a,JSON.stringify(e))),function(e){if(e.ticker||(e.ticker=e.symbol||e.name),e.full_name=L?e.ticker:`${e.exchange}:${e.name}`,e.pro_name=e.full_name,e.base_name||(e.base_name=[e.name]),e.legs||(e.legs=[e.name]),e.exchange||(e.exchange=e["exchange-listed"]),e.data_status||(e.data_status="streaming"),!e.session&&e["session-regular"]&&(e.session=e["session-regular"]),!e.minmov&&e.minmovement&&(e.minmov=e.minmovement),e.currency_code&&(e.currency_id=e.currency_code),e.original_currency_code&&(e.original_currency_id=e.original_currency_code),e.holidays&&(e.session_holidays=e.holidays),void 0!==e.has_no_volume&&(e.visible_plots_set=e.has_no_volume?"ohlc":"ohlcv"),void 0===e.visible_plots_set&&(e.visible_plots_set="ohlcv"),e.supported_resolutions)for(var t=0;tthis._resolveSymbolByName(t,i,o,(s=>{F(`Error resolving for market status watcher ${k(t,i.currency,i.unit,i.session)}:\n${s}`),this.quoteRemoveSymbols(e,[r]),a(s)}))),e,r)}}},O.prototype._removeMarketStatusWatchers=function(e){var t=this;Object.keys(this._marketStatusWatchers[e]||{}).forEach((function(i){t._marketStatusWatchers[e][i].stop()})),this._marketStatusWatchers[e]={}},O.prototype._stopQuotesSubscription=function(e){this._quotesInfo[e].listenerGUID&&(this._externalDatafeed.unsubscribeQuotes(this._quotesInfo[e].listenerGUID),this._quotesInfo[e].listenerGUID=void 0),this._removeMarketStatusWatchers(e)},O.prototype._startQuotesSubscription=async function(e){var t={},i=this;const s=async e=>{const i=new Map,s=new Set;for(const r of e){const[e,n]=N(r),o=await new Promise((t=>this._resolveSymbolByName(e,n,(e=>t(e)),(()=>t(null)))));null!==o&&(t[o.ticker]=o,t[r]=o,s.add(o.ticker),o.ticker!==r&&(i.has(o.ticker)||i.set(o.ticker,[]),i.get(o.ticker).push(r)))}return[i,[...s]]},[r,n]=await s(this._quotesInfo[e].symbols),[o,a]=await s(this._quotesInfo[e].fastSymbols);function l(s){s.forEach((function(s){const n=s.n;if(r.has(n)||o.has(n)){const e=(r.get(n)??o.get(n)).map((e=>({...s,n:e})));setTimeout((()=>l(e)),0)}void 0!==t[s.n]&&null!==t[s.n]&&function(t,s){var r=i._marketStatusWatchers[e][t.n];t.symbolname=t.n,t.status=t.s,t.values=t.v,t.values.change=t.v.ch,t.values.last_price=t.v.lp,t.values.change_percent=t.v.chp,t.values.current_session=t.v.cs||r&&r.marketStatus(),t.values.pricescale=s.pricescale,t.values.minmov=s.minmov,t.values.minmove2=s.minmove2||0,t.values.fractional=s.fractional||!1,V(s.logo_urls,s.exchange_logo,t.values),r&&t.v.cs&&r.stop(),TradingView.ChartapiMessagerInstances[e].onQuotesData([e].concat([t]))}(s,t[s.n])}))}this._externalDatafeed.getQuotes&&!P.enabled("charting_library")?this._externalDatafeed.getQuotes(n,(function(t){i._quotesInfo[e]&&0!==i._quotesInfo[e].symbols.length&&(l(t),i._quotesInfo[e].listenerGUID=e,i._externalDatafeed.subscribeQuotes(n,a,l,i._quotesInfo[e].listenerGUID))}),(function(e){})):!this._externalDatafeed.getQuotes&&P.enabled("trading_terminal")&&setTimeout((()=>{l(this._quotesInfo[e].symbols.map((function(e){return{n:e, -s:"ok",v:{}}})))})),this._createMarketStatusWatchers(e,this._quotesInfo[e].symbols)},O.prototype._restartQuotesSubscription=function(e){this._stopQuotesSubscription(e),this._startQuotesSubscription(e)},O.prototype.quoteCreateSession=function(e){this._quotesInfo[e]={symbols:[],fastSymbols:[],listenerGUID:void 0}},O.prototype.quoteDeleteSession=function(e){this._stopQuotesSubscription(e),this._quotesInfo[e]=null},O.prototype.quoteSetFields=function(e,t){},O.prototype.quoteAddSymbols=function(e,t){this._quotesInfo[e].symbols=this._filteredSymbols(this._quotesInfo[e].symbols.concat(t)),this._restartQuotesSubscription(e)},O.prototype.quoteRemoveSymbols=function(e,t){this._quotesInfo[e].symbols=this._quotesInfo[e].symbols.filter((function(e){return t.indexOf(e)<0})),this._restartQuotesSubscription(e)},O.prototype.quoteFastSymbols=function(e,t){this._quotesInfo[e].fastSymbols=this._filteredSymbols(t),this._restartQuotesSubscription(e)},O.prototype.quoteHibernateAll=function(e){},O.prototype._stopDepthSubscription=function(e){this._depthInfo[e].listenerGUID&&(this._externalDatafeed.unsubscribeDepth(this._depthInfo[e].listenerGUID),this._depthInfo[e].listenerGUID=void 0)},O.prototype._startDepthSubscription=function(e){var t=this,i=this._depthInfo[e].symbol;function s(e){return e.map((function(e){return{p:e.price,v:e.volume}}))}function r(e){var t={};return t.s=i,t.bids=s(e.bids),t.asks=s(e.asks),t}i&&this._externalDatafeed.subscribeDepth&&(t._depthInfo[e].listenerGUID=this._externalDatafeed.subscribeDepth(i,(function(i){var s;t._depthInfo[e]&&((s=i).snapshot?TradingView.ChartapiMessagerInstances[e].onDepthData([e].concat([r(s)])):TradingView.ChartapiMessagerInstances[e].onDepthUpdate([e].concat([r(s)])))})))},O.prototype._restartDepthSubscription=function(e){this._stopDepthSubscription(e),this._startDepthSubscription(e)},O.prototype.depthCreateSession=function(e){this._depthInfo[e]={symbol:null,listenerGUID:void 0}},O.prototype.depthDeleteSession=function(e){this._depthInfo[e].symbol=null,this._stopDepthSubscription(e),delete this._depthInfo[e]},O.prototype.depthSetSymbol=function(e,t){this._depthInfo[e].symbol=t,this._restartDepthSubscription(e)},O.prototype._filteredSymbols=function(e){var t=[];return e.forEach((function(e){e instanceof Object||t.indexOf(e)<0&&t.push(e)})),t},O.prototype._isEndOfData=function(e,t,i){var s=e+"!"+t+"@"+i;return!!this._endOfData[s]},O.prototype._setEndOfData=function(e,t,i,s){var r=e+"!"+t+"@"+i;this._endOfData[r]=!1!==s},O.prototype.serverTimeOffset=function(){return this._serverTimeOffset},O.prototype.serverTime=function(){return 1e3*this.getCurrentUTCTime()},O.prototype.getCurrentUTCTime=function(){return(new Date).valueOf()/1e3+this._serverTimeOffset},O.prototype.switchTimezone=function(e,t){this._timeScales[e].setTimezone(t);var i=this._timeScales[e].tickMarks();null!==i&&TradingView.ChartapiMessagerInstances[e].onTickmarksUpdated(0,i)},O.prototype._studyCanExtendTimeScale=function(e,t){const i=this._studiesCache[e][t]?.metainfo -;return void 0!==i&&(P.enabled("studies_extend_time_scale")&&i.canExtendTimeScale||P.enabled("secondary_series_extend_time_scale")&&"Overlay@tv-basicstudies-1"===i.id)},e.exports=O},1430:(e,t,i)=>{"use strict";i.d(t,{SymbolExtrapolator:()=>h});var s,r=i(50151),n=i(29981),o=i(14381),a=i(40644),l=i(85049);function c(e,t){return e.length>t}!function(e){e[e.DefaultExtrapolateLimit=2e5]="DefaultExtrapolateLimit"}(s||(s={}));class h{constructor(e,t,i=2e5){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._projectionFirstIndex=1/0,this._barsTimes=[],this._minFutureBarsCount=0,this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._symbolInfo=e,this._interval=l.Interval.parse(t),this._extrapolateLimit=i,this._barBuilder=(0,o.newBarBuilder)(t,new o.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),null)}destroy(){this.clear()}interval(){return this._interval}barBuilder(){return this._barBuilder}symbolInfo(){return this._symbolInfo}clear(){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._barsTimes=[],this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._minFutureBarsCount=0,this._projectionFirstIndex=1/0}firstFutureBarIndex(){return this._barsTimes.length}futureBars(){return this._futureBarsCache}replaceBarsTimesTail(e,t=e.length){if(0===e.length)return;if(0===this._barsTimes.length)return void this.setBarsTimes(e,t);const i=e[0],s=this._barsTimes[this._barsTimes.length-1],o=i>s?this._barsTimes.length:(0,n.lowerbound_int)(this._barsTimes,i);0!==o?(this._barsTimes.splice(o,this._barsTimes.length,...e),this._projectionFirstIndex=t===e.length?this._barsTimes.length:this._barsTimes.indexOf(e[t]),(0,r.assert)(-1!==this._projectionFirstIndex,"something went wrong"),s!==e[e.length-1]&&this._setLastRealBarTime(e[e.length-1])):this.setBarsTimes(e,t)}setBarsTimes(e,t=e.length){const i=this._barsTimes;if(this._barsTimes=e.slice(),this._projectionFirstIndex=0===this._barsTimes.length?1/0:t,0===e.length)return this._historyBarsCache=[],this._futureBarsCache=[],this._firstRealBarTimeMs=null,void(this._lastRealBarTimeMs=null);0!==i.length&&i[i.length-1]===e[e.length-1]||this._setLastRealBarTime(e[e.length-1]),0!==i.length&&i[0]===e[0]||(this._historyBarsCache=[],this._firstRealBarTimeMs=e[0])}extrapolateTimeWithOffsetToTime(e,t){if(0===t)return{timeMs:e,exact:!0};0===this._barsTimes.length&&(t<0?null===this._firstRealBarTimeMs?this._firstRealBarTimeMs=e:(this._extendHistoryCacheToTimeFromRight(Math.min(e,null!==this._lastRealBarTimeMs?this._lastRealBarTimeMs:1/0)),this._ensureExtrapolatedToHistoryTime(e)):null===this._lastRealBarTimeMs?this._lastRealBarTimeMs=e:(this._extendFutureCacheToTimeFromLeft(Math.max(e,null!==this._firstRealBarTimeMs?this._firstRealBarTimeMs:1/0)),this._ensureExtrapolatedToFutureTime(e)));const i=this.indexOfTime(e);if(null===i)return null;const s=this._timeOfBarIndex(i.index+t);return null===s?null:((i.index<0||this._projectionFirstIndex<=i.index)&&(s.exact=!1),s)}indexOfTime(e){if(null!==this._firstRealBarTimeMs&&ethis._lastRealBarTimeMs){this._ensureExtrapolatedToFutureTime(e);let t=(0,n.lowerbound_int)(this._futureBarsCache,e);if(0!==this._futureBarsCache.length&&t===this._futureBarsCache.length&&e>this._futureBarsCache[this._futureBarsCache.length-1])return null;this._futureBarsCache[t]!==e&&(t-=1);const i=Math.max(1,this._barsTimes.length)+t;return{index:i,timeMs:i===this._barsTimes.length-1?(0,r.ensureNotNull)(this._lastRealBarTimeMs):this._futureBarsCache[t]}}if(0===this._barsTimes.length)return null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||null!==this._lastRealBarTimeMs&&e<=this._lastRealBarTimeMs?{index:0,timeMs:(0,r.ensureNotNull)(this._timeOfBarIndex(0)).timeMs}:null;let t=(0,n.lowerbound_int)(this._barsTimes,e);return this._barsTimes[t]!==e&&(t-=1),{index:t,timeMs:this._barsTimes[t]}}setMinFutureBarsCount(e){this._minFutureBarsCount=e,0!==this._barsTimes.length&&this._ensureExtrapolatedToFutureBar(e)}ensureExtrapolatedToFutureTime(e){this._ensureExtrapolatedToFutureTime(e)}_setLastRealBarTime(e){const t=this._futureBarsCache.length,i=(0,n.upperbound_int)(this._futureBarsCache,e);0===i?this._extendFutureCacheToTimeFromLeft(e):(this._lastRealBarTimeMs=e,this._futureBarsCache=this._futureBarsCache.slice(i)),this._ensureExtrapolatedToFutureBar(Math.max(t,this._minFutureBarsCount))}_timeOfBarIndex(e){var t;if(e<0){const t=Math.abs(e);this._ensureExtrapolatedToHistoryBar(t);const i=this._historyBarsCache.length-t;return i<0?null:{timeMs:this._historyBarsCache[i],exact:!1}}if(0===e&&0===this._barsTimes.length)return{timeMs:(0,r.ensureNotNull)(null!==(t=this._firstRealBarTimeMs)&&void 0!==t?t:this._lastRealBarTimeMs),exact:!1};if(e>=this._barsTimes.length){const t=e-Math.max(1,this._barsTimes.length);return this._ensureExtrapolatedToFutureBar(t+1),t>=this._futureBarsCache.length?null:{timeMs:this._futureBarsCache[t],exact:!1}}return{timeMs:this._barsTimes[e],exact:e=e)return;if((0,r.assert)(0===this._barsTimes.length,"bars should be empty"),this._firstRealBarTimeMs=e,0===this._historyBarsCache.length)return;const t=(0,a.extrapolateBarsFrontToTime)(this._barBuilder,this._historyBarsCache[this._historyBarsCache.length-1],e-1,this._extrapolateLimit,!0).times;this._historyBarsCache=this._historyBarsCache.concat(t)}_ensureExtrapolatedToFutureBar(e){return!(this._futureBarsCache.length>=e||c(this._futureBarsCache,this._extrapolateLimit))&&this._extendFutureCacheFromRight(((t,i)=>(0,a.extrapolateBarsFrontByCount)(this._barBuilder,t,e-i,!0).times))}_ensureExtrapolatedToFutureTime(e){null!==this._lastRealBarTimeMs&&this._lastRealBarTimeMs>=e||c(this._futureBarsCache,this._extrapolateLimit)||0!==this._futureBarsCache.length&&this._futureBarsCache[this._futureBarsCache.length-1]>=e||(this._extendFutureCacheFromRight(((t,i)=>(0,a.extrapolateBarsFrontToTime)(this._barBuilder,t,e,this._extrapolateLimit,!0).times)),this._futureBarsCache[this._futureBarsCache.length-1]=e||c(this._historyBarsCache,this._extrapolateLimit)||this._extendHistoryCacheFromLeft(((t,i)=>(0,a.extrapolateBarsFrontByCount)(this._barBuilder,t,-(e-i),!0).times.reverse()))}_ensureExtrapolatedToHistoryTime(e){null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||c(this._historyBarsCache,this._extrapolateLimit)||0!==this._historyBarsCache.length&&this._historyBarsCache[0]<=e||(this._extendHistoryCacheFromLeft(((t,i)=>{const s=(0,a.extrapolateBarsFrontToTime)(this._barBuilder,t-1,e-1,this._extrapolateLimit,!0).times;return s[s.length-1]===t?s.slice(0,-1):s})),(0===this._historyBarsCache.length||this._historyBarsCache[0]>e)&&this._ensureExtrapolatedToHistoryBar(this._historyBarsCache.length+1))}}},39076:(e,t,i)=>{"use strict";i.d(t,{backend:()=>s});const s=i(64289)},18278:(e,t,i)=>{"use strict";i.d(t,{HandlerInfo:()=>s});class s{constructor(e,t,i){this.handler=e,this.customId=t,this.singleShot=i}}},82783:(e,t,i)=>{"use strict";var s,r,n,o;function a(e,t){return"period-back"===e.type&&"period-back"===t.type?e.value===t.value:"time-range"===e.type&&"time-range"===t.type&&(e.from===t.from&&e.to===t.to)}i.d(t,{TIMEFRAMETYPE:()=>o,areEqualTimeFrames:()=>a}),function(e){e.extractErrorReason=function(e){return e.params[1]}}(s||(s={})),function(e){e.Default="default",e.FullSingleSession="full_single_session"}(r||(r={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(n||(n={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(o||(o={}))},80437:()=>{"use strict";TradingView.Pro=function(){this.hasPackage=function(){return!1}}, -window.user={is_pro:!1,settings:{}},TradingView.Pro.prototype.isPaidPro=function(){return!1},TradingView.Pro.prototype.isSupportAvailable=function(){return!1},TradingView.Pro.prototype.getProduct=function(){return{}},TradingView.Pro.prototype.getStudiesOrder=function(){return[]}},62945:(e,t,i)=>{"use strict";i.r(t),i.d(t,{QUOTE_FIELDS:()=>n,QUOTE_FIELDS_CACHE:()=>o,QuoteCache:()=>r});var s=i(50151);class r{constructor(e){this._cache=new Map,this._fields=[...e.fields]}update(e,t,i){const r=(0,s.ensureDefined)(e.symbolname);if(this._cache.has(r)||this._cache.set(r,{symbolname:r,status:e.status,values:{}}),"error"===e.status)return;const n=(0,s.ensureDefined)(this._cache.get(r));n.status=e.status;for(const s of this._fields)t.has(s)&&(i||void 0!==e.values[s])&&(n.values[s]=e.values[s])}get(e){var t;return null!==(t=this._cache.get(e))&&void 0!==t?t:null}fields(){return this._fields}} +this._input=t;var i=r.high(this._context),s=r.low(this._context),n=this._input(0),o=this._input(1),a=this._input(2),l=this._input(3),c=this._context.new_var(i),h=this._context.new_var(s);return[{value:r.sma(c,n,this._context),offset:a},{value:r.sma(h,o,this._context),offset:l}]}}},{name:"Moving Average Convergence/Divergence",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:5,trackPrice:!1,transparency:0,visible:!0,color:c},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#FF6D00"}},palettes:{palette_0:{colors:{0:{color:d,width:1,style:0},1:{color:h,width:1,style:0},2:{color:n,width:1,style:0},3:{color:"#FF5252",width:1,style:0}}}},inputs:{symbol:"",in_0:12,in_1:26,in_3:"close",in_2:9}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"},{id:"plot_3",palette:"palette_0",target:"plot_0",type:"colorer"}],styles:{plot_0:{title:"Histogram",histogramBase:0,joinPoints:!1},plot_1:{title:"MACD",histogramBase:0,joinPoints:!1},plot_2:{title:"Signal",histogramBase:0,joinPoints:!1}},description:"MACD",shortDescription:"MACD",is_price_study:!1,palettes:{palette_0:{colors:{0:{name:"Color 0"},1:{name:"Color 1"},2:{name:"Color 2"},3:{name:"Color 3"}}}},inputs:[{id:"symbol",name:"Other Symbol",defval:"",type:"symbol",optional:!0,isHidden:!1},{id:"in_0",name:"fastLength",defval:12,type:"integer",min:1,max:2e3},{id:"in_1",name:"slowLength",defval:26,type:"integer",min:1,max:2e3},{id:"in_3",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"signalLength",defval:9,type:"integer",min:1,max:50}],id:"Moving Average Convergence/Divergence@tv-basicstudies-1",scriptIdPart:"",name:"MACD",format:{type:"inherit"},symbolSource:{type:"symbolInputSymbolSource",inputId:"symbol"}},constructor:function(){this.f_0=function(e,t){return e-t},this.f_1=function(e){var t=e>0?1:3,i=r.change(this._context.new_var(e));return t-(r.le(i,0)?0:1)},this.init=function(e,t){this._context=e,""!==t(0)&&this._context.new_sym(t(0),r.period(this._context))},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(this._context.symbol.time),s=r[this._input(3)](this._context),n=this._input(1),o=this._input(2),a=this._input(4);if(this._context.setMinimumAdditionalDepth(Math.max(n,o)+a),""!==this._input(0)){this._context.select_sym(1);var l=this._context.new_var(this._context.symbol.time),c=r[this._input(3)](this._context);s=this._context.new_var(c).adopt(l,i,0),this._context.select_sym(0)}var h=this._context.new_var(s),d=r.ema(h,n,this._context),u=this._context.new_var(s),p=r.ema(u,o,this._context),_=this.f_0(d,p),m=this._context.new_var(_),g=r.ema(m,a,this._context),f=this.f_0(_,g);return[f,_,g,this.f_1(f)]}}},{name:"Moving Average Exponential",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1, +is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{length:9,source:"close",offset:0,smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"Moving Average Exponential",shortDescription:"EMA",is_price_study:!0,inputs:[{id:"length",name:"Length",defval:9,type:"integer",min:1,max:1e4},{id:"source",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"offset",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4},{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"Moving Average Exponential@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Exponential",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._input(3),a=this._input(4);this._context.setMinimumAdditionalDepth(s+a);var l,c=this._context.new_var(i),h=r.ema(c,s,this._context),d=this._context.new_var(h);return"EMA"===o?l=r.ema(d,a,this._context):"WMA"===o?l=r.wma(d,a,this._context):"SMA"===o&&(l=r.sma(d,a,this._context)),[{value:h,offset:n},{value:l,offset:n}]}}},{name:"Moving Average Weighted",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:9,in_1:"close",in_2:0}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Moving Average Weighted",shortDescription:"WMA",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:9,type:"integer",min:1,max:2e3},{id:"in_1",name:"Source",defval:"close",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_2",name:"Offset",defval:0,type:"integer",min:-1e4,max:1e4}],id:"Moving Average Weighted@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Weighted",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r[this._input(1)](this._context),s=this._input(0),n=this._input(2),o=this._context.new_var(i);return[{value:r.wma(o,s,this._context),offset:n}]}}},{name:"Moving Average Double",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"Moving Average Double@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Double",description:"Moving Average Double",shortDescription:"Moving Average Double",is_price_study:!0,plots:[{id:"plot_0",type:"line"},{ +id:"plot_1",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{firstPeriods:14,secondPeriods:21,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n=this._context.new_var(r.close(this._context));return"Exponential"===this._input(2)?(i=r.ema(n,this._input(0),this._context),s=r.ema(n,this._input(1),this._context)):"Weighted"===this._input(2)?(i=r.wma(n,this._input(0),this._context),s=r.wma(n,this._input(1),this._context)):(i=r.sma(n,this._input(0),this._context),s=r.sma(n,this._input(1),this._context)),[i,s]}}},{name:"Moving Average Triple",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Triple@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Triple",description:"Moving Average Triple",shortDescription:"Moving Average Triple",plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#FF6D00"},plot_1:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#2196F3"},plot_2:{linestyle:0,visible:!0,linewidth:1,transparency:0,plottype:0,trackPrice:!1,color:"#26C6DA"}},inputs:{firstPeriods:14,secondPeriods:21,thirdPeriods:35,method:"Simple"}},styles:{plot_0:{title:"Plot 1"},plot_1:{title:"Plot 2"},plot_2:{title:"Plot 3"}},inputs:[{id:"firstPeriods",name:"1st Period",type:"integer",defval:14,min:1,max:1e4,hideWhenPlotsHidden:["plot_0"]},{id:"secondPeriods",name:"2nd Period",type:"integer",defval:21,min:1,max:1e4,hideWhenPlotsHidden:["plot_1"]},{id:"thirdPeriods",name:"3rd Period",type:"integer",defval:35,min:1,max:1e4,hideWhenPlotsHidden:["plot_2"]},{id:"method",name:"Method",type:"text",defval:"Simple",options:["Simple","Exponential","Weighted"]}],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i,s,n,o=this._context.new_var(r.close(this._context));return"Exponential"===this._input(3)?(i=r.ema(o,this._input(0),this._context),s=r.ema(o,this._input(1),this._context),n=r.ema(o,this._input(2),this._context)):"Weighted"===this._input(3)?(i=r.wma(o,this._input(0),this._context),s=r.wma(o,this._input(1),this._context),n=r.wma(o,this._input(2),this._context)):(i=r.sma(o,this._input(0),this._context),s=r.sma(o,this._input(1),this._context),n=r.sma(o,this._input(2),this._context)),[i,s,n]}}},{name:"Moving Average Adaptive",metainfo:{_metainfoVersion:52,isTVScript:!1, +isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Adaptive@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Adaptive",description:"Moving Average Adaptive",shortDescription:"Moving Average Adaptive",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#AB47BC"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:2,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0)},this.ama=function(e,t){var i=this.periods,s=this._context.new_var(),n=e.get(),o=r.stdev(t,i,this._context),a=r.log(n/e.get(i))/(o*Math.sqrt(i)),l=.1*Math.abs(a),c=(n-s.get(1))*l+s.get(1);return s.set(isNaN(c)?n:c),c},this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.close(this._context)),s=this._context.new_var(r.log(i.get()/i.get(1)));return[this.ama(i,s)]}}},{name:"Moving Average Hamming",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Moving Average Hamming@tv-basicstudies-1",scriptIdPart:"",name:"Moving Average Hamming",description:"Moving Average Hamming",shortDescription:"Moving Average Hamming",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,transparency:0,trackPrice:!1,color:"#4CAF50"}},inputs:{periods:10}},styles:{plot_0:{title:"Plot 1"}},inputs:[{id:"periods",name:"Period",type:"integer",defval:10,min:1,max:1e4}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.periods=this._input(0);for(var i=[],s=0,r=1;r<=this.periods;++r){var n=Math.sin((1+r)/this.periods*Math.PI/2);i.unshift(n),s+=n}this.hmaFactors=i,this.hmaFactorsSum=s},this.hma=function(e){for(var t=this.periods,i=0,s=0;sthis._context.new_var(s).get(1)?1:0, +[100*r.sma(this._context.new_var(i),this.rollingPeriod,this._context)]}}},{name:"Net Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Net Volume",shortDescription:"Net Volume",is_price_study:!1,inputs:[],id:"Net Volume@tv-basicstudies-1",scriptIdPart:"",name:"Net Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return r.gt(e,0)?t:r.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._context.new_var(i),n=r.change(s);return[this.f_0(n,r.volume(this._context),n)]}}},{name:"On Balance Volume",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},smoothedMA:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!1}},inputs:{smoothingLine:"SMA",smoothingLength:9}},plots:[{id:"plot_0",type:"line"},{id:"smoothedMA",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1},smoothedMA:{title:"Smoothed MA",histogramBase:0,joinPoints:!1}},description:"On Balance Volume",shortDescription:"OBV",is_price_study:!1,inputs:[{id:"smoothingLine",name:"Smoothing Line",defval:"SMA",type:"text",options:["SMA","EMA","WMA"],hideWhenPlotsHidden:["smoothedMA"]},{id:"smoothingLength",name:"Smoothing Length",defval:9,type:"integer",min:1,max:1e4,hideWhenPlotsHidden:["smoothedMA"]}],id:"On Balance Volume@tv-basicstudies-1",scriptIdPart:"",name:"On Balance Volume",format:{type:"volume"}},constructor:function(){this.f_0=function(e,t,i){return r.gt(e,0)?t:r.lt(i,0)?-t:0*t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.close(this._context),o=this._context.new_var(n),a=r.change(o),l=this.f_0(a,r.volume(this._context),a),c=r.cum(l,this._context);this._context.setMinimumAdditionalDepth(s);var h,d=this._context.new_var(c);return"EMA"===i?h=r.ema(d,s,this._context):"WMA"===i?h=r.wma(d,s,this._context):"SMA"===i&&(h=r.sma(d,s,this._context)),[c,h]}}},{name:"Parabolic SAR",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:3,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:.02,in_1:.02,in_2:.2}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Parabolic SAR",shortDescription:"SAR",is_price_study:!0,inputs:[{id:"in_0",name:"start",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_1",name:"increment",defval:.02,type:"float",min:-1e12,max:1e12},{id:"in_2",name:"maximum",defval:.2,type:"float",min:-1e12,max:1e12}],id:"Parabolic SAR@tv-basicstudies-1",scriptIdPart:"",name:"Parabolic SAR",format:{type:"inherit"} +},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2);return[r.sar(i,s,n,this._context)]}}},{name:"Price Channel",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#F50057"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20,in_1:0}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Highprice Line",histogramBase:0,joinPoints:!1},plot_1:{title:"Lowprice Line",histogramBase:0,joinPoints:!1},plot_2:{title:"Centerprice Line",histogramBase:0,joinPoints:!1}},description:"Price Channel",shortDescription:"PC",is_price_study:!0,inputs:[{id:"in_0",name:"Length",defval:20,type:"integer",min:1,max:2e3},{id:"in_1",name:"Offset Length",defval:0,type:"integer",min:1,max:2e3}],id:"Price Channel@tv-basicstudies-1",scriptIdPart:"",name:"Price Channel",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.high(this._context),s=this._context.new_var(i),n=r.low(this._context),o=this._context.new_var(n),a=this._input(0),l=this._input(1),c=r.highest(s,a,this._context),h=r.lowest(o,a,this._context);return[{value:c,offset:l},{value:h,offset:l},{value:r.avg(c,h),offset:l}]}}},{name:"Price Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:u}},inputs:{in_0:10,in_1:21}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"Price Oscillator",shortDescription:"PPO",is_price_study:!1,inputs:[{id:"in_0",name:"shortlen",defval:10,type:"integer",min:1,max:2e3},{id:"in_1",name:"longlen",defval:21,type:"integer",min:1,max:2e3}],id:"Price Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Price Oscillator",format:{type:"price",precision:2}},constructor:function(){this.f_0=function(e,t){return(e-t)/t*100},this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._input(0),n=this._input(1),o=this._context.new_var(i),a=r.sma(o,s,this._context),l=this._context.new_var(i),c=r.sma(l,n,this._context);return[this.f_0(a,c)]}}},{name:"Price Volume Trend",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"PVT",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Price Volume Trend",shortDescription:"PVT",is_price_study:!1,is_hidden_study:!1,id:"price_volume_trend@tv-basicstudies-1",inputs:[],scriptIdPart:"",name:"Price Volume Trend",format:{ +type:"volume"}},constructor:function(){this.f_0=function(){var e=this._context.new_var(r.close(this._context));return[r.cum(r.change(e)/e.get(1)*r.volume(this._context),this._context)]},this.main=function(e,t){return this._context=e,this._input=t,[this.f_0()[0]]}}},{name:"Rank Correlation Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:12}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"RCI",histogramBase:0,joinPoints:!1,isHidden:!1,zorder:1}},description:"Rank Correlation Index",shortDescription:"RCI",is_price_study:!1,bands:[{id:"hline_0",name:"Zero Line",isHidden:!1,zorder:-1}],inputs:[{id:"in_0",name:"length",defval:12,type:"integer",min:1,max:1e12}],id:"rank_correlation_index@tv-basicstudies-1",scriptIdPart:"",name:"Rank Correlation Index",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.orderRank=function(e,t,i){let s=e.get(t),n=1,o=0;for(let t=0;t0?1:-1:a/(l=Math.sqrt(l))},this.main=function(e,t){return this._context=e,this._input=t,[this.trendStrengthIndex()]}}},{name:"Typical Price",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,id:"TypicalPrice@tv-basicstudies-1",scriptIdPart:"",name:"Typical Price",description:"Typical Price",shortDescription:"Typical Price",is_price_study:!0,plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#FF6D00"}},inputs:{}},styles:{plot_0:{title:"Plot"}},inputs:[],format:{type:"inherit"}},constructor:function(){this.main=function(e,t){return this._context=e,this._input=t,[r.hlc3(this._context)]}}},{name:"Ultimate Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:a}}, +inputs:{in_0:7,in_1:14,in_2:28}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"UO",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Ultimate Oscillator",shortDescription:"UO",is_price_study:!1,inputs:[{id:"in_0",name:"length7",defval:7,type:"integer",min:1,max:1e12},{id:"in_1",name:"length14",defval:14,type:"integer",min:1,max:1e12},{id:"in_2",name:"length28",defval:28,type:"integer",min:1,max:1e12}],id:"ultimate_oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Ultimate Oscillator",format:{precision:2,type:"price"}},constructor:function(){this.f_0=function(e,t,i){var s=this._context.new_var(e),n=this._context.new_var(t);return[r.sum(s,i,this._context)/r.sum(n,i,this._context)]},this.f_1=function(){var e=this._input(0),t=this._input(1),i=this._input(2),s=this._context.new_var(r.close(this._context)),n=r.max(r.high(this._context),s.get(1)),o=this._context.new_var(r.close(this._context)),a=r.min(r.low(this._context),o.get(1)),l=r.close(this._context)-a,c=n-a,h=this.f_0(l,c,e),d=this.f_0(l,c,t),u=this.f_0(l,c,i);return[100*(4*h[0]+2*d[0]+u[0])/7]},this.main=function(e,t){return this._context=e,this._input=t,this.f_1()}}},{name:"Volatility Close-to-Close",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!1,id:"Volatility Close-to-Close@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Close-to-Close",description:"Volatility Close-to-Close",shortDescription:"Volatility Close-to-Close",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0,visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:"#2196F3"}},inputs:{periods:10,daysPerYear:252}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer",defval:10,min:2},{id:"daysPerYear",name:"Days Per Year",type:"integer",defval:252,min:1,max:366}],format:{precision:2,type:"percent"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.daysPerYear=this._input(1)},this.stdev=function(e,t,i){var s=this.variance(e,t,i);return r.sqrt(s)},this.variance=function(e,t,i){var s=r.sma(e,t,i);return this.variance2(e,s,t)},this.variance2=function(e,t,i){var s,r,n=0;for(s=0;s0&&(l=.12*this.square(e.get()-s.get(1))/this.marketClosedPercentage+.88*l/(1-this.marketClosedPercentage)),l/=a,l*=this.secondsPerYear;var c=this._context.new_var(l);return 100*Math.sqrt(r.sum(c,this.period,this._context)/this.period)},this.main=function(e,t){return this._context=e,this._input=t,[this.volatilityOHLC()]}}},{name:"Volatility Index",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,is_price_study:!0,id:"Volatility Index@tv-basicstudies-1",scriptIdPart:"",name:"Volatility Index",description:"Volatility Index",shortDescription:"Volatility Index",plots:[{id:"plot_0",type:"line"}],defaults:{styles:{plot_0:{linestyle:0, +visible:!0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,color:c}},inputs:{periods:10,atrMult:3,method:"Wilder Smoothing"}},styles:{plot_0:{title:"Plot"}},inputs:[{id:"periods",name:"Periods",type:"integer"},{id:"atrMult",name:"ATR Mult",type:"float"},{id:"method",name:"Method",type:"text",defval:"Exponential",options:["Exponential","Wilder Smoothing"]}],format:{type:"inherit"}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this.period=this._input(0),this.atrMult=this._input(1),this.maMethod=this._input(2),this.nextsar=null,this.position=null,this.sic=null,this.bars=[],this.count=0,this.lastSar=null,this._context.setMinimumAdditionalDepth("Exponential"===this.maMethod?2*this.period+2:this.period)},this.computeATR=function(){var e=r.high(this._context)-r.low(this._context),t=r.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-r.low(this._context);return this.tr=Math.max(e,t,i),"Exponential"===this.maMethod?this.atr=r.ema(this._context.new_var(this.tr),this.period,this._context):this.atr=this.tr/this.period+(1-1/this.period)*this.atr,this.atr*this.atrMult},this.calculateVolatility=function(){if(r.close(this._context)===this.bars[this.bars.length-1])return this.lastSar;if(this.bars.push(r.close(this._context)),1===this.count)this.atr=r.high(this._context)-r.low(this._context),this.sic=r.close(this._context);else if(this.countthis.sic&&(this.sic=r.close(this._context))}else if(this.count===this.period){e=r.high(this._context)-r.low(this._context),t=r.high(this._context)-this.bars[this.bars.length-2],i=this.bars[this.bars.length-2]-r.low(this._context);this.atr+=Math.max(e,t,i),this.atr*=1/this.period,r.close(this._context)>this.sic&&(this.sic=r.close(this._context)),this.position="LONG",this.nextsar=this.sic-this.atr*this.atrMult}else{var s=this.nextsar;"LONG"===this.position?r.close(this._context)s?(this.position="LONG",this.sic=r.close(this._context),this.nextsar=this.sic-this.computeATR()):(this.position="SHORT",this.sic=Math.min(r.close(this._context),this.sic),this.nextsar=this.sic+this.computeATR())),this.lastSar=s}return this.count++,s},this.main=function(e,t){return this._context=e,this._input=t,this._context.select_sym(0),[this.calculateVolatility()]}}},{name:"VWAP",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{inputs:{in_0:"hlc3",in_anchor:"Session"},styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:0,transparency:0,visible:!0,color:"#2196F3"}}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"VWAP", +histogramBase:0,joinPoints:!1,isHidden:!1}},description:"VWAP",shortDescription:"VWAP",is_price_study:!0,inputs:[{id:"in_0",name:"Source",defval:"hlc3",type:"source",options:["open","high","low","close","hl2","hlc3","ohlc4"]},{id:"in_anchor",name:"Anchor Period",defval:"Session",type:"text",options:["Session","Week","Month","Quarter","Year","Decade","Century"]}],id:"VWAP@tv-basicstudies-1",scriptIdPart:"",name:"VWAP",format:{type:"inherit"}},constructor:function(){this.f_1=function(e){e.reset_hist()},this.createAnchorChecker=function(e,t){switch(t){case"Week":return function(t,i){return r.weekofyear(e,t)!==r.weekofyear(e,i)||r.year(e,t)!==r.year(e,i)};case"Month":return function(t,i){return r.month(e,t)!==r.month(e,i)||r.year(e,t)!==r.year(e,i)};case"Quarter":return function(t,i){return Math.floor(r.month(e,t)/3)!==Math.floor(r.month(e,i)/3)||r.year(e,t)!==r.year(e,i)};case"Year":return function(t,i){return r.year(e,t)!==r.year(e,i)};case"Decade":return function(t,i){return Math.floor(r.year(e,t)/10)!==Math.floor(r.year(e,i)/10)};case"Century":return function(t,i){return Math.floor(r.year(e,t)/100)!==Math.floor(r.year(e,i)/100)};default:return e=>this._isFirstBarInSession(e)}},this.init=function(e,t){this._input=t,this._isFirstBarInSession=null;const i=this._input(1)||"Session";this._anchorChecker=this.createAnchorChecker(e,i)},this.main=function(e,t){this._context=e,this._input=t;const i=this._input(0);var s=e.new_var(),n=e.new_var(),o=e.new_var();const a=r.time(this._context),l=this._context.new_unlimited_var(a).get(1);if(a){if(null===this._isFirstBarInSession){const t=r.createNthBarInSessionCheck(e);this._isFirstBarInSession=e=>t(e,0)}this._anchorChecker(a,l)&&(this.f_1(s),this.f_1(n),o.set(a))}return s.set(r.nz(s.get(1))+r[i](this._context)*r.volume(this._context)),n.set(r.nz(n.get(1))+r.volume(this._context)),r.na(o.get(0))?[NaN]:[s.get(0)/n.get(0)]}}},{name:"VWMA",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},inputs:{in_0:20}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1}},description:"VWMA",shortDescription:"VWMA",is_price_study:!0,inputs:[{id:"in_0",name:"len",defval:20,type:"integer",min:1,max:1e4}],id:"VWMA@tv-basicstudies-1",scriptIdPart:"",name:"VWMA",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=r.close(this._context),s=this._input(0),n=this._context.new_var(i);return[r.vwma(n,s,this._context)]}}},{name:"Volume Oscillator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:0}],inputs:{in_0:5,in_1:10}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,zorder:1}},description:"Volume Oscillator", +shortDescription:"Volume Osc",is_price_study:!1,bands:[{id:"hline_0",name:"Zero",zorder:-1}],inputs:[{id:"in_0",name:"shortlen",defval:5,type:"integer",min:1,max:4999},{id:"in_1",name:"longlen",defval:10,type:"integer",min:1,max:4999}],id:"Volume Oscillator@tv-basicstudies-1",scriptIdPart:"",name:"Volume Oscillator",format:{precision:2,type:"percent"},usePlotsZOrder:!0},constructor:function(){this.f_0=function(e,t){return 100*(e-t)/t},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=r.volume(this._context),o=this._context.new_var(n),a=r.ema(o,i,this._context),l=this._context.new_var(n),c=r.ema(l,s,this._context);return[this.f_0(a,c)]}}},{name:"Vortex Indicator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"}],styles:{plot_0:{title:"VI +",histogramBase:0,joinPoints:!1,isHidden:!1},plot_1:{title:"VI -",histogramBase:0,joinPoints:!1,isHidden:!1}},description:"Vortex Indicator",shortDescription:"VI",is_price_study:!1,is_hidden_study:!1,id:"vortex_indicator@tv-basicstudies-1",inputs:[{id:"in_0",name:"Period",defval:14,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Vortex Indicator",format:{precision:4,type:"price"}},constructor:function(){this.f_0=function(){var e=this._input(0),t=this._context.new_var(r.low(this._context)),i=this._context.new_var(r.abs(r.high(this._context)-t.get(1))),s=r.sum(i,e,this._context),n=this._context.new_var(r.high(this._context)),o=this._context.new_var(r.abs(r.low(this._context)-n.get(1))),a=r.sum(o,e,this._context),l=this._context.new_var(r.atr(1,this._context)),c=r.sum(l,e,this._context);return[s/c,a/c]},this.main=function(e,t){return this._context=e,this._input=t,this.f_0()}}},{name:"Willams %R",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#7E57C2"}},bands:[{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-20},{color:"#787B86",linestyle:2,linewidth:1,visible:!0,value:-80}],filledAreasStyle:{fill_0:{color:"#7E57C2",transparency:90,visible:!0}},inputs:{in_0:14}},plots:[{id:"plot_0",type:"line"}],styles:{plot_0:{title:"Plot",histogramBase:0,joinPoints:!1,zorder:1}},description:"Williams %R",shortDescription:"%R",is_price_study:!1,bands:[{id:"hline_0",name:"UpperLimit",zorder:-1.1},{id:"hline_1",name:"LowerLimit",zorder:-1.11}],filledAreas:[{id:"fill_0",objAId:"hline_0",objBId:"hline_1",type:"hline_hline",title:"Hlines Background",zorder:-2}],inputs:[{id:"in_0",name:"length",defval:14,type:"integer",min:1,max:2e3}],id:"Willams %R@tv-basicstudies-1",scriptIdPart:"",name:"Willams %R",format:{precision:2,type:"price"},usePlotsZOrder:!0},constructor:function(){this.f_0=function(e,t,i){ +return 100*(e-t)/(t-i)},this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=r.high(this._context),n=this._context.new_var(s),o=r.highest(n,i,this._context),a=r.low(this._context),l=this._context.new_var(a),c=r.lowest(l,i,this._context);return[this.f_0(r.close(this._context),o,c)]}}},{name:"Williams Alligator",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,defaults:{styles:{plot_0:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#2196F3"},plot_1:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#E91E63"},plot_2:{linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0,color:"#66BB6A"}},inputs:{in_0:21,in_1:13,in_2:8,in_3:8,in_4:5,in_5:3}},plots:[{id:"plot_0",type:"line"},{id:"plot_1",type:"line"},{id:"plot_2",type:"line"}],styles:{plot_0:{title:"Jaw",histogramBase:0,joinPoints:!1},plot_1:{title:"Teeth",histogramBase:0,joinPoints:!1},plot_2:{title:"Lips",histogramBase:0,joinPoints:!1}},description:"Williams Alligator",shortDescription:"Alligator",is_price_study:!0,inputs:[{id:"in_0",name:"Jaw Length",defval:21,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_0"]},{id:"in_1",name:"Teeth Length",defval:13,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_1"]},{id:"in_2",name:"Lips Length",defval:8,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_2"]},{id:"in_3",name:"Jaw Offset",defval:8,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_0"]},{id:"in_4",name:"Teeth Offset",defval:5,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_1"]},{id:"in_5",name:"Lips Offset",defval:3,type:"integer",min:1,max:2e3,hideWhenPlotsHidden:["plot_2"]}],id:"Williams Alligator@tv-basicstudies-1",scriptIdPart:"",name:"Williams Alligator",format:{type:"inherit"}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._input(0),s=this._input(1),n=this._input(2),o=this._input(3),a=this._input(4),l=this._input(5),c=r.hl2(this._context);return[{value:r.smma(c,i,this._context),offset:o},{value:r.smma(c,s,this._context),offset:a},{value:r.smma(c,n,this._context),offset:l}]}}},{name:"Williams Fractals",metainfo:{_metainfoVersion:52,isTVScript:!1,isTVScriptStub:!1,defaults:{styles:{plot_0:{plottype:"shape_triangle_down",visible:!0,location:"BelowBar",transparency:0,color:a},plot_1:{plottype:"shape_triangle_up",visible:!0,location:"AboveBar",transparency:0,color:u}},inputs:{in_0:2}},plots:[{id:"plot_0",type:"shapes"},{id:"plot_1",type:"shapes"}],styles:{plot_0:{title:"Down fractals",isHidden:!1},plot_1:{title:"Up fractals",isHidden:!1}},description:"Williams Fractal",shortDescription:"Fractals",is_price_study:!0,is_hidden_study:!1,id:"Williams Fractals@tv-basicstudies-1",inputs:[{id:"in_0",name:"Periods",defval:2,type:"integer",min:2,max:1e12}],scriptIdPart:"",name:"Williams Fractals",isCustomIndicator:!0,format:{type:"inherit"}},constructor:function(){this.f_0=function(){ +for(var e=this._input(0),t=this._context.new_var(r.high(this._context)),i=!0,s=!0,n=!0,o=!0,a=!0,l=!0,c=1;c<=e;c++)i=r.and(i,r.lt(t.get(e-c),t.get(e))),s=r.and(s,r.lt(t.get(e+c),t.get(e))),n=r.and(n,r.and(r.le(t.get(e+1),t.get(e)),r.lt(t.get(e+c+1),t.get(e)))),o=r.and(o,r.and(r.le(t.get(e+1),t.get(e)),r.and(r.le(t.get(e+2),t.get(e)),r.lt(t.get(e+c+2),t.get(e))))),a=r.and(a,r.and(r.le(t.get(e+1),t.get(e)),r.and(r.le(t.get(e+2),t.get(e)),r.and(r.le(t.get(e+3),t.get(e)),r.lt(t.get(e+c+3),t.get(e)))))),l=r.and(l,r.and(r.le(t.get(e+1),t.get(e)),r.and(r.le(t.get(e+2),t.get(e)),r.and(r.le(t.get(e+3),t.get(e)),r.and(r.le(t.get(e+4),t.get(e)),r.lt(t.get(e+c+4),t.get(e)))))));var h=r.or(s,r.or(n,r.or(o,r.or(a,l)))),d=r.and(i,h),u=this._context.new_var(r.low(this._context)),p=1,_=1,m=1,g=1,f=1,v=1;for(c=1;c<=e;c++)p=r.and(p,r.gt(u.get(e-c),u.get(e))),_=r.and(_,r.gt(u.get(e+c),u.get(e))),m=r.and(m,r.and(r.ge(u.get(e+1),u.get(e)),r.gt(u.get(e+c+1),u.get(e)))),g=r.and(g,r.and(r.ge(u.get(e+1),u.get(e)),r.and(r.ge(u.get(e+2),u.get(e)),r.gt(u.get(e+c+2),u.get(e))))),f=r.and(f,r.and(r.ge(u.get(e+1),u.get(e)),r.and(r.ge(u.get(e+2),u.get(e)),r.and(r.ge(u.get(e+3),u.get(e)),r.gt(u.get(e+c+3),u.get(e)))))),v=r.and(v,r.and(r.ge(u.get(e+1),u.get(e)),r.and(r.ge(u.get(e+2),u.get(e)),r.and(r.ge(u.get(e+3),u.get(e)),r.and(r.ge(u.get(e+4),u.get(e)),r.gt(u.get(e+c+4),u.get(e)))))));var y=r.or(_,r.or(m,r.or(g,r.or(f,v))));return[r.and(p,y),d]},this.main=function(e,t){this._context=e,this._input=t;var i=this.f_0();return[{value:i[0],offset:-this._input(0)},{value:i[1],offset:-this._input(0)}]}}},{name:"Guppy Multiple Moving Average",metainfo:{isTVScript:!1,isTVScriptStub:!1,is_hidden_study:!1,description:"Guppy Multiple Moving Average",shortDescription:"GMMA",is_price_study:!0,id:"Guppy Multiple Moving Average@tv-basicstudies-1",_metainfoVersion:52,format:{type:"inherit"},defaults:{inputs:{traderEMA1Length:3,traderEMA2Length:5,traderEMA3Length:8,traderEMA4Length:10,traderEMA5Length:12,traderEMA6Length:15,investorEMA1Length:30,investorEMA2Length:35,investorEMA3Length:40,investorEMA4Length:45,investorEMA5Length:50,investorEMA6Length:60},styles:{traderEMA1:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},traderEMA2:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},traderEMA3:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:9,visible:!0},traderEMA4:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},traderEMA5:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},traderEMA6:{color:"#00FFFF",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0},investorEMA1:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:15,visible:!0},investorEMA2:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:12,visible:!0},investorEMA3:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1, +transparency:9,visible:!0},investorEMA4:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:6,visible:!0},investorEMA5:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:3,visible:!0},investorEMA6:{color:"#FF0000",linestyle:0,linewidth:1,plottype:0,trackPrice:!1,transparency:0,visible:!0}}},inputs:[{defval:3,id:"traderEMA1Length",max:1e3,min:1,name:"Trader EMA 1 length",type:"integer",hideWhenPlotsHidden:["traderEMA1"]},{defval:5,id:"traderEMA2Length",max:1e3,min:1,name:"Trader EMA 2 length",type:"integer",hideWhenPlotsHidden:["traderEMA2"]},{defval:8,id:"traderEMA3Length",max:1e3,min:1,name:"Trader EMA 3 length",type:"integer",hideWhenPlotsHidden:["traderEMA3"]},{defval:10,id:"traderEMA4Length",max:1e3,min:1,name:"Trader EMA 4 length",type:"integer",hideWhenPlotsHidden:["traderEMA4"]},{defval:12,id:"traderEMA5Length",max:1e3,min:1,name:"Trader EMA 5 length",type:"integer",hideWhenPlotsHidden:["traderEMA5"]},{defval:15,id:"traderEMA6Length",max:1e3,min:1,name:"Trader EMA 6 length",type:"integer",hideWhenPlotsHidden:["traderEMA6"]},{defval:30,id:"investorEMA1Length",max:1e3,min:1,name:"Investor EMA 1 length",type:"integer",hideWhenPlotsHidden:["investorEMA1"]},{defval:35,id:"investorEMA2Length",max:1e3,min:1,name:"Investor EMA 2 length",type:"integer",hideWhenPlotsHidden:["investorEMA2"]},{defval:40,id:"investorEMA3Length",max:1e3,min:1,name:"Investor EMA 3 length",type:"integer",hideWhenPlotsHidden:["investorEMA3"]},{defval:45,id:"investorEMA4Length",max:1e3,min:1,name:"Investor EMA 4 length",type:"integer",hideWhenPlotsHidden:["investorEMA4"]},{defval:50,id:"investorEMA5Length",max:1e3,min:1,name:"Investor EMA 5 length",type:"integer",hideWhenPlotsHidden:["investorEMA5"]},{defval:60,id:"investorEMA6Length",max:1e3,min:1,name:"Investor EMA 6 length",type:"integer",hideWhenPlotsHidden:["investorEMA6"]}],plots:[{id:"traderEMA1",type:"line"},{id:"traderEMA2",type:"line"},{id:"traderEMA3",type:"line"},{id:"traderEMA4",type:"line"},{id:"traderEMA5",type:"line"},{id:"traderEMA6",type:"line"},{id:"investorEMA1",type:"line"},{id:"investorEMA2",type:"line"},{id:"investorEMA3",type:"line"},{id:"investorEMA4",type:"line"},{id:"investorEMA5",type:"line"},{id:"investorEMA6",type:"line"}],styles:{traderEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 1"},traderEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 2"},traderEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 3"},traderEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 4"},traderEMA5:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 5"},traderEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Trader EMA 6"},investorEMA1:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 1"},investorEMA2:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 2"},investorEMA3:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 3"},investorEMA4:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 4"},investorEMA5:{ +histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 5"},investorEMA6:{histogramBase:0,isHidden:!1,joinPoints:!1,title:"Investor EMA 6"}}},constructor:function(){this.main=function(e,t){this._context=e,this._input=t;var i=this._context.new_var(r.close(this._context)),s=this._input(0),n=this._input(1),o=this._input(2),a=this._input(3),l=this._input(4),c=this._input(5),h=r.ema(i,s,this._context),d=r.ema(i,n,this._context),u=r.ema(i,o,this._context),p=r.ema(i,a,this._context),_=r.ema(i,l,this._context),m=r.ema(i,c,this._context),g=this._input(6),f=this._input(7),v=this._input(8),y=this._input(9),S=this._input(10),b=this._input(11);return[h,d,u,p,_,m,r.ema(i,g,this._context),r.ema(i,f,this._context),r.ema(i,v,this._context),r.ema(i,y,this._context),r.ema(i,S,this._context),r.ema(i,b,this._context)]}}},{name:"52 Week High/Low",metainfo:{_metainfoVersion:52,id:"52 Week High/Low@tv-basicstudies-1",description:"52 Week High/Low",shortDescription:"52W H/L",is_price_study:!0,format:{type:"inherit"},plots:[],graphics:{horizlines:{highest:{name:"Highest"},lowest:{name:"Lowest"}}},inputs:[{defval:"close",id:"highestSource",name:"High source",options:["close","high"],type:"text"},{defval:"close",id:"lowestSource",name:"Low source",options:["close","low"],type:"text"}],defaults:{graphics:{horizlines:{highest:{color:"rgb(93, 96, 107)",showPrice:!0,style:1,visible:!0,width:2},lowest:{color:"rgb(93, 96, 107)",showPrice:!0,style:1,visible:!0,width:2}}},inputs:{highestSource:"close",lowestSource:"close"}}},constructor:function(){this.init=function(e,t){this._context=e,this._input=t,this._symbolSupports1DResolution=!this._context.symbol.info.supported_resolutions||-1!==this._context.symbol.info.supported_resolutions.indexOf("1D"),this._symbolSupports1DResolution&&"1D"!==r.period(this._context)&&this._context.new_sym(this._context.symbol.ticker,"1D")},this.main=function(e,t){this._symbolSupports1DResolution||r.error(`Daily bars are not available for ${this._context.symbol.info.name}`),this._context=e,this._input=t,"1D"!==r.period(this._context)&&this._context.select_sym(1);const i=this._input(0),s=this._input(1),n=r.time(this._context),o=this._context.new_unlimited_var(n),a=this._context.new_unlimited_var(r[i](this._context)),l=this._context.new_unlimited_var(r[s](this._context));if(o.get(365),!this._context.symbol.isLastBar||!this._context.symbol.isNewBar)return null;const c=r.add_years_considering_dst(this._context.symbol.info.timezone,new Date(n),-1),h=o.indexOf(c.getTime()),d=-1===h?NaN:r.highest(a,h,this._context),u=-1===h?NaN:r.lowest(l,h,this._context);if(isNaN(d)||isNaN(u))return{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{erase:[{action:"all"}]}}};return{nonseries:!0,type:"study_graphics",data:{graphicsCmds:{create:{horizlines:[{styleId:"highest",data:[{startIndex:n,endIndex:n,level:d,extendLeft:!0,extendRight:!0}]},{styleId:"lowest",data:[{startIndex:n,endIndex:n,level:u,extendLeft:!0,extendRight:!0}]}]},erase:[{action:"all"}]}}}}}}]},91007:(e,t,i)=>{"use strict";var s;i.d(t,{SubsessionId:()=>s}),function(e){ +e.Regular="regular",e.Extended="extended",e.PreMarket="premarket",e.PostMarket="postmarket"}(s||(s={}))},16426:(e,t,i)=>{"use strict";i.d(t,{PointsetsManager:()=>n});var s=i(85049);const r=(0,i(31955).getLogger)("ChartApi.PointsetsManager");class n{constructor(){this._pointsetsDataBySymbol=new Map}destroy(){this._pointsetsDataBySymbol.clear()}createPointset(e,t,i,s,n){let o=this._pointsetsDataBySymbol.get(t);void 0===o&&(o=new Map,this._pointsetsDataBySymbol.set(t,o));const a=[];for(const t of s){const[i,s]=t;"number"!=typeof i||Number.isNaN(i)?r.logWarn(`Pointset time is invalid: id=${e}, ${i} of type ${typeof i}`):a.push({point:t,extrapolation:n.extrapolateTimeWithOffsetToTime(1e3*i,s)})}s.length===a.length&&o.set(e,{resolution:i,points:a})}removePointset(e){const t=[];this._pointsetsDataBySymbol.forEach(((i,s)=>{i.delete(e),0===i.size&&t.push(s)}));for(const e of t)this._pointsetsDataBySymbol.delete(e)}invalidatePointsetsForSymbol(e,t){const i=this._pointsetsDataBySymbol.get(e);void 0!==i&&i.forEach(((e,i)=>{if(s.Interval.isEqual(e.resolution,t))for(const t of e.points)null!==t.extrapolation&&t.extrapolation.exact&&(t.extrapolation.exact=!1)}))}getUpdatesForSymbol(e,t,i,s){const r=new Map,n=this._pointsetsDataBySymbol.get(e);return void 0!==n&&n.forEach(((e,n)=>{const o=this._refreshPointsetData(e,t,i,s);null!==o&&r.set(n,o)})),r}_refreshPointsetData(e,t,i,n){if(s.Interval.isEqual(e.resolution,t))for(let t=0;t ${t}`),null;o.push({index:i,value:[a.index,a.timeMs/1e3]})}return o}}},75683:(e,t,i)=>{"use strict";i.d(t,{SessionTimeScale:()=>y});var s=i(50151),r=i(56570),n=i(2740),o=i(29981),a=i(53388),l=i(50503),c=i(9447);function h(e){return 60*e*60*1e3}function d(e){return 60*e*1e3}const u=[{divisor:1,weight:18},{divisor:(p=1,1e3*p),weight:19},{divisor:d(1),weight:20},{divisor:d(5),weight:21},{divisor:d(30),weight:22},{divisor:h(1),weight:30},{divisor:h(3),weight:31},{divisor:h(6),weight:32},{divisor:h(12),weight:33}];var p,_;function m(e,t){if(null!==t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;const i=t.getTime(),s=e.getTime();for(let e=u.length-1;e>=0;--e)if(Math.floor(i/u[e].divisor)!==Math.floor(s/u[e].divisor))return u[e].weight}return 18}function g(e,t,i=0){if(0===e.length)return[];let s=i,r=i;const n=[];for(;s=t.length?(n.push({old:s,new:l.INVALID_TIME_POINT_INDEX}),s++):e[s].timeMs===t[r].timeMs?(s!==r&&n.push({old:s,new:r}),s++,r++):e[s].timeMs{ +if(e.new===t.new&&e.new===l.INVALID_TIME_POINT_INDEX)return e.old-t.old;if(e.new===l.INVALID_TIME_POINT_INDEX)return-1;if(t.new===l.INVALID_TIME_POINT_INDEX)return 1;const i=e.old-e.new,s=t.old-t.new;return i>0?s>0?e.old-t.old:-1:s<0?t.new-e.new:1}))}function f(e,t){return{span:e.markWeight,time:e.displayTime,index:t}}!function(e){e[e.FutureTickMarksLimit=1e3]="FutureTickMarksLimit"}(_||(_={}));const v=r.enabled("end_of_period_timescale_marks");class y{constructor(){this._completed=!0,this._mainSymbolExtrapolator=null,this._pointDataByTimePoint=new Map,this._instanceIds=new Set,this._displayTimezone=null,this._minFutureBarsCount=0,this._sortedTimePoints=[]}destroy(){this.clearTimeScale()}setCompleted(e){this._completed=e}isCompleted(){return this._completed}clearTimeScale(){return this._pointDataByTimePoint.clear(),this._instanceIds.clear(),this._sortedTimePoints=[],{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]}}indexOfTime(e){if(0===this._sortedTimePoints.length)return null===this._mainSymbolExtrapolator?null:this._mainSymbolExtrapolator.indexOfTime(e);if(ethis._sortedTimePoints[this._sortedTimePoints.length-1].timeMs){if(null===this._mainSymbolExtrapolator)return null;const t=this._mainSymbolExtrapolator.indexOfTime(e),i=this._mainSymbolExtrapolator.indexOfTime(this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs);if(null===t||null===i)return null;const s=t.index-i.index-1;return{index:this._sortedTimePoints.length+s,timeMs:t.timeMs}}let t=(0,o.lowerbound)(this._sortedTimePoints,e,((e,t)=>e.timeMs({timeMs:e,markWeight:0,displayTime:NaN})));this._fillPointsData(i,0,0!==this._sortedTimePoints.length?this._sortedTimePoints[this._sortedTimePoints.length-1].displayTime:null);const r=[];for(let t=e;tf(e,i+t)));return r.concat(n)}setTimezone(e){this._displayTimezone="exchange"===e?null:(0,n.get_timezone)(e), +this._fillPointsData(this._sortedTimePoints,0)}fillIndexesInRows(e){if(0===e.length)return;let t=-1,i=(0,o.lowerbound)(this._sortedTimePoints,Math.round(1e3*e[0].value[0]),((e,t)=>e.timeMse.timeMs{for(;i=this._sortedTimePoints.length){const t=this.indexOfTime(e);if(null===t)return l.INVALID_TIME_POINT_INDEX;i=t.timeMs!==e?t.index+1:t.index}return(0,s.assert)(i>t,"data must have unique sorted times"),t=i,i}))}firstSeriesBarTime(){return 0===this._sortedTimePoints.length?null:this._sortedTimePoints[0].timeMs}replaceBarsTimesTail(e,t){if(0===t.length)return null;if(!this._instanceIds.has(e))return this.setSeriesBarsTimes(e,t);const i=[],s=(0,o.lowerbound)(this._sortedTimePoints,t[0],((e,t)=>e.timeMs({timeMs:e.timeMs,pointData:e.pointData,markWeight:0,displayTime:NaN})));for(let e=s;ee.timeMs-t.timeMs));const a=this._updateTimeScalePointsTail(n);return this._applyTimeScaleChanges(a,!1)}setSeriesBarsTimes(e,t){return this._setBarsTimes(e,t)}setStudyBarsTimes(e,t){return this._setBarsTimes(e,t)}_setBarsTimes(e,t){const i=0!==this._pointDataByTimePoint.size;if(this._instanceIds.has(e))for(const t of this._sortedTimePoints)t.pointData.instances.delete(e);0===t.length?this._instanceIds.delete(e):this._instanceIds.add(e),this._addBarsTimesToInstance(e,t,!1),i&&this._cleanupPointsData(this._sortedTimePoints);const s=[];this._pointDataByTimePoint.forEach(((e,t)=>{s.push({markWeight:0,timeMs:t,displayTime:NaN,pointData:e})})),s.sort(((e,t)=>e.timeMs-t.timeMs));const r=this._updateTimeScalePoints(s);return this._applyTimeScaleChanges(r,!1)}_updateFutureBars(){if(0===this._minFutureBarsCount||null===this._mainSymbolExtrapolator)return;if(0!==this._sortedTimePoints.length){const e=this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs;this._mainSymbolExtrapolator.ensureExtrapolatedToFutureTime(e)}const e=this._futureBarsFirstPointIndex();this._mainSymbolExtrapolator.setMinFutureBarsCount(e+this._minFutureBarsCount)}_addBarsTimesToInstance(e,t,i){const s=i?[]:null;for(const i of t){ +const t=this._pointDataByTimePoint.get(i);if(void 0===t){const t=new Set;t.add(e);const r={index:0,instances:t};this._pointDataByTimePoint.set(i,r),null!==s&&s.push({timeMs:i,pointData:r})}else t.instances.add(e)}return s}_futureBarsFirstPointIndex(){if(null===this._mainSymbolExtrapolator||0===this._sortedTimePoints.length)return 0;const e=this._mainSymbolExtrapolator.futureBars();return(0,o.upperbound_int)(e,this._sortedTimePoints[this._sortedTimePoints.length-1].timeMs)}_futureBars(){return null===this._mainSymbolExtrapolator?[]:this._mainSymbolExtrapolator.futureBars().slice(this._futureBarsFirstPointIndex(),this._futureBarsFirstPointIndex()+1e3)}_cleanupPointsData(e){for(const t of e)0===t.pointData.instances.size&&this._pointDataByTimePoint.delete(t.timeMs)}_updateTimeScalePoints(e){let t=-1;for(let i=0;ie.timeMs=this._sortedTimePoints.length)continue;this._sortedTimePoints[n].timeMs!==r.timeMs&&-1===i&&(i=n)}const s=t+e.length;if(i=S(i,this._sortedTimePoints.length,s),-1===i)return null;this._fillPointsData(e,0,0===t||0===this._sortedTimePoints.length?null:this._sortedTimePoints[t-1].displayTime);const r=g(this._sortedTimePoints.slice(t),e).map((e=>({old:e.old+t,new:e.new===l.INVALID_TIME_POINT_INDEX?e.new:e.new+t})));{const i=this._sortedTimePoints;let r=0;for(;t+r1&&null===i){const t=Math.ceil(n/(e.length-1)),i=new Date(1e3*(e[0].displayTime-t));e[0].markWeight=m(new Date(1e3*e[0].displayTime),i)}}(e,t,i)}_applyTimeScaleChanges(e,t){if(null===e)return t?(this._fillPointsData(this._sortedTimePoints,0),{points:[],pointsIndex:0,baseIndex:this._getBaseIndex(),indexChange:[],marks:this.tickMarks(0)}):null;let i=e.pointsIndex;if(0!==i&&t&&(this._fillPointsData(this._sortedTimePoints,0),i=0),0===this._sortedTimePoints.length)return{baseIndex:null,pointsIndex:0,indexChange:[],marks:[],points:[]};const s=[] +;for(let t=e.pointsIndex;t{"use strict";var s=i(2060),r=i(20629).StudyEngine,n=i(3075).OHLCV,o=i(36802),a=i(1430).SymbolExtrapolator,l=i(75683).SessionTimeScale,c=i(16426).PointsetsManager,h=i(14381),d=i(53388).createDwmAligner,u=i(85049).Interval,p=i(76422),_=i(44843).visitObject,m=i(37265).isObject;i(42924),i(6058);var g=i(47282).DatafeedRequestsCachedProcessor,f=i(63950).timezoneIsAvailable,v=i(53388).isAlignmentEnabled,y=i(73698),S=y.isEncodedExtendedSymbol,b=y.decodeExtendedSymbol,w=i(68805).extractSymbolNameFromSymbolInfo,C=i(30328).replaceGraphicsTimesWithTimePointIndexIndex,P=i(56570),x=i(91007).SubsessionId,T=i(14381).getPeriodsBetweenDates,I=i(39692).overwriteVolumeProfileResolutionForPeriodGetter;const M="pre_post_market_sessions",A=P.enabled(M),L=P.enabled("pay_attention_to_ticker_not_symbol");function k(e,t,i,s){return[e,t,i,s].filter((e=>!!e)).join("|")}var D=-5e6;function E(e){var t=e.findIndex((function(e){return e.index!==D}));return-1===t?[]:0===t?e:e.slice(t)}function V(e,t,i){if(e){if("string"==typeof e)return void F("`logo_urls` should be an array of urls, not a string.");const[t,s]=e;s?(i["base-currency-logoid"]=t,i["currency-logoid"]=s):i.logoid=e}t&&(i.provider_id=t,i.country=void 0)}function B(e,t){return e+"_"+t}function R(e){if(null===e||"number"==typeof e)return e;if("object"==typeof e&&Array.isArray(e)){switch(e[0]){case"bar_count":return e[2];case"from_to":return e.length>=3?e[2]:null}}return null}function N(e){const t=b(e),i="string"==typeof t.symbol?t:t.symbol;return[i.symbol,{currency:i["currency-id"],unit:i["unit-id"],session:i.session===x.Regular?void 0:i.session}]}var O=function(e){var t=this;this._studiesCache={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._metainfoCache=[],this._barsCoefficientsCache={},this._externalDatafeed=e,e.getVolumeProfileResolutionForPeriod&&I((function(t,i,s,r){return e.getVolumeProfileResolutionForPeriod(t,i,s,r)})),this._datafeedConfiguration=null,this._marketStatusWatchers={},this._resolveRequests={},this._resolvePromisesBySymbolId=new Map, +this._symbolIdToSymbolRequestString=new Map,this._callbacks={},this._serverTimeOffset=0,t._logMessage("Datafeed settings received: {0}".format(JSON.stringify(window.configurationData))),t._datafeedConfiguration=t._adoptConfigurationData(window.configurationData),t._fireEvent("configuration_received"),t._externalDatafeed.getServerTime&&t._externalDatafeed.getServerTime((function(e){t._serverTimeOffset=e-(new Date).valueOf()/1e3})),this._invalidatedPointsetSessions=new Set,this._refreshPointsetsTimerId=null,this._pointsetsManagers={},this._quotesInfo=[],this._depthInfo=[],this._endOfData={},this._computeStudyCounter=0,this._symbolExtrapolators={},this._timeScales={},this._cachedDatafeed=new g(e,this.serverTimeOffset.bind(this),this._datafeedConfiguration.reset_cache_timeout),o.setupFeed({resolve:function(e,i,s,r){t._resolveSymbolByName(e,i,s,r)},subscribe:function(e,i,s,r,n){return t._cachedDatafeed.subscribe(e,i,s,function(e,i,s){var r=new h.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),n=h.newBarBuilder(i,r,r);return function(e){if(e&&e.count()){var i=1e3*t.getCurrentUTCTime();n.moveTo(i),n.indexOfBar(i)>=0&&e.setLastBarClosed(!1)}s(e)}}(e,i,r),n)},unsubscribe:function(e){return t._cachedDatafeed.unsubscribe(e)}})};function F(e){console.warn(`${(new Date).toISOString()} ${e}`)}function W(e,t){return e+"_"+t}function H(e,t,i,s){return e+(t?"_#_"+t:"")+(i?"_#_"+i:"")+(s?"_#_"+s:"")}O.prototype._getSymbolExtrapolator=function(e,t,i){var s=u.normalize(i),r=function(e,t,i){const s=void 0!==t.subsession_id?","+t.subsession_id:"";return e+","+t.full_name+","+i+s}(e,t,s),n=this._symbolExtrapolators[r];return void 0===n&&(n=new a(t,s),this._symbolExtrapolators[r]=n),n},O.prototype._barsCoefficients=function(e,t){if(void 0===b(e).type)return{};var i=e+t;return this._barsCoefficientsCache[i]||(this._barsCoefficientsCache[i]={}),this._barsCoefficientsCache[i]},O.prototype.destroy=function(){for(const e of Object.keys(this._quotesInfo))this._stopQuotesSubscription(e);this._cachedDatafeed.destroy(),this._externalDatafeed=null;for(const e of Object.keys(this._pointsetsManagers))this._pointsetsManagers[e].destroy();this._quotesInfo={},this._pointsetsManagers={}},O.prototype.purgeCache=function(){this._endOfData={},this._resolveRequests={},this._objectsDataCache={},this._studiesNonSeriesTimes={},this._studiesCache={},this._resolvePromisesBySymbolId.clear(),this._symbolIdToSymbolRequestString.clear(),Object.keys(this._pointsetsManagers).forEach((function(e){this._pointsetsManagers[e].destroy()}),this),this._pointsetsManagers={},Object.keys(this._timeScales).forEach((function(e){this._timeScales[e].destroy()}),this),this._timeScales={},Object.keys(this._symbolExtrapolators).forEach((function(e){this._symbolExtrapolators[e].destroy()}),this),this._symbolExtrapolators={}},O.prototype.purgeDataCache=function(){this._cachedDatafeed.purgeCache()},O.prototype._logMessage=function(e){P.enabled("charting_library_debug_mode")&&console.log(`${(new Date).toISOString()} ${e}`)},O.prototype.on=function(e,t){ +return this._callbacks.hasOwnProperty(e)||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},O.prototype._fireEvent=function(e,t,i){if(this._callbacks.hasOwnProperty(e)){for(var s=this._callbacks[e],r=0;r{this._resolveSymbolImpl(e,(e=>{t(e.price_sources)}),(e=>{i(e)}))}))},O.prototype.supportedSymbolsTypes=function(){return this._datafeedConfiguration.symbols_types||[]},O.prototype.symbolsGrouping=function(){return this._datafeedConfiguration.symbols_grouping||{futures:/$a/}},O.prototype._findStudyObject=function(e){e.endsWith("!")&&(e=e.slice(0,-1));var t=e.split("@")[0],i=JSServer.studyLibrary.filter((function(i){return i.metainfo.id===e||i.metainfo.shortDescription===t}));return 0===i.length?null:i[0]},O.prototype.getMarks=function(e,t,i,s,r){var n={red:6,green:5,blue:4,yellow:3};if(this._externalDatafeed.getMarks&&this._datafeedConfiguration.supports_marks){this._logMessage("Requesting bars marks: symbol {0}, resolution {1}, range [{2} ... {3}]".format(e.full_name,r,new Date(1e3*t).toUTCString(),new Date(1e3*i).toUTCString()));var o=this;this._externalDatafeed.getMarks(e,t,i,(function(t){var i=t.map((function(e){return e.time=parseInt(e.time),e}));o._logMessage("Received bars marks: symbol {0}, resolution {1}, marks {2}".format(e.full_name,r,JSON.stringify(i)));var a=d(r,e),l=P.enabled("two_character_bar_marks_labels"),c=i.map((function(e){return e.tickmark=null!==a?a.timeToSessionStart(1e3*e.time)/1e3:e.time,e.direction=n[e.color],e.onClicked=function(){p.emit("onMarkClick",e.id)},e.label=!!e.label&&(l?e.label.slice(0,2):e.label[0]),e}));s(c)}),r)}},O.prototype.getTimescaleMarks=function(e,t,i,s,r){if(this._externalDatafeed.getTimescaleMarks&&this._datafeedConfiguration.supports_timescale_marks){this._logMessage("Requesting timescale marks: symbol {0}, resolution {1}, range [{2} ... {3}]".format(e.full_name,r,new Date(1e3*t).toUTCString(),new Date(1e3*i).toUTCString()));var n=this;this._externalDatafeed.getTimescaleMarks(e,t,i,(function(t){n._logMessage("Received timescale marks: symbol {0}, resolution {1}, marks {2}".format(e.full_name,r,JSON.stringify(t)));var i=d(r,e),o=t.map((function(e){return e.tickmark=null!==i?i.timeToSessionStart(1e3*e.time)/1e3:e.time,e}));s(o)}),r)}},O.prototype.getSeriesLastBarTime=function(e,t){var i=this._getSeriesData(e,t) +;return null===i||0===i.length?null:i[i.length-1].timeMs},O.prototype.getSeriesInterval=function(e,t){var i=this._studiesCache[e][t];return i?i.resolution:null},O.prototype.getSeriesSymbolInfo=function(e,t){var i=this._studiesCache[e][t];return i?i.symbolInfo:null},O.prototype._getSeriesData=function(e,t){return this._objectsDataCache[W(e,t)]||null},O.prototype._computeStudy=async function(e,t,i,s,n,o,a,l,c,h){var p=!0,_=[];null!==l&&(this._objectsDataCache[l]=null),this._timeScales[e].setCompleted(!1);var m=this._computeStudyCounter++;function g(e,t){if(e_[a].timeMs;l?_.push({index:g(s,_.length),value:[s/1e3].concat(r),timeMs:s}):(_[a].index=g(s,a),_[a].value=[s/1e3].concat(r),_[a].timeMs=s),p||h.onRealtimeCallback([_[_.length-1]],l,_.length,f,i)}(e,t,i)},nonseriesOut:function(e,t){h.onNonSeriesDataUpdate(t,i)},setNoMoreData:function(){y=!0},recalc:function(e,s){p=!1,_.endOfData=y,_.emptyBarCount=s.emptyBarCount,t.error&&null!==t.error()||(null!==l&&(S._objectsDataCache[l]=_),h.onDataReadyCallback(_,f,i,s))}});if(!S._studiesCache[e]||!S._studiesCache[e][n])throw Error("This should never happen");S._studiesCache[e][n].engine=w}catch(e){if(!e.studyError)throw e;h.onErrorCallback(e.message)}}else h.onErrorCallback("Unsupported resolution. Did you forget to set has_intraday to true?")}(w,C)},O.prototype._getDataRangeForStudy=function(e,t){var i=this._studiesCache[e][t],s={...this._seriesDataRange(e,i.parentId)};return this._studyCanExtendTimeScale(e,t)?void 0!==i.dataRange?i.dataRange:(i.firstLoadedTimeMs&&(s.to=i.firstLoadedTimeMs),s):s},O.prototype._createStudy=function(e,t,i,s,r,n,o,a){var l=this;function c(e,t,i){const o=l._studiesCache[s][r];if(o.completed=!0,e.length>0&&(o.firstLoadedTimeMs=e[0].timeMs),e=E(e), +l._setEndOfData(s,r,n,!l._studyCanExtendTimeScale(s,r)||e.endOfData),l._studyCanExtendTimeScale(s,r)){const t=e.map((function(e){return e.timeMs})),i=l._timeScales[s].setStudyBarsTimes(r,t);l._applyTimeScaleUpdate(s,i)}l._timeScales[s].fillIndexesInRows(e),TradingView.ChartapiMessagerInstances[s].onDataUpdate(r,n,e,t),TradingView.ChartapiMessagerInstances[s].onStudyCompleted(r,n),l._updateTimeScaleState(s)}function h(e){var t={};if(0!==e.size){var i={},n=l._studiesCache[s][r].metainfo;e.forEach((function(e,t){i[n.plots[t].id]=e})),t.data={offsets:i}}return t}this._studiesCache[s][r].completed=!1,a=function(e){if(Array.isArray(e))return e;for(var t=[],i=l._studiesCache[s][r].metainfo.inputs,n=0;n=0},O.prototype.ensureExtendedTo=function(e,t,i){if(!this._studiesCache[t][e])throw Error("This should never happen");var s=this;setTimeout((function(){s._recreateSourcesForDataRange(t,{to:i})}),0)},O.prototype.extendSeriesRange=function(e,t){var i=this._timeScales[e].firstSeriesBarTime();if(null!==i){var s=this._mainSeriesRecord(e);if(u.isDWM(s.resolution)&&null!=s.symbolInfo){var r=d(s.resolution,s.symbolInfo);null!==r&&(i=r.timeToExchangeTradingDay(i))}var n=this._symbolIdToSymbolRequestString.get(B(e,s.symbolId)),o=this._barsCoefficients(n,s.resolution),a=o.barsCoefficient||1;if(!o.barsCoefficient){var l=this._getSeriesData(e,s.guid);null!==l&&(o.expectedBarsCount=l.length+t)}var c=this;setTimeout((function(){c._recreateSourcesForDataRange(e,{to:i,countBack:(t+2)*a})}),0)}else this._logMessage("Nothing to extend - there is no points on time scale")},O.prototype.seriesTurnaround=function(e,t){return this._studiesCache[e]&&this._studiesCache[e][t]&&this._studiesCache[e][t].turnaround},O.prototype._seriesDataRange=function(e,t){var i=this._studiesCache[e][t];return null!==i.firstLoadedTimeMs?{to:i.firstLoadedTimeMs,countBack:0}:i.dataRange},O.prototype._applyTimeScaleUpdate=function(e,t){if(null!==t){var i=[];for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if(r&&"study"===r.type){ +var n=this._studiesNonSeriesTimes[e][s];if(n){var o={indexes:this._timeScales[e].convertTimesToIndexes(n),data:{indexes_replace:!0}};i.push({objId:s,turnaround:r.turnaround,data:[],nonSeriesData:o})}}}TradingView.ChartapiMessagerInstances[e].onTimescaleUpdate(t,i),Promise.resolve().then(function(){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._pointsetsManagers[e].getUpdatesForSymbol(t.symbolInfo.full_name,t.resolution,i,this._timeScales[e]).forEach((function(t,i){TradingView.ChartapiMessagerInstances[e].onPointsetDataUpdate(i,null,t)}))}}.bind(this))}},O.prototype._updateMainTsBuilder=function(e){var t=this._mainSeriesRecord(e);if(null!==t&&null!=t.symbolInfo){var i=this._getSymbolExtrapolator(e,t.symbolInfo,t.resolution);this._timeScales[e].setMainSymbolExtrapolator(i)}},O.prototype._updateTimeScaleState=function(e){var t=!0,i=!0;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];i=i&&this._isEndOfData(e,s,r.turnaround),t=t&&r.completed}this._timeScales[e].isCompleted()!==t&&(this._timeScales[e].setCompleted(t),t&&TradingView.ChartapiMessagerInstances[e].onTimescaleCompleted(i))},O.prototype._mainSeriesRecord=function(e){var t=null,i=null;for(var s in this._studiesCache[e]){var r=this._studiesCache[e][s];if("series"===r.type&&(null===t&&(t=r),r.isMain)){i=r;break}}return null===i&&(i=t),null!==i&&(i.isMain=!0),i},O.prototype._seriesCount=function(e){var t=0;for(var i in this._studiesCache[e]){"series"===this._studiesCache[e][i].type&&(t+=1)}return t},O.prototype._prepareSeriesNonSeriesData=function(e,t,i){var s=i.data[i.data.length-1],r=this._getSeriesData(e,t),n=null===r?[]:i.data;return{data:{data:{reversalAmount:i.reversalAmount,boxSize:i.boxSize,price:s?s[4]:i.price,bars:n.map((function(e,t){return{time:t,open:e[1],high:e[2],low:e[3],close:e[4],volume:e[5],factor:e[6],additionalPrice:e[6]}}))}},indexes:this._timeScales[e].convertTimesToIndexes(n.map((function(e){var t=e[0]||0;return t<0?r[r.length+t].timeMs:i.projectionTime+t})))}},O.prototype.createSeries=function(e,t,i,s,r,o,a){this._setEndOfData(e,t,i,!1);var l=new n;this._studiesCache[e]=this._studiesCache[e]||{};var c=this._getSeriesData(e,t),h=this._studiesCache[e][t],d=this._seriesCount(e),p=this._mainSeriesRecord(e);if(!h||u.isEqual(h.resolution,r)&&h.symbolId===s)void 0!==o.countBack&&null!==c&&0!==c.length&&(o.to=c[0].timeMs),h&&null!=h.firstLoadedTimeMs?o.to=void 0!==o.to?Math.min(h.firstLoadedTimeMs,o.to):h.firstLoadedTimeMs:h||0===d||null!==p&&(null!=p.firstLoadedTimeMs?(o.to=p.firstLoadedTimeMs,o.countBack=0):o=Object.assign({},p.dataRange));else if(1===d)o=Object.assign({},h.initialDatarange);else{var _=this._timeScales[e].firstSeriesBarTime();(void 0===o.to||null!==_&&_{V(e.logo_urls,e.exchange_logo,e)})),s(e)}))},O.prototype.resolveSymbol=function(e,t,i){var s=this;this._symbolIdToSymbolRequestString.set(B(e,t),i),this._resolvePromisesBySymbolId.set(B(e,t),new Promise((function(r,n){s._resolveSymbolImpl(i,(function(s){TradingView.ChartapiMessagerInstances[e].onSymbolResolved(t,s),r({symbolInfo:s,requestedSymbol:i})}),(function(i){TradingView.ChartapiMessagerInstances[e].onSymbolError(t,i),n(i)}))})))},O.prototype._resolveSymbolImpl=function(e,t,i){var s;S(e)||(s="Expect to get symbol encoded string, but got the following instead: "+e,console.error(`${(new Date).toISOString()} ${s}`));const[r,n]=N(e);this._resolveSymbolByName(r,n,t,i)},O.prototype._resolveSymbolByName=function(e,t,i,s){var r,n=t&&t.currency,o=t&&t.unit,a=t&&t.session,l=H(e,n,o,a);if(this._resolveRequests[l])r=this._resolveRequests[l];else{r=this._resolveSymbolInternal(e,n||void 0,o||void 0,a||void 0),this._resolveRequests[l]=r;var c=this;r.then((function(t){c._resolveRequests[H(e,t.currency_id,t.unit_id,t.subsession_id)]=r,c._resolveRequests[H(w(t,null),t.currency_id,t.unit_id,t.subsession_id)]=r,c._resolveRequests[H(w(t,null),n,o,a)]=r})).catch((function(){}))}r.then(i).catch(s)},O.prototype._resolveSymbolInternal=function(e,t,i,s){var r=this;return new Promise(function(n,o){const a=k(e,t,i,s);this._logMessage("Symbol resolve requested: `{0}` ".format(a));var l=!0;this._externalDatafeed.resolveSymbol(e,(function(e){l&&F("`resolveSymbol` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),r._logMessage("Symbol resolved: `{0}`, SymbolInfo in server response {1}".format(a,JSON.stringify(e))),function(e){if(e.ticker||(e.ticker=e.symbol||e.name),e.full_name=L?e.ticker:`${e.exchange}:${e.name}`,e.pro_name=e.full_name,e.base_name||(e.base_name=[e.name]),e.legs||(e.legs=[e.name]),e.exchange||(e.exchange=e["exchange-listed"]),e.data_status||(e.data_status="streaming"),!e.session&&e["session-regular"]&&(e.session=e["session-regular"]),!e.minmov&&e.minmovement&&(e.minmov=e.minmovement),e.currency_code&&(e.currency_id=e.currency_code),e.original_currency_code&&(e.original_currency_id=e.original_currency_code),e.holidays&&(e.session_holidays=e.holidays),void 0!==e.has_no_volume&&(e.visible_plots_set=e.has_no_volume?"ohlc":"ohlcv"),void 0===e.visible_plots_set&&(e.visible_plots_set="ohlcv"),e.supported_resolutions)for(var t=0;tthis._resolveSymbolByName(t,i,o,(s=>{F(`Error resolving for market status watcher ${k(t,i.currency,i.unit,i.session)}:\n${s}`),this.quoteRemoveSymbols(e,[r]),a(s)}))),e,r)}}}, +O.prototype._removeMarketStatusWatchers=function(e){var t=this;Object.keys(this._marketStatusWatchers[e]||{}).forEach((function(i){t._marketStatusWatchers[e][i].stop()})),this._marketStatusWatchers[e]={}},O.prototype._stopQuotesSubscription=function(e){this._quotesInfo[e].listenerGUID&&(this._externalDatafeed.unsubscribeQuotes(this._quotesInfo[e].listenerGUID),this._quotesInfo[e].listenerGUID=void 0),this._removeMarketStatusWatchers(e)},O.prototype._startQuotesSubscription=async function(e){var t={},i=this;const s=async e=>{const i=new Map,s=new Set;for(const r of e){const[e,n]=N(r),o=await new Promise((t=>this._resolveSymbolByName(e,n,(e=>t(e)),(()=>t(null)))));null!==o&&(t[o.ticker]=o,t[r]=o,s.add(o.ticker),o.ticker!==r&&(i.has(o.ticker)||i.set(o.ticker,[]),i.get(o.ticker).push(r)))}return[i,[...s]]},[r,n]=await s(this._quotesInfo[e].symbols),[o,a]=await s(this._quotesInfo[e].fastSymbols);function l(s){s.forEach((function(s){const n=s.n;if(r.has(n)||o.has(n)){const e=(r.get(n)??o.get(n)).map((e=>({...s,n:e})));setTimeout((()=>l(e)),0)}void 0!==t[s.n]&&null!==t[s.n]&&function(t,s){var r=i._marketStatusWatchers[e][t.n];t.symbolname=t.n,t.status=t.s,t.values=t.v,t.values.change=t.v.ch,t.values.last_price=t.v.lp,t.values.change_percent=t.v.chp,t.values.current_session=t.v.cs||r&&r.marketStatus(),t.values.pricescale=s.pricescale,t.values.minmov=s.minmov,t.values.minmove2=s.minmove2||0,t.values.fractional=s.fractional||!1,V(s.logo_urls,s.exchange_logo,t.values),r&&t.v.cs&&r.stop(),TradingView.ChartapiMessagerInstances[e].onQuotesData([e].concat([t]))}(s,t[s.n])}))}this._externalDatafeed.getQuotes&&!P.enabled("charting_library")?this._externalDatafeed.getQuotes(n,(function(t){i._quotesInfo[e]&&0!==i._quotesInfo[e].symbols.length&&(l(t),i._quotesInfo[e].listenerGUID=e,i._externalDatafeed.subscribeQuotes(n,a,l,i._quotesInfo[e].listenerGUID))}),(function(e){})):!this._externalDatafeed.getQuotes&&P.enabled("trading_terminal")&&setTimeout((()=>{l(this._quotesInfo[e].symbols.map((function(e){return{n:e,s:"ok",v:{}}})))})),this._createMarketStatusWatchers(e,this._quotesInfo[e].symbols)},O.prototype._restartQuotesSubscription=function(e){this._stopQuotesSubscription(e),this._startQuotesSubscription(e)},O.prototype.quoteCreateSession=function(e){this._quotesInfo[e]={symbols:[],fastSymbols:[],listenerGUID:void 0}},O.prototype.quoteDeleteSession=function(e){this._stopQuotesSubscription(e),this._quotesInfo[e]=null},O.prototype.quoteSetFields=function(e,t){},O.prototype.quoteAddSymbols=function(e,t){this._quotesInfo[e].symbols=this._filteredSymbols(this._quotesInfo[e].symbols.concat(t)),this._restartQuotesSubscription(e)},O.prototype.quoteRemoveSymbols=function(e,t){this._quotesInfo[e].symbols=this._quotesInfo[e].symbols.filter((function(e){return t.indexOf(e)<0})),this._restartQuotesSubscription(e)},O.prototype.quoteFastSymbols=function(e,t){this._quotesInfo[e].fastSymbols=this._filteredSymbols(t),this._restartQuotesSubscription(e)},O.prototype.quoteHibernateAll=function(e){},O.prototype._stopDepthSubscription=function(e){ +this._depthInfo[e].listenerGUID&&(this._externalDatafeed.unsubscribeDepth(this._depthInfo[e].listenerGUID),this._depthInfo[e].listenerGUID=void 0)},O.prototype._startDepthSubscription=function(e){var t=this,i=this._depthInfo[e].symbol;function s(e){return e.map((function(e){return{p:e.price,v:e.volume}}))}function r(e){var t={};return t.s=i,t.bids=s(e.bids),t.asks=s(e.asks),t}i&&this._externalDatafeed.subscribeDepth&&(t._depthInfo[e].listenerGUID=this._externalDatafeed.subscribeDepth(i,(function(i){var s;t._depthInfo[e]&&((s=i).snapshot?TradingView.ChartapiMessagerInstances[e].onDepthData([e].concat([r(s)])):TradingView.ChartapiMessagerInstances[e].onDepthUpdate([e].concat([r(s)])))})))},O.prototype._restartDepthSubscription=function(e){this._stopDepthSubscription(e),this._startDepthSubscription(e)},O.prototype.depthCreateSession=function(e){this._depthInfo[e]={symbol:null,listenerGUID:void 0}},O.prototype.depthDeleteSession=function(e){this._depthInfo[e].symbol=null,this._stopDepthSubscription(e),delete this._depthInfo[e]},O.prototype.depthSetSymbol=function(e,t){this._depthInfo[e].symbol=t,this._restartDepthSubscription(e)},O.prototype._filteredSymbols=function(e){var t=[];return e.forEach((function(e){e instanceof Object||t.indexOf(e)<0&&t.push(e)})),t},O.prototype._isEndOfData=function(e,t,i){var s=e+"!"+t+"@"+i;return!!this._endOfData[s]},O.prototype._setEndOfData=function(e,t,i,s){var r=e+"!"+t+"@"+i;this._endOfData[r]=!1!==s},O.prototype.serverTimeOffset=function(){return this._serverTimeOffset},O.prototype.serverTime=function(){return 1e3*this.getCurrentUTCTime()},O.prototype.getCurrentUTCTime=function(){return(new Date).valueOf()/1e3+this._serverTimeOffset},O.prototype.switchTimezone=function(e,t){this._timeScales[e].setTimezone(t);var i=this._timeScales[e].tickMarks();null!==i&&TradingView.ChartapiMessagerInstances[e].onTickmarksUpdated(0,i)},O.prototype._studyCanExtendTimeScale=function(e,t){const i=this._studiesCache[e][t]?.metainfo;return void 0!==i&&(P.enabled("studies_extend_time_scale")&&i.canExtendTimeScale||P.enabled("secondary_series_extend_time_scale")&&"Overlay@tv-basicstudies-1"===i.id)},e.exports=O},1430:(e,t,i)=>{"use strict";i.d(t,{SymbolExtrapolator:()=>h});var s,r=i(50151),n=i(29981),o=i(14381),a=i(40644),l=i(85049);function c(e,t){return e.length>t}!function(e){e[e.DefaultExtrapolateLimit=2e5]="DefaultExtrapolateLimit"}(s||(s={}));class h{constructor(e,t,i=2e5){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._projectionFirstIndex=1/0,this._barsTimes=[],this._minFutureBarsCount=0,this._lastRealBarTimeMs=null,this._futureBarsCache=[],this._symbolInfo=e,this._interval=l.Interval.parse(t),this._extrapolateLimit=i,this._barBuilder=(0,o.newBarBuilder)(t,new o.SessionInfo(e.timezone,e.session,e.session_holidays,e.corrections),null)}destroy(){this.clear()}interval(){return this._interval}barBuilder(){return this._barBuilder}symbolInfo(){return this._symbolInfo}clear(){this._firstRealBarTimeMs=null,this._historyBarsCache=[],this._barsTimes=[],this._lastRealBarTimeMs=null, +this._futureBarsCache=[],this._minFutureBarsCount=0,this._projectionFirstIndex=1/0}firstFutureBarIndex(){return this._barsTimes.length}futureBars(){return this._futureBarsCache}replaceBarsTimesTail(e,t=e.length){if(0===e.length)return;if(0===this._barsTimes.length)return void this.setBarsTimes(e,t);const i=e[0],s=this._barsTimes[this._barsTimes.length-1],o=i>s?this._barsTimes.length:(0,n.lowerbound_int)(this._barsTimes,i);0!==o?(this._barsTimes.splice(o,this._barsTimes.length,...e),this._projectionFirstIndex=t===e.length?this._barsTimes.length:this._barsTimes.indexOf(e[t]),(0,r.assert)(-1!==this._projectionFirstIndex,"something went wrong"),s!==e[e.length-1]&&this._setLastRealBarTime(e[e.length-1])):this.setBarsTimes(e,t)}setBarsTimes(e,t=e.length){const i=this._barsTimes;if(this._barsTimes=e.slice(),this._projectionFirstIndex=0===this._barsTimes.length?1/0:t,0===e.length)return this._historyBarsCache=[],this._futureBarsCache=[],this._firstRealBarTimeMs=null,void(this._lastRealBarTimeMs=null);0!==i.length&&i[i.length-1]===e[e.length-1]||this._setLastRealBarTime(e[e.length-1]),0!==i.length&&i[0]===e[0]||(this._historyBarsCache=[],this._firstRealBarTimeMs=e[0])}extrapolateTimeWithOffsetToTime(e,t){if(0===t)return{timeMs:e,exact:!0};0===this._barsTimes.length&&(t<0?null===this._firstRealBarTimeMs?this._firstRealBarTimeMs=e:(this._extendHistoryCacheToTimeFromRight(Math.min(e,null!==this._lastRealBarTimeMs?this._lastRealBarTimeMs:1/0)),this._ensureExtrapolatedToHistoryTime(e)):null===this._lastRealBarTimeMs?this._lastRealBarTimeMs=e:(this._extendFutureCacheToTimeFromLeft(Math.max(e,null!==this._firstRealBarTimeMs?this._firstRealBarTimeMs:1/0)),this._ensureExtrapolatedToFutureTime(e)));const i=this.indexOfTime(e);if(null===i)return null;const s=this._timeOfBarIndex(i.index+t);return null===s?null:((i.index<0||this._projectionFirstIndex<=i.index)&&(s.exact=!1),s)}indexOfTime(e){if(null!==this._firstRealBarTimeMs&&ethis._lastRealBarTimeMs){this._ensureExtrapolatedToFutureTime(e);let t=(0,n.lowerbound_int)(this._futureBarsCache,e);if(0!==this._futureBarsCache.length&&t===this._futureBarsCache.length&&e>this._futureBarsCache[this._futureBarsCache.length-1])return null;this._futureBarsCache[t]!==e&&(t-=1);const i=Math.max(1,this._barsTimes.length)+t;return{index:i,timeMs:i===this._barsTimes.length-1?(0,r.ensureNotNull)(this._lastRealBarTimeMs):this._futureBarsCache[t]}}if(0===this._barsTimes.length)return null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||null!==this._lastRealBarTimeMs&&e<=this._lastRealBarTimeMs?{index:0,timeMs:(0,r.ensureNotNull)(this._timeOfBarIndex(0)).timeMs}:null;let t=(0, +n.lowerbound_int)(this._barsTimes,e);return this._barsTimes[t]!==e&&(t-=1),{index:t,timeMs:this._barsTimes[t]}}setMinFutureBarsCount(e){this._minFutureBarsCount=e,0!==this._barsTimes.length&&this._ensureExtrapolatedToFutureBar(e)}ensureExtrapolatedToFutureTime(e){this._ensureExtrapolatedToFutureTime(e)}_setLastRealBarTime(e){const t=this._futureBarsCache.length,i=(0,n.upperbound_int)(this._futureBarsCache,e);0===i?this._extendFutureCacheToTimeFromLeft(e):(this._lastRealBarTimeMs=e,this._futureBarsCache=this._futureBarsCache.slice(i)),this._ensureExtrapolatedToFutureBar(Math.max(t,this._minFutureBarsCount))}_timeOfBarIndex(e){var t;if(e<0){const t=Math.abs(e);this._ensureExtrapolatedToHistoryBar(t);const i=this._historyBarsCache.length-t;return i<0?null:{timeMs:this._historyBarsCache[i],exact:!1}}if(0===e&&0===this._barsTimes.length)return{timeMs:(0,r.ensureNotNull)(null!==(t=this._firstRealBarTimeMs)&&void 0!==t?t:this._lastRealBarTimeMs),exact:!1};if(e>=this._barsTimes.length){const t=e-Math.max(1,this._barsTimes.length);return this._ensureExtrapolatedToFutureBar(t+1),t>=this._futureBarsCache.length?null:{timeMs:this._futureBarsCache[t],exact:!1}}return{timeMs:this._barsTimes[e],exact:e=e)return;if((0,r.assert)(0===this._barsTimes.length,"bars should be empty"),this._firstRealBarTimeMs=e,0===this._historyBarsCache.length)return;const t=(0,a.extrapolateBarsFrontToTime)(this._barBuilder,this._historyBarsCache[this._historyBarsCache.length-1],e-1,this._extrapolateLimit,!0).times;this._historyBarsCache=this._historyBarsCache.concat(t)}_ensureExtrapolatedToFutureBar(e){return!(this._futureBarsCache.length>=e||c(this._futureBarsCache,this._extrapolateLimit))&&this._extendFutureCacheFromRight(((t,i)=>(0,a.extrapolateBarsFrontByCount)(this._barBuilder,t,e-i,!0).times))}_ensureExtrapolatedToFutureTime(e){ +null!==this._lastRealBarTimeMs&&this._lastRealBarTimeMs>=e||c(this._futureBarsCache,this._extrapolateLimit)||0!==this._futureBarsCache.length&&this._futureBarsCache[this._futureBarsCache.length-1]>=e||(this._extendFutureCacheFromRight(((t,i)=>(0,a.extrapolateBarsFrontToTime)(this._barBuilder,t,e,this._extrapolateLimit,!0).times)),this._futureBarsCache[this._futureBarsCache.length-1]=e||c(this._historyBarsCache,this._extrapolateLimit)||this._extendHistoryCacheFromLeft(((t,i)=>(0,a.extrapolateBarsFrontByCount)(this._barBuilder,t,-(e-i),!0).times.reverse()))}_ensureExtrapolatedToHistoryTime(e){null!==this._firstRealBarTimeMs&&this._firstRealBarTimeMs<=e||c(this._historyBarsCache,this._extrapolateLimit)||0!==this._historyBarsCache.length&&this._historyBarsCache[0]<=e||(this._extendHistoryCacheFromLeft(((t,i)=>{const s=(0,a.extrapolateBarsFrontToTime)(this._barBuilder,t-1,e-1,this._extrapolateLimit,!0).times;return s[s.length-1]===t?s.slice(0,-1):s})),(0===this._historyBarsCache.length||this._historyBarsCache[0]>e)&&this._ensureExtrapolatedToHistoryBar(this._historyBarsCache.length+1))}}},39076:(e,t,i)=>{"use strict";i.d(t,{backend:()=>s});const s=i(64289)},18278:(e,t,i)=>{"use strict";i.d(t,{HandlerInfo:()=>s});class s{constructor(e,t,i){this.handler=e,this.customId=t,this.singleShot=i}}},82783:(e,t,i)=>{"use strict";var s,r,n,o;function a(e,t){return"period-back"===e.type&&"period-back"===t.type?e.value===t.value:"time-range"===e.type&&"time-range"===t.type&&(e.from===t.from&&e.to===t.to)}i.d(t,{TIMEFRAMETYPE:()=>o,areEqualTimeFrames:()=>a}),function(e){e.extractErrorReason=function(e){return e.params[1]}}(s||(s={})),function(e){e.Default="default",e.FullSingleSession="full_single_session"}(r||(r={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(n||(n={})),function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(o||(o={}))},80437:()=>{"use strict";TradingView.Pro=function(){this.hasPackage=function(){return!1}},window.user={is_pro:!1,settings:{}},TradingView.Pro.prototype.isPaidPro=function(){return!1},TradingView.Pro.prototype.isSupportAvailable=function(){return!1},TradingView.Pro.prototype.getProduct=function(){return{}},TradingView.Pro.prototype.getStudiesOrder=function(){return[]}},62945:(e,t,i)=>{"use strict";i.r(t),i.d(t,{QUOTE_FIELDS:()=>n,QUOTE_FIELDS_CACHE:()=>o,QuoteCache:()=>r});var s=i(50151);class r{constructor(e){this._cache=new Map,this._fields=[...e.fields]}update(e,t,i){const r=(0,s.ensureDefined)(e.symbolname);if(this._cache.has(r)||this._cache.set(r,{symbolname:r,status:e.status,values:{}}),"error"===e.status)return;const n=(0,s.ensureDefined)(this._cache.get(r));n.status=e.status;for(const s of this._fields)t.has(s)&&(i||void 0!==e.values[s])&&(n.values[s]=e.values[s])}get(e){var t;return null!==(t=this._cache.get(e))&&void 0!==t?t:null}fields(){return this._fields}} const n=new Set(["pro_name","base_name","logoid","currency-logoid","base-currency-logoid","source-logoid","short_name","web_site_url","pro_perm","timezone","current_session","last_price","lp_time","prev_close_price","open_price","high_price","low_price","price_52_week_high","price_52_week_low","ask","ask_size","bid","bid_size","rch","rchp","rtc","data_frequency","reference-last-period-start","business_description","web_site_url","figi","number_of_employees","float_shares_outstanding","earnings_release_next_calendar_date","root","description","exchange","listed_exchange","type","country_code","provider_id","sector","typespecs","visible-plots-set","industry","currency_id","last_price","fractional","minmov","minmove2","pricescale","variable_tick_size","change","change_percent","volume","average_volume","market_cap_basic","market_cap_calc","total_revenue","earnings_per_share_basic_ttm","price_earnings_ttm","beta_1_year","dps_common_stock_prim_issue_fy","dividends_yield","earnings_release_next_date","earnings_per_share_forecast_next_fq","earnings_publication_type_next_fq","earnings_release_date","earnings_per_share_fq","earnings_per_share_forecast_fq","forecast_raw","last_release_date","next_release_date","reference_last_period","fundamental_currency_code","number_of_employees","web_site_url","business_description","founded","ceo","float_shares_outstanding","total_shares_outstanding","dividend_payout_ratio_ttm","dividends_yield_current","dividend_ex_date_upcoming","dividend_amount_upcoming","dividend_amount_recent","dividend_ex_date_recent","total_revenue_fq_h","total_revenue_fy_h","net_income_fy_h","net_income_fq_h","total_assets_fy_h","total_assets_fq_h","total_liabilities_fy_h","total_liabilities_fq_h","cash_f_operating_activities_fy_h","cash_f_operating_activities_fq_h","cash_f_investing_activities_fy_h","cash_f_investing_activities_fq_h","cash_f_financing_activities_fy_h","cash_f_financing_activities_fq_h","fiscal_period_fy_h","fiscal_period_fq_h","fiscal_period_fh_h","earnings_release_date_fq_h","earnings_release_next_date_fq","earnings_per_share_forecast_next_fq","earnings_per_share_forecast_fq_h","earnings_per_share_fq_h","earnings_fiscal_period_fq_h","next_earnings_fiscal_period_fq","is_next_earnings_release_date_estimated","symbol-primaryname","currency_code","rates_mc","rates_fy","rates_ttm","measure","value_unit_id","value-unit-id","update_mode","language","local_description","short_description","source","source2","format","recommendation_mark","last_report_frequency","price_target_estimates_num","price_target_average","update_mode_seconds","recommendation_total","recommendation_buy","recommendation_over","recommendation_hold","recommendation_under","recommendation_sell","recommendation_total","price_target_high","price_target_low","rates_pt","rates_pt","total_revenue_fy_h","total_revenue_fq_h","total_revenue_fh_h","net_income_fy_h","net_income_fq_h","net_income_fh_h","total_assets_fy_h","total_assets_fq_h","total_assets_fh_h","total_liabilities_fy_h","total_liabilities_fq_h","total_liabilities_fh_h","cash_f_operating_activities_fy_h","cash_f_operating_activities_fq_h","cash_f_operating_activities_fh_h","cash_f_investing_activities_fy_h","cash_f_investing_activities_fq_h","cash_f_investing_activities_fh_h","cash_f_financing_activities_fy_h","cash_f_financing_activities_fq_h","cash_f_financing_activities_fh_h","fiscal_period_fy","fiscal_period_fq","fiscal_period_fh","earnings_release_date_fq_h","earnings_release_date_fy_h","earnings_release_date_fh_h","earnings_release_next_date_fq","earnings_release_next_date_fy","earnings_release_next_date_fh","earnings_release_next_time","earnings_release_time","is_next_earnings_release_date_estimated","earnings_per_share_forecast_next_fq","earnings_per_share_forecast_next_fy","earnings_per_share_forecast_next_fh","earnings_per_share_forecast_fq_h","earnings_per_share_forecast_fy_h","earnings_per_share_forecast_fh_h","earnings_per_share_fq_h","earnings_per_share_fy_h","earnings_per_share_fh_h","earnings_fiscal_period_fq_h","earnings_fiscal_period_fy_h","earnings_fiscal_period_fh_h","next_earnings_fiscal_period_fq","next_earnings_fiscal_period_fy","next_earnings_fiscal_period_fh","revenue_fq_h","revenue_fy_h","revenue_fh_h","revenue_forecast_fq_h","revenue_forecast_fy_h","revenue_forecast_fh_h","revenue_forecast_next_fq","revenue_forecast_next_fy","revenue_forecast_next_fh","revenue_seg_by_business_h","revenue_seg_by_region_h","dividend_payout_ratio_ttm","dividends_yield_current","dividend_ex_date_upcoming","dividend_amount_upcoming","dividend_amount_recent","dividend_ex_date_recent","dividend_amount_h","total_revenue_fy","total_revenue_fq","total_revenue_fh","gross_profit_fy","gross_profit_fq","gross_profit_fh","ebitda_fy","ebit_fy","net_income_fy","net_income_fq","net_income_fh","total_debt_fy_h","total_debt_fq_h","total_debt_fh_h","free_cash_flow_fy_h","free_cash_flow_fq_h","free_cash_flow_fh_h","cash_n_equivalents_fy_h","cash_n_equivalents_fq_h","cash_n_equivalents_fh_h","total_current_assets_fy","total_current_assets_fq","total_current_assets_fh","total_current_liabilities_fy","total_current_liabilities_fq","total_current_liabilities_fh","total_non_current_assets_fy","total_non_current_assets_fq","total_non_current_assets_fh","total_non_current_liabilities_fy","total_non_current_liabilities_fq","total_non_current_liabilities_fh","loans_net_fy","loans_net_fy_h","loans_net_fq_h","loans_net_fh_h","total_deposits_fy","total_deposits_fy_h","total_deposits_fq_h","total_deposits_fh_h","loan_loss_allowances_fy","loan_loss_allowances_fy_h","loan_loss_allowances_fq_h","loan_loss_allowances_fh_h","reserve_to_total_capital_fy_h","reserve_to_total_capital_fq_h","reserve_to_total_capital_fh_h","unearned_premium_to_total_capital_fy_h","unearned_premium_to_total_capital_fq_h","unearned_premium_to_total_capital_fh_h","insurance_reserves_fy_h","insurance_reserves_fq_h","insurance_reserves_fh_h","policy_claims_fy_h","policy_claims_fq_h","policy_claims_fh_h","premiums_earned_fy_h","premiums_earned_fq_h","premiums_earned_fh_h","price_earnings_fq_h","price_earnings_fy_h","price_earnings_fh_h","price_sales_fq_h","price_sales_fy_h","price_sales_fh_h","diluted_net_income_ttm","total_revenue_ttm","price_earnings_current","price_sales_current","isin-displayed","interest_income_fy_h","interest_income_fq_h","interest_income_fh_h","non_interest_income_fy_h","non_interest_income_fq_h","non_interest_income_fh_h","website","doc","explorer","sources","contracts","crypto_common_categories","crypto_asset","community","dividends_availability","earnings_availability","financials_availability","etf_asset_type_exposure","etf_region_exposure","top_holdings","unit-id","options-info","interest_income_fy","interest_income_fq","interest_income_fh","non_interest_income_fy","non_interest_income_fq","non_interest_income_fh","interest_expense_fy","interest_expense_fq","interest_expense_fh","loan_loss_provision_fy","loan_loss_provision_fq","loan_loss_provision_fh","non_interest_expense_fy","non_interest_expense_fq","non_interest_expense_fh","non_oper_income_fy","non_oper_income_fq","non_oper_income_fh","unusual_expense_inc_fy","unusual_expense_inc_fq","unusual_expense_inc_fh","pretax_income_fy","pretax_income_fq","pretax_income_fh","income_tax_fy","income_tax_fq","income_tax_fh","after_tax_other_income_fy","after_tax_other_income_fq","after_tax_other_income_fh","total_non_oper_income_fy","total_non_oper_income_fq","total_non_oper_income_fh","oper_income_fy","oper_income_fq","oper_income_fh","operating_expenses_fy","operating_expenses_fq","operating_expenses_fh","cost_of_goods_fy","cost_of_goods_fq","cost_of_goods_fh","equity_in_earnings_fy","equity_in_earnings_fq","equity_in_earnings_fh","minority_interest_exp_fy","minority_interest_exp_fq","minority_interest_exp_fh","discontinued_operations_fy","discontinued_operations_fq","discontinued_operations_fh","front_contract","pointvalue","unit_id","expiration","aum","asset_class","focus","expense_ratio","launch_date","issuer","brand","homepage","index_tracked","actively_managed","fund_view_mode","common_equity_tier1_ratio_fy_h","common_equity_tier1_ratio_fq_h","common_equity_tier1_ratio_fh_h","tier1_capital_ratio_fy_h","tier1_capital_ratio_fq_h","tier1_capital_ratio_fh_h","total_capital_ratio_fy_h","total_capital_ratio_fq_h","total_capital_ratio_fh_h","preferred_stock_carrying_value_fh","preferred_stock_carrying_value_fq","total_debt_fq","minority_interest_fh","minority_interest_fq","cash_n_short_term_invest_fq","cash_n_due_f_banks_fh","cash_n_due_f_banks_fq","enterprise_value_current","etf_holdings_count","contract-description","reference-last-period","all_time_high","all_time_high_day","all_time_low","all_time_low_day","outstanding_amount","nominal_value","denom_min","current_coupon","coupon_type_general","coupon_frequency","yield_to_maturity","maturity-date","days_to_maturity","bond_issuer","issue_date","bond_issuer_stock_symbol"]),o=new r({ fields:n})},90277:(e,t,i)=>{"use strict";i.d(t,{destroyQuoteSessions:()=>a,getQuoteSessionInstance:()=>o});var s=i(4097),r=i.n(s);const n={};function o(e="full"){return n[e]||function(e="full",t){n[e]=t}(e,new(r())(e)),n[e]}function a(){for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];void 0!==t&&t.destroy(),delete n[e]}}},98525:(e,t,i)=>{"use strict";i.d(t,{QuoteSession:()=>r});var s=i(92184);class r{constructor(e,t=(0,s.randomHash)()){this._sessionstarted=!1,this._globalHandler=null,this._chartApi=e,this._sessionid="qs_"+t}destroy(){this._sessionstarted&&(this._chartApi.quoteDeleteSession(this._sessionid),this._sessionstarted=!1)}connected(){return this._chartApi.connected()}connect(e){this._globalHandler=e,this._chartApi.createSession(this._sessionid,this),this._chartApi.connect()}disconnect(){this._chartApi.disconnect()}quoteAddSymbols(e){this._chartApi.quoteAddSymbols(this._sessionid,e)}quoteRemoveSymbols(e){this._chartApi.quoteRemoveSymbols(this._sessionid,e)}quoteFastSymbols(e){this._chartApi.quoteFastSymbols(this._sessionid,e)}quoteSetFields(e){this._chartApi.quoteSetFields(this._sessionid,e)}onMessage(e){var t;switch(e.method){case"connected":this._sessionstarted||(this._chartApi.quoteCreateSession(this._sessionid),this._sessionstarted=!0);break;case"disconnected":this._sessionstarted=!1}null===(t=this._globalHandler)||void 0===t||t.call(this,e)}quoteHibernateAll(){this._chartApi.quoteHibernateAll(this._sessionid)}}window.TradingView.QuoteSession=r},4097:(e,t,i)=>{"use strict";e=i.nmd(e);var s=i(43370).default,r=i(12481).default,n=i(725).PriceFormatter;const{uniq:o}=i(97144);var a=i(92184);const{normalizeUpdateMode:l}=i(5370);var c=i(31054).deepExtend;const{QUOTE_FIELDS_CACHE:h,QUOTE_FIELDS:d}=i(62945);var u=i(52033).Delegate;var p;function _(e,t){this.options=Object.assign({throttleTimeout:125},t),this._connected=!1,this._symbol_data={},this._subscriptions={},this.onConnect=new u,this.onDisconnect=new u,this._quoteApi=new p(window.ChartApiInstance),this._type=e||"full",this._delayUpdateFastSymbols=r(this._updateFastSymbols,250),this._throttledSymbolData={},this._formatterValuesCache={},this._waitingForFormatters={},this._snapshotValuesCache={},this._waitingForSnapshot={},this.connect()}p=i(98525).QuoteSession,_.prototype.destroy=function(){this._quoteApi.destroy(),this._quoteApi=null,this._connected=!1,this.onDisconnect.fire()},_.prototype.typeFields={},_.prototype.typeFields.simple=["base-currency-logoid","ch","chp","currency-logoid","currency_code","currency_id","base_currency_id","current_session","description","exchange","format","fractional","is_tradable","language","local_description","listed_exchange","logoid","lp","lp_time","minmov","minmove2","original_name","pricescale","pro_name","short_name","type","typespecs","update_mode","volume","variable_tick_size","value_unit_id","unit_id","measure"], _.prototype.typeFields.simpleDetailed=[].concat(_.prototype.typeFields.simple,["ask","bid","fundamentals","high_price","is_tradable","low_price","open_price","prev_close_price","rch","rchp","rtc","rtc_time","status","basic_eps_net_income","beta_1_year","earnings_per_share_basic_ttm","industry","market_cap_basic","price_earnings_ttm","sector","volume","dividends_yield","timezone"]),_.prototype.typeFields.full=[],_.prototype.typeFields.watchlist=[].concat(_.prototype.typeFields.simple,["rchp","rtc","country_code","provider_id"]),_.prototype.typeFields.portfolio=["pro_name","short_name","exchange","listed_exchange","description","local_description","language","sector","type","typespecs","industry","currency_code","currency_id","ch","chp","logoid","currency-logoid","base-currency-logoid","earnings_per_share_forecast_next_fq","earnings_release_next_date","earnings_release_date","earnings_per_share_fq","lp","fractional","minmov","minmove2","pricescale","volume","average_volume","market_cap_calc","market_cap_basic","total_revenue","earnings_per_share_basic_ttm","price_earnings_ttm","beta_1_year","dps_common_stock_prim_issue_fy","dividends_yield","fundamental_currency_code","rates_mc","rates_fy","rates_ttm","format","value_unit_id","unit_id","measure"],_.prototype.typeFields.notes=["short_name","pro_name","logoid","currency-logoid","base-currency-logoid","symbol-primaryname","type","typespecs"],_.prototype.typeFields.estimates=["fundamental_data","type","typespecs","earnings_per_share_forecast_next_symbol_currency_fq","earnings_release_next_aligned_date","earnings_release_next_calendar_date","earnings_release_next_date"],_.prototype.typeFields.economic=["reference-last-period","lp","currency_code","value_unit_id","unit_id","measure"],_.prototype.connect=function(e){this._quoteApi.connect(this.quoteHandler.bind(this))},_.prototype.quoteHandler=function(e){var t=e.method,i=e.params;switch(t){case"connected":this._connected||(this._connected=!0,this.onConnected());break;case"quote_list_fields":break;case"quote_symbol_data":this._connected&&this.onSymbolData(i[0]);break;case"quote_completed":this._connected&&this.onSymbolData({symbolname:i[0],complete:performance.now(),values:{}});break;case"disconnected":this._connected&&(this._connected=!1,this.onDisconnect.fire())}},_.prototype.onConnected=function(){this.setFields();var e=Object.keys(this._symbol_data);e.length&&(this._quoteApi.quoteAddSymbols(e),this._delayUpdateFastSymbols()),this.onConnect.fire()},_.prototype.setFields=function(){var e=_.prototype.typeFields[this._type];e&&e.length&&this._quoteApi.quoteSetFields(e)},_.prototype.onSymbolData=function(e){try{e.status&&h.update(e,d,!1)}catch(e){}var t=e.symbolname,i=this._throttledSymbolData[t];i||(i=this._throttledSymbolData[t]={fnDispatch:s(this.dipatchSymbolData.bind(this),this.options.throttleTimeout)}),i.cache?c(i.cache,e):i.cache=e,i.fnDispatch(t)},_.prototype._parseUpdateMode=function(e){l(e)},_.prototype.dipatchSymbolData=function(e){var t=this._symbol_data[e],i=this._throttledSymbolData[e].cache @@ -310,12 +310,12 @@ this._prevAddPlusButton=Jn.addPlusButtonProperty.value(),this._prevShowOpenMarke n.ensureNotNull)(e.getPriceScaleById(t)))).forEach((t=>e.movePriceScale(t,"left"))),this._rightScales.reverse().map((t=>(0,n.ensureNotNull)(e.getPriceScaleById(t)))).forEach((t=>e.movePriceScale(t,"right")))}}class ro extends Yt.UndoCommand{constructor(e,t,i){super(i),this._chartModel=e,this._targetStrategy=(0,io.createPriceScaleSelectionStrategy)(t),this._initialState=e.panes().map((e=>new so(e)))}redo(){this._chartModel.panes().forEach((e=>e.setPriceScaleSelectionStrategy(this._targetStrategy))),this._chartModel.fullUpdate()}undo(){const e=this._chartModel.panes();for(let t=0;t{this._undoHistory.beginUndoMacro(e)},endUndoMacro:this._undoHistory.endUndoMacro.bind(this._undoHistory),emitEvent:this.emitEvent.bind(this)})}id(){return this._model().id()}undoHistory(){return this._undoHistory}setWatchedValue(e,t,i){this._undoHistory.setWatchedValue(e,t,i)}lineToolsGroupController(){return this._lineToolsGroupController}mergeAllScales(e){!function(e,t){e.beginUndoMacro("left"===t?os:as),e.model().panes().forEach((i=>{const s="left"===t?i.rightPriceScales():i.leftPriceScales(),r=("left"===t?i.leftPriceScales():i.rightPriceScales()).concat(s),n="overlay"===i.priceScalePosition(i.defaultPriceScale())?r[0]:i.defaultPriceScale();e.movePriceScale(i,n,t,0),r.forEach((t=>{if(t===n)return;let s=t.mainSource();for(;null!==s;){e.moveToScale(s,i,n,null,!0);const r=t.mainSource();if(r===s){ls.logError("Loop detected while trying to merge scales");break}s=r}}))})),e.endUndoMacro(),e.model().fullUpdate()}(this,e)}movePriceScale(e,t,i,s){const r=new cs(this._model(),e,t,i,s,_o);this._pushUndoCommand(r)}createLineTool({pane:e,point:t,linetool:i,properties:s,linkKey:r,ownerSource:o,disableSynchronization:a,sharingMode:l=oa(),id:c}){const h=zn.lineToolsStudyIds[i];if((0,n.assert)(!(0,oi.isStudyLineToolName)(h)||!!h),h){const e=this.canCreateStudy({id:h});if(!e.success)return aa(this.model(),e),(0,oi.isStudyLineToolName)(je.tool.value())&&(0,je.resetToCursor)(),null}const d=No.format({tool:new W.TranslatedString(i,bs.lineToolsLocalizedNames[i])});this.beginUndoMacro(d) -;const u=!a;this._createLineCommand=new Cs({model:this._model(),pane:e,lineTool:i,ownerSource:o||(0,n.ensureNotNull)(e.mainDataSource()),drawOnAllChartsMode:l,id:c});const p=this._createLineCommand.startCreatingLine(t,s,r||null,l,a),_=(0,n.ensureNotNull)(this._createLineCommand.line());let m=null;if(p&&(u&&this.finishLineTool(_),this._pushUndoCommand(this._createLineCommand),this._createLineCommand=null,m={points:_.normalizedPoints(),interval:this.mainSeries().interval()}),u&&void 0===r&&(0,je.drawOnAllCharts)().value()&&_.isSynchronizable()){const e=(0,n.ensureNotNull)(this.model().externalTimeStamp(t.index)),s={point:{price:t.price,timeStamp:e},linetool:i,properties:_.properties(),symbol:this.mainSeries().symbol(),model:this.model(),linkKey:(0,n.ensureNotNull)(_.linkKey().value()),finalState:m,id:_.id(),sharingMode:_.sharingMode().value()};_.isFixed()&&(s.pointPositionPercents=_.calcPositionPercents()),(0,je.createLineTool)(s)}return this.endUndoMacro(),_}continueCreatingLine(e,t,i,s){const r=(0,n.ensureNotNull)(this._createLineCommand);this.beginUndoMacro(r.text());const o=(0,n.ensureNotNull)(this._model().lineBeingCreated()),a=r.continueCreatingLine(e,t,i,s);let l=null;if(a&&(this.finishLineTool(o),this._pushUndoCommand(r),this._createLineCommand=null,l={points:o.normalizedPoints(),interval:this.mainSeries().interval()}),r.drawOnAllCharts()&&o.isSynchronizable()){const i=(0,n.ensureNotNull)(this._model().externalTimeStamp(e.index));(0,je.continueLineTool)({point:{price:e.price,timeStamp:i},envState:t,finalState:l,model:this._model()})}return this.endUndoMacro(),a}continueExternalLine(e,t,i){const s=(0,n.ensureNotNull)(this._createLineCommand),r=s.continueCreatingLine(e,t,i);return r&&(this._pushUndoCommand(s),this._createLineCommand=null),r}finishLineTool(e){this._model().finishLineTool(e)}cancelCreatingLine(){this.m_model.cancelCreatingLine()}lineBeingCreated(){return this.m_model.lineBeingCreated()}pasteImageAsLineTool(e,t,i,s){return null}loadRange(e){const t=this._model(),i=t.appliedTimeFrame().value();return(null===i||!Ji(i,e))&&(this._pushUndoCommand(new rr(t,e)),!0)}mainSeries(){return this.m_model.mainSeries()}model(){return this.m_model}publishedChartsTimelineSource(){return this.m_model.publishedChartsTimelineSource()}unlinkLines(e){const t=this.model();this.beginUndoMacro(mo);for(const i of e)null!==i.linkKey().value()&&(0,je.removeLineTool)({withUndo:!0,model:this.model(),symbol:i.symbol(),linkKey:(0,n.ensureNotNull)(i.linkKey().value()),sourceTitle:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,i),lineToolState:i.state(!1),unlink:!0}),this._pushUndoCommand(new nn(t,i));this.endUndoMacro()}zoomFromViewport(){const e=new sn((0,n.ensureDefined)(this._zoomStack.head()),this._zoomStack,!1);this._pushUndoCommand(e)}zoomToViewport(e,t,i,s,r){const n=new Qr(this.m_model,e,t,i,s,r),o=new sn(n,this._zoomStack,!0);this._pushUndoCommand(o)}zoomStack(){return this._zoomStack}timeScale(){return this.m_model.timeScale()}selection(){return this.m_model.selection()}selectionMacro(e,t){ -return this.m_model.selectionMacro(e,t)}onSelectedSourceChanged(){return this.m_model.onSelectedSourceChanged()}onTagsChanged(){return this.m_model.onTagsChanged()}lineCancelled(){return this.m_model.lineCancelled()}hoveredSource(){return this.m_model.hoveredSource()}crossHairSource(){return this.m_model.crossHairSource()}activeStrategySource(){return this.m_model.activeStrategySource()}setProperty(e,t,i,s){if(e&&e.value()!==t){this.beginUndoMacro(i);const r=new tr(e,t,i,this.m_model,!s);this._pushUndoCommand(r),this.endUndoMacro(),this.emitEvent("setProperty")}}setProperties(e,t,i,s=!0){this.beginUndoMacro(i),this.m_model.selectionMacro((()=>{for(let r=0;r{this.startScaleTime(0),this.scaleTimeTo(e),this.endScaleTime()}}))}zoomIn(){const e=this.timeScale().width();this.canZoomIn()&&(this.changeTimeScale(fo),(0,is.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(e),this.scaleTimeTo(0),this.endScaleTime()}}))}scrollChart(e){this.m_model.scrollEnabled()&&(this.startScrollTime(0),this.scrollTimeTo(e),this.endScrollTime())}startMovingSources(e,t,i,s){e.filter((e=>e.doesMovingAffectsUndo())).length&&(this._currentSourceMoveCommand=new ms(this.model(),e,vo,!1)), -this.model().startMovingSources(e,t,i,new Map,s)}moveSources(e,t){this.model().moveSources(e,new Map,t)}endMovingSource(e,t){this.model().endMovingSources(e,void 0,t),null!==this._currentSourceMoveCommand&&(this._currentSourceMoveCommand.saveNewState(),this._pushUndoCommand(this._currentSourceMoveCommand)),this._currentSourceMoveCommand=null}startChangingLinetool(e,t,i,s,r){this._currentLineChangeCommand=new ms(this.model(),[e],Oo.format({pointIndex:i}),!1),this.model().startChangingLinetool(e,t,i,s,r)}changeLinePoint(e,t){this.model().changeLinePoint(e,t)}endChangingLinetool(e){this.model().endChangingLinetool(e),null!==this._currentLineChangeCommand&&(this._currentLineChangeCommand.saveNewState(),this._pushUndoCommand(this._currentLineChangeCommand)),this._currentLineChangeCommand=null}setChartStyleProperty(e,t,i){if(e.value()!==t){const s=void 0,r=()=>{this.beginUndoMacro(i);const s=new ir(e,t,this.mainSeries(),i,this.model(),this._chartWidget);this._pushUndoCommand(s),this.emitEvent("setChartStyleProperty"),e.value(),this.endUndoMacro()};s?runOrGoPro(r,s.feature,{feature:s.featureName}):r()}}setPriceAutoScale(e,t,i){this._pushUndoCommand(new ti(this.m_model,e,t,t.state())),this.m_model.setPriceAutoScale(e,t,i)}setPriceScaleMode(e,t,i){if(!(0,Be.default)(t.mode(),e)){const s=new Kr.SetPriceScaleModeCommand(e,t,i,this.m_model);this._pushUndoCommand(s)}}setPriceScaleSelectionStrategy(e){if(this.m_model.properties().priceScaleSelectionStrategyName.value()===e)return;(0,u.trackEvent)("Chart","Change PriceScale Selection Strategy");const t=Xo.format({title:e});this.beginUndoMacro(t),this.setProperty(this.m_model.properties().priceScaleSelectionStrategyName,e,t);const i=new ro(this.m_model,e,t);this._pushUndoCommand(i),this.endUndoMacro()}setScaleRatioProperty(e,t,i){if(e.value()!==t){const s=new to.SetScaleRatioPropertiesCommand(e,t,i,this.m_model);this._pushUndoCommand(s)}}createUndoCheckpoint(){return this._undoHistory.createUndoCheckpoint()}undoToCheckpoint(e){this._undoHistory.undoToCheckpoint(e)}restorePropertiesForSource(e){(0,J.isLineTool)(e)?this._restoreLineToolFactoryDefaults(e):this._restoreStudyFactoryDefaults(e)}restoreLineToolsFactoryDefaults(e){1===e.length?this._restoreLineToolFactoryDefaults(e[0]):(this.beginUndoMacro(So),e.forEach((e=>this._restoreLineToolFactoryDefaults(e))),this.endUndoMacro())}restorePreferences(){const e=new eo(this.model());this._pushUndoCommand(e)}restoreState(e,t,i){return this.m_model.restoreState(e,t,i)}async clipboardCopy(e,t=this.selection().dataSources()){if(!(0,N.enabled)("datasource_copypaste"))return;const i=t.filter((e=>e.copiable()));if(0===i.length)return;for(const e of i)if((0,Z.isStudy)(e)&&e.isChildStudy())throw new Error("Can not copy child study");const s=(0,ts.clipboardDataForSources)(this._model().id(),i);return null!==s?e.write({app:JSON.stringify(s),text:s.title}):void 0}async clipboardCut(e,t=this.selection().dataSources()){if(!(0,N.enabled)("datasource_copypaste"))return;const i=t.filter((e=>e.copiable()));if(0===i.length)return -;await this.clipboardCopy(e,i);const s=i.filter((e=>e.isUserDeletable()));if(0===s.length)return;const r=(1===s.length?co:ho).format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,s[0])});this.beginUndoMacro(r),this.m_model.selectionMacro((()=>this.removeSources(s,!1,r)),!0),this.endUndoMacro()}async clipboardPaste(e,t){let i=null;if((0,N.enabled)("datasource_copypaste")&&(i=i||await e.read(),i.app)){const e=JSON.parse(i.app);if(null!==await this.pasteSourceFromClip(t,e))return}await this._processSpecialLineToolsContents(e,i,t)}applyStudyTemplate(e,t){const i=new Ir(this._model(),e,t);this._pushUndoCommand(i),(0,l.emit)("load_study_template")}createStudyInserter(e,t,i={}){const{stubTitle:s,isOverlay:r}=i,n={createStudy:(e,t,i,s,r,n,o,a,c,h,d,p)=>{if(!this.checkIfFeatureAvailable(e,o))return ia.logNormal("Cannot insert study "+e.id),null;(0,u.trackEvent)("studies","Study_"+e.id),"Compare@tv-basicstudies"===e.id&&(0,u.trackEvent)("compare","symbol:"+t.symbol),s&&this.m_model.removeSource(s);const _=this._insertStudy(e,t,r,n,o,a,c,h,d,null,p);return(0,l.emit)("study_event",_.study.id(),"create"),_},storeFailedStub:e=>{this._storeFailedStub(e)}};void 0!==s&&(n.createStub=()=>this.m_model.insertStudyStub(s,r).id(),n.removeStub=e=>this.m_model.removeStudyStub(e));const o=new Hn.StudyInserter(e,n);return o.setParentSources(t),o}applyLineToolTemplate(e,t,i){this.beginUndoMacro(i),this.saveLineToolState(e,i);const s=new jn(e,t,i);this._pushUndoCommand(s),this.saveLineToolState(e,i),this.endUndoMacro(),this.model().updateSource(e)}replayStatus(){return this.m_model.replayStatus()}setReplayStatus(e){return this.m_model.setReplayStatus(e)}isInReplay(){return this.m_model.isInReplay()}getSymbolString(){return this.m_model.getSymbolString()}interval(){return this.m_model.interval()}onInReplayStateChanged(){return this.m_model.onInReplayStateChanged()}switchToReplay(e,t){0}switchToRealtime(){0}async canChangeResolution(e){return this.model().canChangeResolution(e)}startCustomMoving(e,t,i){this._currentCustomMoveCommand=new qr(this.model(),e,t,i)}customMoveBeingProcessed(){return null!==this._currentCustomMoveCommand}processCustomMove(e){(0,n.ensureNotNull)(this._currentCustomMoveCommand).move(e)}endCustomMoving(){null!==this._currentCustomMoveCommand&&this._currentCustomMoveCommand.hasChanges()&&(this._pushUndoCommand(this._currentCustomMoveCommand),this._currentCustomMoveCommand=null)}state(e,t,i,s){return this.m_model.state(e,t,i,s)}panes(){return this.m_model.panes()}cloneLineTools(e,t){for(let t=0;t(0,n.ensureNotNull)(this.model().dataSourceForId(e)))).filter((e=>0!==e.sharingMode().value()));return s.length&&this._model().copyToOtherCharts(s,!0),this.endUndoMacro(),this.emitEvent("cloneLineTools"),i.newIds()}removeSource(e,t,i){this.lineBeingCreated()!==e?this.removeSources([e],t,uo.format({title:(0, -ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e)}),i):this.cancelCreatingLine()}removeSelectedSources(){const e=this._model().selection().dataSources();if(!e.length)return;const t=(e.length>1?po:uo).format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0])});this.removeSources(e,!1,t)}removeSources(e,t,i,s){s||(e=e.filter((e=>e.isUserDeletable())));const r=this._model(),o=r.lineToolsGroupModel();this.beginUndoMacro(i),r.selectionMacro((s=>{const a=new Map;e.forEach((e=>{if((0,J.isLineTool)(e)){const t=o.groupForLineTool(e);if(null!==t){const i=a.get(t)||[];i.push(e),a.set(t,i)}null!==e.linkKey().value()&&(0,je.removeLineTool)({withUndo:!0,model:this.model(),linkKey:(0,n.ensureNotNull)(e.linkKey().value()),symbol:this.model().mainSeries().symbol(),lineToolState:e.state(!1),sourceTitle:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e)})}}));const l=new us.RemoveSourcesUndoCommand(r,e,i),c=l.removedIds();this._pushUndoCommand(l),!t&&c.length>0&&(1===c.length?this.emitEvent("removeSource",[c[0]]):this.emitEvent("removeSources",[c]))}),!0),this.endUndoMacro()}async scrollToLineTool(e){const t=this.timeScale().logicalRange();if(null===t)return;const i=e.points().map((e=>e.index)),s=this.timeScale().points().range().value();if(null===s)return;let r=s.firstIndex;const o=s.lastIndex,a=t.length()/2;if(0===i.length||i.some((e=>t.contains(e))))return;const l=()=>{const t=e.points().map((e=>e.index)),i=t.filter((e=>e<=o)).reduce(((e,t)=>null===e?t:Math.max(e,t)),null);return null!==i?i:t.reduce(((e,t)=>Math.min(e,t)))};let c=l();if(r-a>c){const t=e.points().map((e=>e.time)).filter(P.notUndefined).map((e=>1e3*e));if(0===t.length)return;const i=t.reduce(((e,t)=>Math.min(e,t)),t[0]);await this.model().gotoTime(i),c=l();if((0,n.ensureNotNull)(this.timeScale().logicalRange()).contains(c))return;r=(0,n.ensureNotNull)(this.timeScale().points().range().value()).firstIndex}r-a>c&&this.mainSeries().setGotoDateResult({timestamp:(0,n.ensureNotNull)(this.timeScale().points().valueAt(r)),eod:!0});const h=this.timeScale().width()/2,d=this.timeScale().indexToCoordinate(c);this.model().stopTimeScaleAnimation(),this.model().setTimeScaleAnimation(new es.Animation({from:0,to:h-d,duration:$i.dur,easing:$i.easingFunc.easeInOutCubic}))}mergeSourceUp(e){const t=new fs.MergeUpUndoCommand(this._model(),e,Po);this._mergeUnmergeSource(e,t)}mergeSourceDown(e){const t=new fs.MergeDownUndoCommand(this._model(),e,xo);this._mergeUnmergeSource(e,t)}mergeToPane(e,t,i){const s=this._model().panes().indexOf(t),r=new fs.MergeToTargetPane(this._model(),e,s,To,i);this._mergeUnmergeSource(e,r)}unmergeSourceUp(e){const t=new gs.UnmergeUpUndoCommand(this._model(),e,Io);this._mergeUnmergeSource(e,t)}unmergeSourceDown(e){const t=new gs.UnmergeDownUndoCommand(this._model(),e,Mo);this._mergeUnmergeSource(e,t)}unmergeToNewBottomPane(e){const t=new gs.UnmergeToNewBottomPane(this._model(),e,Ao);this._mergeUnmergeSource(e,t)}moveLeft(){this.beginUndoMacro(Yo),(0,is.doAnimate)({ -to:this.m_model.timeScale().width()/5,onStep:e=>{this.startScrollTime(e),this.scrollTimeTo(0),this.endScrollTime()},onComplete:()=>{this.endUndoMacro()}})}moveRight(){this.beginUndoMacro(Zo),(0,is.doAnimate)({to:this.m_model.timeScale().width()/5,onStep:e=>{this.startScrollTime(0),this.scrollTimeTo(e),this.endScrollTime()},onComplete:()=>{this.endUndoMacro()}})}availableZOrderOperations(e){const t=this._model().lineToolsGroupModel(),i=e.filter(J.isLineTool),s=i.map((e=>t.groupForLineTool(e)));(0,n.assert)(new Set(s).size<=1,"Cannot move line tools from different group");const r=0===s.length?null:s[0];let o={bringForwardEnabled:!1,bringToFrontEnabled:!1,sendBackwardEnabled:!1,sendToBackEnabled:!1};const a=new Set(i);for(const t of(0,vs.sortSources)(e)){if((0,J.isLineTool)(t)&&null!==r){const e=(0,vs.sortSources)(r.lineTools().filter((e=>!a.has(e)||e===t)));o=ra(o,{bringForwardEnabled:t!==e[e.length-1],bringToFrontEnabled:t!==e[e.length-1],sendBackwardEnabled:t!==e[0],sendToBackEnabled:t!==e[0]});continue}const e=(0,n.ensureNotNull)(this._model().paneForSource(t)).sourcesByGroup().allExceptSpecialSources();if(0===e.length)continue;const i=t.zorder(),s=e[0].zorder(),l=e[e.length-1].zorder();o=ra(o,{bringForwardEnabled:i!==l,bringToFrontEnabled:i!==l,sendBackwardEnabled:i!==s,sendToBackEnabled:i!==s})}return o}sendToBack(e){if(!this.availableZOrderOperations(e).sendToBackEnabled)throw new Error("Send to back operation is unavailable");let t=null;const i=e[0];if((0,J.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new Ws(this.model(),(0,vs.sortSources)(e),i[0])}}null===t&&(t=new Rs(this.model(),(0,vs.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}bringToFront(e){if(!this.availableZOrderOperations(e).bringToFrontEnabled)throw new Error("Bring to front operation is unavailable");let t=null;const i=e[0];if((0,J.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new Os(this.model(),(0,vs.sortSources)(e),i[i.length-1])}}null===t&&(t=new Bs(this.model(),(0,vs.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}sendBackward(e){if(!this.availableZOrderOperations(e).sendBackwardEnabled)throw new Error("Send backward operation is unavailable");const t=no.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0])});this._sendBackOrBringForward(t,(0,vs.sortSources)(e),((e,t)=>new zs(this.model(),e,t)))}bringForward(e){if(!this.availableZOrderOperations(e).bringForwardEnabled)throw new Error("Bring forward operation is unavailable");const t=oo.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0])});this._sendBackOrBringForward(t,(0,vs.sortSources)(e),((e,t)=>new js(this.model(),e,t)))}insertAfter(e,t){e=(0,vs.sortSources)(e);const i=ao.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0]),target:(0, +;const u=!a;this._createLineCommand=new Cs({model:this._model(),pane:e,lineTool:i,ownerSource:o||(0,n.ensureNotNull)(e.mainDataSource()),drawOnAllChartsMode:l,id:c});const p=this._createLineCommand.startCreatingLine(t,s,r||null,l,a),_=(0,n.ensureNotNull)(this._createLineCommand.line());let m=null;if(p&&(u&&this.finishLineTool(_),this._pushUndoCommand(this._createLineCommand),this._createLineCommand=null,m={points:_.normalizedPoints(),interval:this.mainSeries().interval()}),u&&void 0===r&&(0,je.drawOnAllCharts)().value()&&_.isSynchronizable()){const e=(0,n.ensureNotNull)(this.model().externalTimeStamp(t.index)),s={point:{price:t.price,timeStamp:e},linetool:i,properties:_.properties(),symbol:this.mainSeries().symbol(),model:this.model(),linkKey:(0,n.ensureNotNull)(_.linkKey().value()),finalState:m,id:_.id(),sharingMode:_.sharingMode().value()};_.isFixed()&&(s.pointPositionPercents=_.calcPositionPercents()),(0,je.createLineTool)(s)}return this.endUndoMacro(),_}continueCreatingLine(e,t,i,s){const r=(0,n.ensureNotNull)(this._createLineCommand);this.beginUndoMacro(r.text());const o=(0,n.ensureNotNull)(this._model().lineBeingCreated()),a=r.continueCreatingLine(e,t,i,s);let l=null;if(a&&(this.finishLineTool(o),this._pushUndoCommand(r),this._createLineCommand=null,l={points:o.normalizedPoints(),interval:this.mainSeries().interval()}),r.drawOnAllCharts()&&o.isSynchronizable()){const i=(0,n.ensureNotNull)(this._model().externalTimeStamp(e.index));(0,je.continueLineTool)({point:{price:e.price,timeStamp:i},envState:t,finalState:l,model:this._model()})}return this.endUndoMacro(),a}continueExternalLine(e,t,i){const s=(0,n.ensureNotNull)(this._createLineCommand),r=s.continueCreatingLine(e,t,i);return r&&(this._pushUndoCommand(s),this._createLineCommand=null),r}finishLineTool(e){this._model().finishLineTool(e)}cancelCreatingLine(){this.m_model.cancelCreatingLine()}lineBeingCreated(){return this.m_model.lineBeingCreated()}pasteImageAsLineTool(e,t,i,s){return null}loadRange(e){const t=this._model(),i=t.appliedTimeFrame().value();return(null===i||!Ji(i,e))&&(this._pushUndoCommand(new rr(t,e)),(0,l.emit)("timeframe_interval",e),!0)}mainSeries(){return this.m_model.mainSeries()}model(){return this.m_model}publishedChartsTimelineSource(){return this.m_model.publishedChartsTimelineSource()}unlinkLines(e){const t=this.model();this.beginUndoMacro(mo);for(const i of e)null!==i.linkKey().value()&&(0,je.removeLineTool)({withUndo:!0,model:this.model(),symbol:i.symbol(),linkKey:(0,n.ensureNotNull)(i.linkKey().value()),sourceTitle:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,i),lineToolState:i.state(!1),unlink:!0}),this._pushUndoCommand(new nn(t,i));this.endUndoMacro()}zoomFromViewport(){const e=new sn((0,n.ensureDefined)(this._zoomStack.head()),this._zoomStack,!1);this._pushUndoCommand(e)}zoomToViewport(e,t,i,s,r){const n=new Qr(this.m_model,e,t,i,s,r),o=new sn(n,this._zoomStack,!0);this._pushUndoCommand(o)}zoomStack(){return this._zoomStack}timeScale(){return this.m_model.timeScale()}selection(){ +return this.m_model.selection()}selectionMacro(e,t){return this.m_model.selectionMacro(e,t)}onSelectedSourceChanged(){return this.m_model.onSelectedSourceChanged()}onTagsChanged(){return this.m_model.onTagsChanged()}lineCancelled(){return this.m_model.lineCancelled()}hoveredSource(){return this.m_model.hoveredSource()}crossHairSource(){return this.m_model.crossHairSource()}activeStrategySource(){return this.m_model.activeStrategySource()}setProperty(e,t,i,s){if(e&&e.value()!==t){this.beginUndoMacro(i);const r=new tr(e,t,i,this.m_model,!s);this._pushUndoCommand(r),this.endUndoMacro(),this.emitEvent("setProperty")}}setProperties(e,t,i,s=!0){this.beginUndoMacro(i),this.m_model.selectionMacro((()=>{for(let r=0;r{this.startScaleTime(0),this.scaleTimeTo(e),this.endScaleTime()}}))}zoomIn(){const e=this.timeScale().width();this.canZoomIn()&&(this.changeTimeScale(fo),(0,is.doAnimate)({to:e/5,onStep:e=>{this.startScaleTime(e),this.scaleTimeTo(0),this.endScaleTime()}}))}scrollChart(e){this.m_model.scrollEnabled()&&(this.startScrollTime(0),this.scrollTimeTo(e),this.endScrollTime())}startMovingSources(e,t,i,s){ +e.filter((e=>e.doesMovingAffectsUndo())).length&&(this._currentSourceMoveCommand=new ms(this.model(),e,vo,!1)),this.model().startMovingSources(e,t,i,new Map,s)}moveSources(e,t){this.model().moveSources(e,new Map,t)}endMovingSource(e,t){this.model().endMovingSources(e,void 0,t),null!==this._currentSourceMoveCommand&&(this._currentSourceMoveCommand.saveNewState(),this._pushUndoCommand(this._currentSourceMoveCommand)),this._currentSourceMoveCommand=null}startChangingLinetool(e,t,i,s,r){this._currentLineChangeCommand=new ms(this.model(),[e],Oo.format({pointIndex:i}),!1),this.model().startChangingLinetool(e,t,i,s,r)}changeLinePoint(e,t){this.model().changeLinePoint(e,t)}endChangingLinetool(e){this.model().endChangingLinetool(e),null!==this._currentLineChangeCommand&&(this._currentLineChangeCommand.saveNewState(),this._pushUndoCommand(this._currentLineChangeCommand)),this._currentLineChangeCommand=null}setChartStyleProperty(e,t,i){if(e.value()!==t){const s=void 0,r=()=>{this.beginUndoMacro(i);const s=new ir(e,t,this.mainSeries(),i,this.model(),this._chartWidget);this._pushUndoCommand(s),this.emitEvent("setChartStyleProperty"),e.value(),this.endUndoMacro()};s?runOrGoPro(r,s.feature,{feature:s.featureName}):r()}}setPriceAutoScale(e,t,i){this._pushUndoCommand(new ti(this.m_model,e,t,t.state())),this.m_model.setPriceAutoScale(e,t,i)}setPriceScaleMode(e,t,i){if(!(0,Be.default)(t.mode(),e)){const s=new Kr.SetPriceScaleModeCommand(e,t,i,this.m_model);this._pushUndoCommand(s)}}setPriceScaleSelectionStrategy(e){if(this.m_model.properties().priceScaleSelectionStrategyName.value()===e)return;(0,u.trackEvent)("Chart","Change PriceScale Selection Strategy");const t=Xo.format({title:e});this.beginUndoMacro(t),this.setProperty(this.m_model.properties().priceScaleSelectionStrategyName,e,t);const i=new ro(this.m_model,e,t);this._pushUndoCommand(i),this.endUndoMacro()}setScaleRatioProperty(e,t,i){if(e.value()!==t){const s=new to.SetScaleRatioPropertiesCommand(e,t,i,this.m_model);this._pushUndoCommand(s)}}createUndoCheckpoint(){return this._undoHistory.createUndoCheckpoint()}undoToCheckpoint(e){this._undoHistory.undoToCheckpoint(e)}restorePropertiesForSource(e){(0,J.isLineTool)(e)?this._restoreLineToolFactoryDefaults(e):this._restoreStudyFactoryDefaults(e)}restoreLineToolsFactoryDefaults(e){1===e.length?this._restoreLineToolFactoryDefaults(e[0]):(this.beginUndoMacro(So),e.forEach((e=>this._restoreLineToolFactoryDefaults(e))),this.endUndoMacro())}restorePreferences(){const e=new eo(this.model());this._pushUndoCommand(e)}restoreState(e,t,i){return this.m_model.restoreState(e,t,i)}async clipboardCopy(e,t=this.selection().dataSources()){if(!(0,N.enabled)("datasource_copypaste"))return;const i=t.filter((e=>e.copiable()));if(0===i.length)return;for(const e of i)if((0,Z.isStudy)(e)&&e.isChildStudy())throw new Error("Can not copy child study");const s=(0,ts.clipboardDataForSources)(this._model().id(),i);return null!==s?e.write({app:JSON.stringify(s),text:s.title}):void 0}async clipboardCut(e,t=this.selection().dataSources()){if(!(0, +N.enabled)("datasource_copypaste"))return;const i=t.filter((e=>e.copiable()));if(0===i.length)return;await this.clipboardCopy(e,i);const s=i.filter((e=>e.isUserDeletable()));if(0===s.length)return;const r=(1===s.length?co:ho).format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,s[0])});this.beginUndoMacro(r),this.m_model.selectionMacro((()=>this.removeSources(s,!1,r)),!0),this.endUndoMacro()}async clipboardPaste(e,t){let i=null;if((0,N.enabled)("datasource_copypaste")&&(i=i||await e.read(),i.app)){const e=JSON.parse(i.app);if(null!==await this.pasteSourceFromClip(t,e))return}await this._processSpecialLineToolsContents(e,i,t)}applyStudyTemplate(e,t){const i=new Ir(this._model(),e,t);this._pushUndoCommand(i),(0,l.emit)("load_study_template")}createStudyInserter(e,t,i={}){const{stubTitle:s,isOverlay:r}=i,n={createStudy:(e,t,i,s,r,n,o,a,c,h,d,p)=>{if(!this.checkIfFeatureAvailable(e,o))return ia.logNormal("Cannot insert study "+e.id),null;(0,u.trackEvent)("studies","Study_"+e.id),"Compare@tv-basicstudies"===e.id&&(0,u.trackEvent)("compare","symbol:"+t.symbol),s&&this.m_model.removeSource(s);const _=this._insertStudy(e,t,r,n,o,a,c,h,d,null,p);return(0,l.emit)("study_event",_.study.id(),"create"),_},storeFailedStub:e=>{this._storeFailedStub(e)}};void 0!==s&&(n.createStub=()=>this.m_model.insertStudyStub(s,r).id(),n.removeStub=e=>this.m_model.removeStudyStub(e));const o=new Hn.StudyInserter(e,n);return o.setParentSources(t),o}applyLineToolTemplate(e,t,i){this.beginUndoMacro(i),this.saveLineToolState(e,i);const s=new jn(e,t,i);this._pushUndoCommand(s),this.saveLineToolState(e,i),this.endUndoMacro(),this.model().updateSource(e)}replayStatus(){return this.m_model.replayStatus()}setReplayStatus(e){return this.m_model.setReplayStatus(e)}isInReplay(){return this.m_model.isInReplay()}getSymbolString(){return this.m_model.getSymbolString()}interval(){return this.m_model.interval()}onInReplayStateChanged(){return this.m_model.onInReplayStateChanged()}switchToReplay(e,t){0}switchToRealtime(){0}async canChangeResolution(e){return this.model().canChangeResolution(e)}startCustomMoving(e,t,i){this._currentCustomMoveCommand=new qr(this.model(),e,t,i)}customMoveBeingProcessed(){return null!==this._currentCustomMoveCommand}processCustomMove(e){(0,n.ensureNotNull)(this._currentCustomMoveCommand).move(e)}endCustomMoving(){null!==this._currentCustomMoveCommand&&this._currentCustomMoveCommand.hasChanges()&&(this._pushUndoCommand(this._currentCustomMoveCommand),this._currentCustomMoveCommand=null)}state(e,t,i,s){return this.m_model.state(e,t,i,s)}panes(){return this.m_model.panes()}cloneLineTools(e,t){for(let t=0;t(0,n.ensureNotNull)(this.model().dataSourceForId(e)))).filter((e=>0!==e.sharingMode().value()));return s.length&&this._model().copyToOtherCharts(s,!0),this.endUndoMacro(),this.emitEvent("cloneLineTools"),i.newIds()}removeSource(e,t,i){ +this.lineBeingCreated()!==e?this.removeSources([e],t,uo.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e)}),i):this.cancelCreatingLine()}removeSelectedSources(){const e=this._model().selection().dataSources();if(!e.length)return;const t=(e.length>1?po:uo).format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0])});this.removeSources(e,!1,t)}removeSources(e,t,i,s){s||(e=e.filter((e=>e.isUserDeletable())));const r=this._model(),o=r.lineToolsGroupModel();this.beginUndoMacro(i),r.selectionMacro((s=>{const a=new Map;e.forEach((e=>{if((0,J.isLineTool)(e)){const t=o.groupForLineTool(e);if(null!==t){const i=a.get(t)||[];i.push(e),a.set(t,i)}null!==e.linkKey().value()&&(0,je.removeLineTool)({withUndo:!0,model:this.model(),linkKey:(0,n.ensureNotNull)(e.linkKey().value()),symbol:this.model().mainSeries().symbol(),lineToolState:e.state(!1),sourceTitle:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e)})}}));const l=new us.RemoveSourcesUndoCommand(r,e,i),c=l.removedIds();this._pushUndoCommand(l),!t&&c.length>0&&(1===c.length?this.emitEvent("removeSource",[c[0]]):this.emitEvent("removeSources",[c]))}),!0),this.endUndoMacro()}async scrollToLineTool(e){const t=this.timeScale().logicalRange();if(null===t)return;const i=e.points().map((e=>e.index)),s=this.timeScale().points().range().value();if(null===s)return;let r=s.firstIndex;const o=s.lastIndex,a=t.length()/2;if(0===i.length||i.some((e=>t.contains(e))))return;const l=()=>{const t=e.points().map((e=>e.index)),i=t.filter((e=>e<=o)).reduce(((e,t)=>null===e?t:Math.max(e,t)),null);return null!==i?i:t.reduce(((e,t)=>Math.min(e,t)))};let c=l();if(r-a>c){const t=e.points().map((e=>e.time)).filter(P.notUndefined).map((e=>1e3*e));if(0===t.length)return;const i=t.reduce(((e,t)=>Math.min(e,t)),t[0]);await this.model().gotoTime(i),c=l();if((0,n.ensureNotNull)(this.timeScale().logicalRange()).contains(c))return;r=(0,n.ensureNotNull)(this.timeScale().points().range().value()).firstIndex}r-a>c&&this.mainSeries().setGotoDateResult({timestamp:(0,n.ensureNotNull)(this.timeScale().points().valueAt(r)),eod:!0});const h=this.timeScale().width()/2,d=this.timeScale().indexToCoordinate(c);this.model().stopTimeScaleAnimation(),this.model().setTimeScaleAnimation(new es.Animation({from:0,to:h-d,duration:$i.dur,easing:$i.easingFunc.easeInOutCubic}))}mergeSourceUp(e){const t=new fs.MergeUpUndoCommand(this._model(),e,Po);this._mergeUnmergeSource(e,t)}mergeSourceDown(e){const t=new fs.MergeDownUndoCommand(this._model(),e,xo);this._mergeUnmergeSource(e,t)}mergeToPane(e,t,i){const s=this._model().panes().indexOf(t),r=new fs.MergeToTargetPane(this._model(),e,s,To,i);this._mergeUnmergeSource(e,r)}unmergeSourceUp(e){const t=new gs.UnmergeUpUndoCommand(this._model(),e,Io);this._mergeUnmergeSource(e,t)}unmergeSourceDown(e){const t=new gs.UnmergeDownUndoCommand(this._model(),e,Mo);this._mergeUnmergeSource(e,t)}unmergeToNewBottomPane(e){const t=new gs.UnmergeToNewBottomPane(this._model(),e,Ao);this._mergeUnmergeSource(e,t)}moveLeft(){ +this.beginUndoMacro(Yo),(0,is.doAnimate)({to:this.m_model.timeScale().width()/5,onStep:e=>{this.startScrollTime(e),this.scrollTimeTo(0),this.endScrollTime()},onComplete:()=>{this.endUndoMacro()}})}moveRight(){this.beginUndoMacro(Zo),(0,is.doAnimate)({to:this.m_model.timeScale().width()/5,onStep:e=>{this.startScrollTime(0),this.scrollTimeTo(e),this.endScrollTime()},onComplete:()=>{this.endUndoMacro()}})}availableZOrderOperations(e){const t=this._model().lineToolsGroupModel(),i=e.filter(J.isLineTool),s=i.map((e=>t.groupForLineTool(e)));(0,n.assert)(new Set(s).size<=1,"Cannot move line tools from different group");const r=0===s.length?null:s[0];let o={bringForwardEnabled:!1,bringToFrontEnabled:!1,sendBackwardEnabled:!1,sendToBackEnabled:!1};const a=new Set(i);for(const t of(0,vs.sortSources)(e)){if((0,J.isLineTool)(t)&&null!==r){const e=(0,vs.sortSources)(r.lineTools().filter((e=>!a.has(e)||e===t)));o=ra(o,{bringForwardEnabled:t!==e[e.length-1],bringToFrontEnabled:t!==e[e.length-1],sendBackwardEnabled:t!==e[0],sendToBackEnabled:t!==e[0]});continue}const e=(0,n.ensureNotNull)(this._model().paneForSource(t)).sourcesByGroup().allExceptSpecialSources();if(0===e.length)continue;const i=t.zorder(),s=e[0].zorder(),l=e[e.length-1].zorder();o=ra(o,{bringForwardEnabled:i!==l,bringToFrontEnabled:i!==l,sendBackwardEnabled:i!==s,sendToBackEnabled:i!==s})}return o}sendToBack(e){if(!this.availableZOrderOperations(e).sendToBackEnabled)throw new Error("Send to back operation is unavailable");let t=null;const i=e[0];if((0,J.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new Ws(this.model(),(0,vs.sortSources)(e),i[0])}}null===t&&(t=new Rs(this.model(),(0,vs.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}bringToFront(e){if(!this.availableZOrderOperations(e).bringToFrontEnabled)throw new Error("Bring to front operation is unavailable");let t=null;const i=e[0];if((0,J.isLineTool)(i)){const s=this._model().lineToolsGroupModel().groupForLineTool(i);if(null!==s){const i=s.lineTools();t=new Os(this.model(),(0,vs.sortSources)(e),i[i.length-1])}}null===t&&(t=new Bs(this.model(),(0,vs.sortSources)(e))),this._pushUndoCommand(t),this.emitEvent("changeZOrder",[e])}sendBackward(e){if(!this.availableZOrderOperations(e).sendBackwardEnabled)throw new Error("Send backward operation is unavailable");const t=no.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0])});this._sendBackOrBringForward(t,(0,vs.sortSources)(e),((e,t)=>new zs(this.model(),e,t)))}bringForward(e){if(!this.availableZOrderOperations(e).bringForwardEnabled)throw new Error("Bring forward operation is unavailable");const t=oo.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0])});this._sendBackOrBringForward(t,(0,vs.sortSources)(e),((e,t)=>new js(this.model(),e,t)))}insertAfter(e,t){e=(0,vs.sortSources)(e);const i=ao.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0]),target:(0, ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,t)});this._insertAfterOrBefore(i,e,t,(()=>new Os(this.model(),e,t)))}insertBefore(e,t){e=(0,vs.sortSources)(e);const i=lo.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e[0]),target:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,t)});this._insertAfterOrBefore(i,e,t,(()=>new Ws(this.model(),e,t)))}detachToRight(e,t){(0,u.trackEvent)("Chart","Move to new right scale");const i=Lo.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e)}),s=new Rr.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"right",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}detachToLeft(e,t){(0,u.trackEvent)("Chart","Move to new left scale");const i=ko.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e)}),s=new Rr.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"left",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}detachNoScale(e,t){(0,u.trackEvent)("Chart","Make source no scale");const i=Do.format({title:(0,ys.getTranslatedStringForSource)(Ps.TitleDisplayTarget.StatusLine,e)}),s=new Rr.MoveToNewPriceScaleUndoCommand(this.model(),e,t,"overlay",i);this._pushUndoCommand(s),this.emitEvent("moveSource",[e])}moveToScale(e,t,i,s,r){(0,u.trackEvent)("Chart","Move source to target scale"),this.beginUndoMacro(s);const n=new Rr.MoveToExistingPriceScaleUndoCommand(this.model(),e,t,i,s),o=r?null:(0,ss.sourceNewCurrencyOnPinningToPriceScale)(e,i,this._model()),a=r?null:(0,Xr.sourceNewUnitOnPinningToPriceScale)(e,i,this._model());this._pushUndoCommand(n),null!==o&&this.setPriceScaleCurrency(i,o),null!==a&&this.setPriceScaleUnit(i,a),this.endUndoMacro(),this.emitEvent("moveSource",[e])}setLinkingGroupIndex(e){this._undoHistory.beginUndoMacro(ta),this._pushUndoCommand(new Wn(this.model().linkingGroupIndex(),e,ta)),this._model().setShouldBeSavedEvenIfHidden(!0),this._undoHistory.endUndoMacro()}startScrollPrice(e,t,i){t.isAutoScale()||(this._initialPriceScrollState=t.state(),this._initialPriceScrollPos=i,this._model().startScrollPrice(e,t,i))}scrollPriceTo(e,t,i){t.isAutoScale()||(this._initialPriceScrollState&&this._initialPriceScrollPos&&Math.abs(this._initialPriceScrollPos-i)>20&&(this._pushUndoCommand(new ti(this.m_model,e,t,this._initialPriceScrollState,void 0,!1)),this._initialPriceScrollState=null,this._initialPriceScrollPos=null),this._model().scrollPriceTo(e,t,i))}endScrollPrice(e,t){t.isAutoScale()||(this._initialPriceScrollState=null,this._initialPriceScrollPos=null,this._model().endScrollPrice(e,t))}startScrollTime(e){const t=this.timeScale();this._initialTimeScrollState={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()},this._initialTimeScrollPos=e,this.model().startScrollTime(e)}scrollTimeTo(e){null!==this._initialTimeScrollPos&&null!==this._initialTimeScrollState&&Math.abs(e-this._initialTimeScrollPos)>20&&(this._pushUndoCommand(new Xt(this.model(),this._initialTimeScrollState,Eo,!1)),this._initialTimeScrollPos=null, this._initialTimeScrollState=null),this.model().scrollTimeTo(e)}endScrollTime(){this.model().endScrollTime(),this._initialTimeScrollPos=null,this._initialTimeScrollState=null}startScaleTime(e){const t=this.timeScale();this._initialTimeScaleState={rightOffset:t.rightOffset(),barSpacing:t.barSpacing()},this.model().startScaleTime(e)}scaleTimeTo(e){null!==this._initialTimeScaleState&&this._initialTimeScaleState.barSpacing!==this.timeScale().barSpacing()&&(this._pushUndoCommand(new Xt(this.model(),this._initialTimeScaleState,Vo,!0)),this._initialTimeScaleState=null),this.model().scaleTimeTo(e)}endScaleTime(){this.model().endScaleTime()}resetTimeScale(){this.changeTimeScale(Bo,this.timeScale().resetAvailable().value()),this.model().resetTimeScale()}changeTimeScale(e,t=!0){const i=this.timeScale(),s={rightOffset:i.rightOffset(),barSpacing:i.barSpacing()};this._pushUndoCommand(new Xt(this.model(),s,e,t))}startScalePrice(e,t,i,s){this._scalePriceInfo={priceScaleState:t.state(),tryMergeConsecutiveScales:s},this.model().startScalePrice(e,t,i)}scalePriceTo(e,t,i){this.model().scalePriceTo(e,t,i)}endScalePrice(e,t){this.model().endScalePrice(e,t);const i=(0,n.ensureNotNull)(this._scalePriceInfo);(0,Be.default)(i.priceScaleState,t.state())||this._pushUndoCommand(new ti(this.model(),e,t,i.priceScaleState,i.tryMergeConsecutiveScales)),this._scalePriceInfo=null}startTwoPointsScalePrice(e,t,i,s,r){this._scalePriceInfo={priceScaleState:t.state(),tryMergeConsecutiveScales:r},this.model().startTwoPointsScalePrice(e,t,i,s)}twoPointsScalePriceTo(e,t,i,s){this.model().twoPointsScalePriceTo(e,t,i,s)}endTwoPointsScalePrice(e,t){this.model().endTwoPointsScalePrice(e,t);const i=(0,n.ensureNotNull)(this._scalePriceInfo);(0,Be.default)(i.priceScaleState,t.state())||this._pushUndoCommand(new ti(this.model(),e,t,i.priceScaleState,i.tryMergeConsecutiveScales)),this._scalePriceInfo=null}resetPriceScale(e,t){const i=t.state();this.model().resetPriceScale(e,t),(0,Be.default)(i,t.state())||this._pushUndoCommand(new ti(this.m_model,e,t,i))}rearrangePanes(e,t){const i=new Ys(this._model(),e,t);this._pushUndoCommand(i)}movePane(e,t){const i=new Ys(this._model(),e,t);this._pushUndoCommand(i)}toggleCollapsedPane(e){const t=this.panes().findIndex((t=>t===e));t<0||this._pushUndoCommand(new ns(this._model(),t))}readOnly(){return this.m_model.readOnly()}checkIfFeatureAvailable(e,t){const i=t.length>0,s=this.canCreateStudy({id:e.id,child:i,fundamental:!1});return!!s.success||(aa(this.model(),s),!1)}async pasteSourceFromClip(e,t,i){const s=t;if(!s||0===s.sources.length)return null;const r=e||(0,n.ensureNotNull)(this.model().paneForSource(this.mainSeries()));if(!s.sources.some((e=>"drawing"!==e.type||null!==r.clipboardLineToolOwnerSource(e.source.id))))return null;const o=Array.from(new Set(s.sources.filter(ts.isLineToolClipboardData).map((e=>e.source.type))));await Promise.all(o.map((e=>(0,J.initLineTool)(e)))),this.beginUndoMacro(Fo.format({title:s.title}));let a=0;const l=[],c=[] ;for(const t of s.sources)if("drawing"===t.type&&null!==r.clipboardLineToolOwnerSource(t.source.id)){const e=this.pasteLineTool(r,t);a<5&&(ri(),a+=1),c.push(e),l.push(e)}else"study"===t.type&&t.source&&t.source.metaInfo&&this.checkIfFeatureAvailable(new Yi.StudyMetaInfo(t.source.metaInfo),[])&&l.push(this.pasteStudy(t,i?e:void 0));return c.length&&this.selectionMacro((e=>{e.clearSelection(),c.forEach((t=>{e.addSourceToSelection(t,null)}))})),this.endUndoMacro(),l}pasteLineTool(e,t,i,s){t.source.state.intervalsVisibilities=(0,un.mergeIntervalVisibilitiesDefaults)(t.source.state.intervalsVisibilities),(0,un.makeIntervalsVisibilitiesVisibleAtInterval)(t.source.state.intervalsVisibilities,this.model().mainSeries().intervalObj());const r=new Er(this.model(),t,e,i,s);this._pushUndoCommand(r);const n=r.source();return r.needCopyToOtherCharts()&&this._model().copyToOtherCharts([n],!0),this.selectionMacro((e=>{e.clearSelection(),e.addSourceToSelection(n,null)})),n}pasteStudy(e,t){const i=new Ur(this.model(),e,null==t?void 0:t.id());this._pushUndoCommand(i);const s=(0,n.ensureNotNull)(i.state()).id;return(0,l.emit)("study_event",s,"paste_study"),(0,n.ensureNotNull)(this._model().dataSourceForId(s))}removePane(e){const t=this.m_model.panes()[e].dataSources().slice();this.removeSources(t,!1,Ho)}createPane(e){return this.m_model.createPane(e)}setPriceScaleCurrency(e,t){const i=new Vr.SetPriceScaleCurrencyUndoCommand(this.m_model,e,t,bo);this._pushUndoCommand(i)}setPriceScaleUnit(e,t){const i=new Br.SetPriceScaleUnitUndoCommand(this.m_model,e,t,wo);this._pushUndoCommand(i)}setSymbol(e,t){e.symbolSameAsResolved(t)||this._pushUndoCommand(new Wr(e,t,this._chartWidget))}setResolution(e,t){Xi.Interval.isEqual(e.interval(),t)||this._pushUndoCommand(new On(e,t,this._chartWidget))}hideMaximizedPaneIfRequired(){this._chartWidget.isMaximizedPane()&&this._chartWidget.toggleMaximizePane(null)}syncCrosshair(e,t,i){this._chartWidget.chartWidgetCollection().syncCrosshair(e,this._chartWidget.id(),t,i)}loadingScreen(){return this._chartWidget.screen}chartLoadTheme(e,t,i){const s=new Rn(this.model(),e,t);i?s.redo():this._pushUndoCommand(s)}isJustClonedChart(){return this._chartWidget.isJustClonedChart()}isMultipleLayout(){return this._chartWidget.isMultipleLayout()}addPaneStretchFactorUndoCommand(e,t,i,s){const r=new jr(this.model(),e,t,i,s);this._pushUndoCommand(r)}applyPreferences(e){throw new Error("Not implemented")}paneForSource(e){return this.m_model.paneForSource(e)}destroy(){this.m_model.destroy()}moveSelectedToolsLeft(){return this._moveSelectedTools(2)}moveSelectedToolsUp(){return this._moveSelectedTools(0)}moveSelectedToolsRight(){return this._moveSelectedTools(3)}moveSelectedToolsDown(){return this._moveSelectedTools(1)}insertStudyWithoutCheck(e,t,i,s){return this._insertStudy(e,t,{},!1,[],void 0,void 0,void 0,void 0,null!=i?i:null,void 0,s)}saveLineToolState(e,t){this._pushUndoCommand(new ms(this.m_model,[e],t))}resetScales(){this._model().stopTimeScaleAnimation(),this.beginUndoMacro(Ro),this.resetTimeScale() @@ -888,32 +888,32 @@ const e=this._promise=Promise.all([i.e(2646),i.e(3060),i.e(2603),i.e(7528),i.e(6 constructor(e,t){this._visibility=new O.WatchedValue(!1),this._dialogPromise=null,this._dialog=null,this._chartWidgetCollection=e,this._options=t}visible(){return this._visibility.readonly()}show(e,t,i){var s,r,n;const o=Array.isArray(e)?e:[],a=Array.isArray(e)?void 0:e;null===this._dialog&&this._requestDialog(null!=o?o:[],t,i,a),null===(s=this._dialog)||void 0===s||s.open(null!=o?o:[],null===(n=null===(r=this._options)||void 0===r?void 0:r.indicatorsPreloader)||void 0===n?void 0:n.getIndicatorPromises(),t,i,a)}hide(){var e;null===(e=this._dialog)||void 0===e||e.hide()}getDialog(){return this._dialog}resetAllPages(){var e;null===(e=this._dialog)||void 0===e||e.resetAllStudies()}_requestDialog(e,t,s,r){if(null===this._dialogPromise){let n;n=Promise.all([i.e(2530),i.e(3060),i.e(7528),i.e(6246),i.e(7811),i.e(412),i.e(55),i.e(3114),i.e(4632),i.e(1398),i.e(9978),i.e(2227),i.e(6014),i.e(6456)]).then(i.bind(i,75585)).then((e=>new e.IndicatorsLibraryContainer(this._chartWidgetCollection,this._options))),this._dialogPromise=n.then((i=>{var n,o;this._dialog=i,this._dialog.visible().subscribe((e=>{this._visibility.setValue(e)})),this._dialog.open(e,null===(o=null===(n=this._options)||void 0===n?void 0:n.indicatorsPreloader)||void 0===o?void 0:o.getIndicatorPromises(),t,s,r)}))}return this._dialogPromise}}var pe=i(14426),_e=i(31054),me=i(92184),ge=i(42752),fe=i(60859),ve=i(51613),ye=i(63829),Se=i(11497),be=i(2740),we=i(63950),Ce=i(23998);const Pe=/^Etc\/GMT([+-])(\d{1,2}):?(\d\d)?$/,xe=new Map;function Te(e){if(xe.has(e))return xe.get(e);const t=Pe.test(e);return xe.set(e,t),t}const Ie=new Map;function Me(e){if(Ie.has(e))return Ie.get(e);const t=function(e){const t=e.match(Pe);if(!t)return 0;const i="+"===t[1]?-1:1;return 60*(60*parseInt(t[2],10)+parseInt(t[3]||"0",10))*i}(e),i={time:[1924992e3+t],offset:[t]};return Ie.set(e,i),i}let Ae=null;const Le=new Map;class ke{constructor(){this._customTimezones=new Map}addTimezones(e){e.forEach((e=>{const{id:t,...i}=e;this._addTimezone(t,i)})),this.updateChartTimezones()}listTimezoneIds(){return[...this._customTimezones.keys()]}listTimezones(){return[...this._customTimezones.entries()].map((([e,t])=>({id:e,...t})))}getTimezoneInfo(e){if(!this.timezoneIsAvailable(e))throw new Error("Provided timezone alias is not within the list of supported timezones.");return(0,n.ensure)(this._customTimezones.get(e))}getAllTimezoneInfo(){return this.listTimezones()}getAliasTimezone(e){return this.getTimezoneInfo(e).alias}timezoneIsAvailable(e){return this._customTimezones.has(e)}updateChartTimezones(){(0,we.updateAvailableTimezones)(this.getAllTimezoneInfo())}getTimezoneData(e){if(Le.has(e))return Le.get(e);let t=null;if(Te(e))t=Me(e);else if(this.timezoneIsAvailable(e)){const i=this.getAliasTimezone(e);Ce.tzData[i]&&(t=Ce.tzData[i]),!t&&Te(i)&&(t=Me(i))}return t&&Le.set(e,t),t}static instance(){return null===Ae&&(Ae=new ke),Ae}_addTimezone(e,t){try{if((0,n.ensure)(e,"Custom timezone ID"),(0,n.ensure)(t.alias,"Custom timezone alias"),(0,n.ensure)(t.title,"Custom timezone title"),(0, we.timezoneIsAvailable)(e)&&!this.timezoneIsAvailable(e))throw new Error("Custom timezone id already exists.");if(!(0,we.timezoneIsSupported)(t.alias)&&!Te(t.alias))throw new Error("Custom timezone alias is not a supported timezone.");if(e.length<1)throw new Error("Custom timezone id is empty");if(t.title.length<1)throw new Error("Custom timezone title is empty");this._customTimezones.set(e,t)}catch(e){console.warn(`Unable to add custom timezone. ${e}`)}}}(0,be.setCustomTimezones)(ke);var De=i(50788);let Ee=null;var Ve=i(85049),Be=i(31940);class Re{constructor(e){this._document=e,this.isFullscreen=new O.WatchedValue;const t=()=>{const e=["fullscreenElement","webkitFullscreenElement","mozFullscreenElement","mozFullScreenElement","msFullscreenElement"];for(let t=0;t{this.isVisible.setValue(!e[r])},i(),e.addEventListener(t,i,!1);break}}this.destroy=()=>{i&&(e.removeEventListener(t,i,!1),i=null)}}}var Oe,Fe=i(84015),We=i(49483);!function(e){e.Quirks="quirks",e.Visual="visual"}(Oe||(Oe={}));function He(e,t){let i=0;for(const{min:s,max:r}of t){if(e0&&t.push({min:e,max:s})}return t.sort(((e,t)=>e.min-t.min||e.max-t.max)),t}function Ue(e,t){if(e.length!==t.length)return!1;for(let i=e.length;i--;){if(e[i].min!==t[i].min)return!1;if(e[i].max!==t[i].max)return!1}return!0}const je=l.enabled("no_min_chart_width");var Ge;!function(e){e[e.MinChartHeight=300]="MinChartHeight",e[e.MinChartWidth=300]="MinChartWidth",e[e.DefaultOffset=4]="DefaultOffset",e[e.ThinOffset=1]="ThinOffset",e[e.TopToolbarMargin=0]="TopToolbarMargin"}(Ge||(Ge={}));const qe=l.enabled("bypass_chart_height_check");function $e(e){const t=l.enabled("side_toolbar_in_fullscreen_mode"),i=l.enabled("header_in_fullscreen_mode");return"center"===e||"left"===e&&t||"top"===e&&i}var Ke=i(90277),Ye=i(77788),Ze=i(16216),Xe=(i(9001),i(68122)),Je=i.n(Xe),Qe=i(9726),et=i(928),tt=i(15764),it=i(68335) ;const st=["LineToolTrendLine","LineToolRay","LineToolInfoLine","LineToolExtended","LineToolRegressionTrend","LineToolRotatedRectangle","LineToolParallelChannel","LineToolFlatBottom","LineToolDisjointAngle","LineToolPitchfork","LineToolSchiffPitchfork","LineToolSchiffPitchfork2","LineToolInsidePitchfork","LineToolVertLine","LineToolCrossLine","LineToolHorzLine","LineToolHorzRay","LineToolTrendAngle"];function rt(e,t=!1,s=!1){if(!l.enabled("popup_hints"))return;const r=e.getContainer();let o=null,c=null;function h(e,t){if(o)o.show(e,p.bind(null,t));else{const s=et.tool.value();Promise.all([i.e(7727),i.e(2227),i.e(6166)]).then(i.bind(i,5015)).then((i=>{o=new i.ChartEventHintRenderer(r),s===et.tool.value()&&o.show(e,p.bind(null,t))}))}}function u(e){return!Boolean(d.getBool(e))}function p(e){d.setValue(e,!0,{forceFlush:!0}),(0,n.ensureNotNull)(o).destroy(),null!==c&&c(),o=null}et.tool.subscribe((function(){const e=et.tool.value(),t=We.CheckMobile.any();if(s&&t&&function(e){return st.includes(e)}(e))return void async function(e){0}();if(!u("hint.touchPainting"))return;const r=(0,tt.isLineToolDrawWithoutPoints)(e);!(0,tt.isStudyLineToolName)(e)||"LineToolRegressionTrend"===e||r||t?(0,tt.isLineToolName)(e)&&!(0,tt.isLineDrawnWithPressedButton)(e)&&!r&&t?h(a.t(null,void 0,i(60663)),"hint.touchPainting"):o&&o.hide():h(a.t(null,void 0,i(14985)),"hint.touchPainting")})),et.createdLineTool.subscribe(null,(function(){const e=et.tool.value();"LineToolPath"===e&&u("hint.finishBuildPathByDblClick")?h(a.t(null,void 0,i(75296)),"hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&u("hint.finishBuildPolylineByDblClick")&&h(a.t(null,void 0,i(17409)),"hint.finishBuildPolylineByDblClick")})),et.finishedLineTool.subscribe(null,(function(){if(o){const e=et.tool.value();"LineToolPath"===e?p("hint.finishBuildPathByDblClick"):"LineToolPolyline"===e&&p("hint.finishBuildPolylineByDblClick")}})),e.layoutSizesChanged().subscribe((function(){if(!u("hint.startResizingChartInLayout"))return;h(a.t(null,void 0,i(9430)),"hint.startResizingChartInLayout")})),t||We.CheckMobile.any()||!u("hint.startFocusedZoom")||(c=function(e,t){let i=!1;const s=r=>{r?(i&&t(r),e.onZoom().unsubscribe(null,s)):i||(t(r),i=!0)};return e.onZoom().subscribe(null,s),()=>e.onZoom().unsubscribe(null,s)}(e,(function(e){if(!u("hint.startFocusedZoom"))return;if(e)o&&(c=null,p("hint.startFocusedZoom"));else{const e=it.isMacKeyboard?"⌘":"Ctrl";h(a.t(null,void 0,i(81712)).format({key:e}),"hint.startFocusedZoom")}})))}var nt=i(51243),ot=i.n(nt),at=i(68159),lt=i(25605),ct=i.n(lt),ht=(i(42924),i(23863),i(78136)),dt=i(5171),ut=i(73772),pt=i(88960),_t=i(91140),mt=i(27714),gt=i(12481),ft=i(86441),vt=i(34026),yt=i(19625),St=i(28120),bt=i(56468),wt=i(78871),Ct=i(19063),Pt=i(61119),xt=i(7114),Tt=i(12027);var It=i(37743),Mt=i(2844),At=i(64034),Lt=i(72791),kt=i(70893),Dt=i(50946);i(32160);const Et={customBrandingTradingViewText:yt.colorsPalette["color-brand"],customBrandingText:yt.colorsPalette["color-cold-gray-850"],background:yt.colorsPalette["color-cold-gray-900"], -shadow:yt.colorsPalette["color-cold-gray-700"],text:yt.colorsPalette["color-white"],staticTextBackground:(0,Ct.generateColor)(yt.colorsPalette["color-cold-gray-800"],20),logo:yt.colorsPalette["color-white"],platformBgColor:yt.colorsPalette["color-cold-gray-900"],platformFgColor:yt.colorsPalette["color-cold-gray-200"]},Vt={customBrandingTradingViewText:yt.colorsPalette["color-brand"],customBrandingText:yt.colorsPalette["color-cold-gray-850"],background:yt.colorsPalette["color-white"],shadow:yt.colorsPalette["color-cold-gray-150"],text:yt.colorsPalette["color-cold-gray-900"],staticTextBackground:(0,Ct.generateColor)(yt.colorsPalette["color-white"],20),logo:yt.colorsPalette["color-cold-gray-900"],platformBgColor:yt.colorsPalette["color-white"],platformFgColor:yt.colorsPalette["color-cold-gray-900"]};const Bt=new Map([["logo-old-style",Dt],["tradingview-old-style",kt]]),Rt=l.enabled("adaptive_logo"),Nt=l.enabled("small_no_display"),Ot=l.enabled("38914"),Ft="site_branding",Wt="widget_branding",Ht="widget_referral_branding",zt="widget_custom_branding",Ut="widget_custom_no_powered_branding",jt="fundamental_branding",Gt="fundamental_custom_branding",qt="fundamental_custom_no_powered_branding",$t="library_branding",Kt="library_custom_branding",Yt="library_custom_no_powered_branding",Zt=navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("edge"),Xt=window.urlParams||{},Jt=window.initData||{};Xt.no_referral_id&&enable(Xt.referral_id||"","aggressive");const Qt=a.t(null,void 0,i(98856)),ei=Ot?a.t(null,void 0,i(44676)):a.t(null,void 0,i(92800));a.t(null,void 0,i(46768)),a.t(null,void 0,i(83470)),a.t(null,void 0,i(3140));var ti;!function(e){e[e.OldFontAdditionalVerticalOffset=0]="OldFontAdditionalVerticalOffset",e[e.NewFontAdditionalVerticalOffset=.1]="NewFontAdditionalVerticalOffset",e[e.StrokeWidth=4]="StrokeWidth",e[e.StaticLogoHorizontalTextOffset=5]="StaticLogoHorizontalTextOffset",e[e.TextWidthCompensation=2]="TextWidthCompensation",e[e.AdaptiveWidthToHideText=500]="AdaptiveWidthToHideText",e[e.WidthToHideLogoIfSmallNoDisplayEnabled=480]="WidthToHideLogoIfSmallNoDisplayEnabled",e[e.TextAdditionalCropWidth=11]="TextAdditionalCropWidth",e[e.BadgeLogoMargin=-11]="BadgeLogoMargin",e[e.BadgeTextMargin=-8]="BadgeTextMargin",e[e.TextAnimatedAlphaStart=.3]="TextAnimatedAlphaStart",e[e.TextAnimatedAlphaEnd=1]="TextAnimatedAlphaEnd",e[e.AnimationDuration=200]="AnimationDuration"}(ti||(ti={}));(0,We.onWidget)();class ii extends St.CustomSourceBase{constructor(e,t,i){super(e,t),this._canvasWidth=0,this._paneHeight=0,this._left=13,this._bottom=36,this._layout=Ft,this._needToShow=!0,this._showBranding=!1,this._customLogoSrc="",this._customLogoLink="",this._cubicBezier=new wt.CubicBezier(.4,.01,.22,1),this._openAnimation=null,this._closeAnimation=null,this._powBy=null,this._custom=null,this._destroyed=!1,this._mainSeries=this._model.mainSeries(),this._visible=i,this._showForPro=!t.onWidget();const s=()=>this._model.updateSource(this);this._visible.subscribe(s),this._dark=t.dark().spawn(), -this._dark.subscribe(s),this._checkLayout(),this._layout!==zt&&this._layout!==Gt||(this._left=8,this._bottom=5);const r=()=>{this._needToShow?this._showBranding=!0:this._showBranding=!1};this._resizeHandlerDelayed=(0,gt.default)(r,200),r(),window.addEventListener("resize",this._resizeHandlerDelayed),this._model.isSnapshot()?this._init():(this._mainSeries.dataEvents().symbolResolved().subscribe(this,this._init),null!==this._mainSeries.symbolInfo()&&this._init()),this._renderer={draw:this.draw.bind(this),hitTest:this.hitTest.bind(this)},t.onWidget()||window.loginStateChange.subscribe(this,this._init)}destroy(){window.removeEventListener("resize",this._resizeHandlerDelayed),this._mainSeries.dataEvents().symbolResolved().unsubscribeAll(this),this._powBy&&this._powBy.destroy(),this._model.onWidget()||window.loginStateChange.unsubscribeAll(this),this._visible.release(),this._dark.destroy(),this._destroyed=!0}paneViews(e){if(window.TradingView.printing&&this._layout!==Ut&&this._layout!==qt)return[];if(!this._visible.value())return[];if(this._layout===Ft&&!this._showForPro&&window.user&&window.user.is_pro)return[];const t=this._model.mainPane();if(!t)return[];const i=l.enabled("move_logo_to_main_pane");let s=!1;if(e.maximized().value())s=!0;else if(i)s=t.collapsed().value()?e===this._model.panes().find((e=>!e.collapsed().value())):e.isMainPane();else if(this._model.lastPane().collapsed().value()){const t=this._model.panes();for(let i=t.length-1;i>=0;--i){const r=t[i];if(!r.collapsed().value()){s=r===e;break}}}else s=e.isLast();return s?[{renderer:this.renderer.bind(this)}]:[]}labelPaneViews(e){return[]}priceAxisViews(e,t){return[]}updateAllViews(){}updateViewsForPane(e){}priceScale(){return null}renderer(e){return this._paneHeight=e.mediaSize.height,this._canvasWidth=e.mediaSize.width,this._renderer}hasContextMenu(){return!1}onClickOutside(){this._hasAnimation()&&this._startCloseAnimation()}hitTest(e){if(!this._showBranding||l.enabled("logo_without_link"))return null;if(this._powBy&&this._layout!==Ut&&this._layout!==qt&&(this._powBy.hitTest(e)||this._custom&&this._custom.hitTest(e))){const e=!0;return new bt.HitTestResult(bt.HitTarget.Custom,{hideCrosshairLinesOnHover:!0,cursorType:e?Lt.PaneCursorType.Pointer:Lt.PaneCursorType.Default,clickHandler:()=>{this._openLink()},tapHandler:()=>{this._hasAnimation()?this._toggleOpenAnimatedOrOpenLink():this._openLink()},mouseEnterHandler:()=>{this._hasAnimation()&&this._startOpenAnimation()},mouseLeaveHandler:()=>{this._hasAnimation()&&this._startCloseAnimation()},mouseDownHandler:()=>{0},mouseUpHandler:()=>{0}})}return null}tvUrl(){var e,t,i;const s="https://"+function(e){return({ar_AE:"ar",de_DE:"de",en:"www",es:"es",ca_ES:"es",fa_IR:"www",fr:"fr",he_IL:"il",id:"id",in:"in",it:"it",ja:"jp",kr:"kr",ms_MY:"my",pl:"pl",br:"br",ru:"ru",sv_SE:"se",th_TH:"th",tr:"tr",uk:"uk",vi_VN:"vn",zh_CN:"cn",zh_TW:"tw"}[e]||"www")+".tradingview.com"}((null!==(t=null===(e=Jt.querySettings)||void 0===e?void 0:e.locale)&&void 0!==t?t:null===(i=Jt.currentLocaleInfo)||void 0===i?void 0:i.language)||"en") -;let r=new URL(s);if(this._customLogoLink)return this._customLogoLink;if(this._layout===$t||this._layout===Kt){let e;switch(!0){case l.enabled("charting_library"):e="library";break;case l.enabled("trading_terminal"):e="trading-terminal"}r.searchParams.append("utm_source",window.location.origin),r.searchParams.append("utm_medium","library"),e&&r.searchParams.append("utm_campaign",e)}return r.toString()}draw(e,t){if(!this._showBranding)return;let i=0;Xt.utm=!0,(0,xt.drawScaled)(e,t.horizontalPixelRatio,t.verticalPixelRatio,(()=>{if(this._powBy&&this._powBy.show){i=this._powBy.height,e.save();const s=new ft.Point(this._left,this._paneHeight-this._bottom-i);this._powBy.draw(s,e,t,this._canvasWidth),e.restore()}if(this._custom&&this._custom.show){e.save();const s=new ft.Point(this._left,this._paneHeight-this._bottom-i-this._custom.height);this._custom.draw(s,e,t),e.restore()}}))}_init(){this._checkLayout();const e=this._mainSeries.symbolInfo();this._powBy&&this._powBy.destroy(),this._powBy=new li(this._layout,(null==e?void 0:e.name)||"",this._model,(()=>this._model.fullUpdate())),this._custom=new ci(this._layout,this._customLogoSrc,(()=>this._model.fullUpdate())),this._openAnimation=null,this._closeAnimation=null,this._model.lightUpdate()}_checkLayout(){if(l.enabled("widget"))0;else{{const e=JSON.parse(Xt.logo)||{};e.image?(this._customLogoSrc=e.image,this._customLogoLink=e.link,this._needToShow=l.enabled("widget_logo"),l.enabled("link_to_tradingview")?this._layout=Kt:this._layout=Yt):(this._layout=$t,this._needToShow=l.enabled("widget_logo"))}}}_startOpenAnimation(){if(null!==this._openAnimation)return;null!==this._closeAnimation&&(this._closeAnimation.stop(),this._closeAnimation=null);const e=(0,n.ensureNotNull)(this._powBy).animationStep();this._openAnimation=(0,Pt.doAnimate)({from:e,to:1,duration:200*(1-e),easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)})}_startCloseAnimation(){if(null!==this._closeAnimation)return;null!==this._openAnimation&&(this._openAnimation.stop(),this._openAnimation=null);const e=(0,n.ensureNotNull)(this._powBy).animationStep();this._closeAnimation=(0,Pt.doAnimate)({from:e,to:0,duration:200*e,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)})}_animatedDrawStep(e,t){(0,n.ensureNotNull)(this._powBy).animatedDrawStep(t),this._model.lightUpdate()}_hasAnimation(){return null!==this._powBy&&this._powBy.hasAnimation()}_openGoPro(){0}_openLink(){if(this._layout===Ft)return this._model.isSnapshot()||this._openGoPro(),!1;l.enabled("widget");return(0,n.ensureNotNull)(window.open(this.tvUrl(),"_blank")).opener=null,!0}_toggleOpenAnimatedOrOpenLink(){null!==this._openAnimation&&this._openAnimation.completed()?this._openLink()||this._startCloseAnimation():this._startOpenAnimation()}}function si(e){return!Nt||e>480}function ri(e){return!Rt||e>500}let ni={},oi={};class ai{constructor(){this._topLeftPoint=null,this._hitTestHeight=null}hitTest(e){const t=this._getHitTestBox();if(t)return(0,vt.pointInBox)(e,t)}_getHitTestBox(){var e -;const t=this._topLeftPoint;if(t){const{x:i,y:s}=t;return(0,ft.box)(t,new ft.Point(i+this.width,s+(null!==(e=this._hitTestHeight)&&void 0!==e?e:this.height)))}}}class li extends ai{constructor(e,t,i,s){super(),this.show=!0,this.hovered=!1,this.active=!1,this._needDisplayImage=!1,this._textAnimatedAlpha=1,this._textAnimatedAlphaStart=1,this._textAdditionalCropWidth=0,this._textAnimatedAlphaEnd=1,this._badgeData={logoMargin:0,textMargin:0,width:0},this._invertTextCropDirection=!1,this._font=`px ${m.CHART_FONT_FAMILY}`,this._txt="TradingView",this._maximizedAnimationTextWidth=0,this._logoWidth=0,this._textWidthCache=new Mt.TextWidthCache,this._pixelRatio={horizontalPixelRatio:NaN,verticalPixelRatio:NaN},this._model=i,this._layout=e,this._symbol=t,this._showTradeWithLogo=!1,this._showAnimatedBranding=l.enabled("show_animated_logo")||e===Wt,this._alwaysMaximized=l.enabled("logo_always_maximized")||this._model.isSnapshot()&&!We.CheckMobile.any()||!1,this._fontSize=this._showAnimatedBranding||this._layout===Ht?11:14,this._showAnimatedBranding||this._layout!==zt&&this._layout!==Gt||(this._fontSize=12),this._sizeConstants=(this._model.isSnapshot(),{brandCircleSize:32,textAsImageWidthCompensation:0,leftOffset:0,bottomOffset:-23,logoLeftOffset:1,logoTextOffset:6}),this.width=this._minimizedAnimationWidth(),this._animatedWidth=this.width,this.height=this._fontSize+2,this._requestRepaint=s,this._init(),this._checkFontLoaded(),this._recalculateMetrics()}destroy(){this._model.properties().childs().paneProperties.childs().background.unsubscribeAll(this),this._model.onChartThemeLoaded().unsubscribeAll(this)}hasAnimation(){return this._showAnimatedBranding&&!this._alwaysMaximized}animationStep(){const e=this._minimizedAnimationWidth(),t=this._maximizedAnimationWidth();return(this._animatedWidth-e)/(t-e)}animatedDrawStep(e){const t=this._minimizedAnimationWidth(),i=this._maximizedAnimationWidth();this._animatedWidth=t+e*(i-t),this._textAnimatedAlpha=this._textAnimatedAlphaStart+e*(this._textAnimatedAlphaEnd-this._textAnimatedAlphaStart)}draw(e,t,i,s){const{brandCircleSize:r,logoLeftOffset:n,leftOffset:o,bottomOffset:a}=this._sizeConstants;this._needDisplayImage&&si(s)&&(e=new ft.Point(e.x+o,e.y-a)),this._topLeftPoint=e,t.translate(e.x,e.y);const{horizontalPixelRatio:l,verticalPixelRatio:c}=i;(0,At.equalPixelRatios)(i,this._pixelRatio)||(this._textWidthCache.reset(),this._pixelRatio={horizontalPixelRatio:l,verticalPixelRatio:c});const h=this._colors;if(this._showAnimatedBranding){if(this._needDisplayImage){const e=this._getLogoImage(h.logo);this.width=this._animatedWidth,this._drawLogo(t,e,this._animatedWidth,this._animatedWidth,this._animatedWidth>this._sizeConstants.brandCircleSize)}}else if(this._layout===zt||this._layout===Gt){t.font=this._fontSize+this._font;const e=t.measureText(this._txt).width+2;this.width=e+t.measureText("TradingView").width+2,t.save(),t.globalAlpha=.7,t.fillStyle=this._colors.customBrandingText,t.fillText(this._txt,0,12),t.fillStyle=this._colors.customBrandingTradingViewText,t.fillText("TradingView",e,12), -t.restore()}else if(si(s))if(this._needDisplayImage){const e=this._getLogoImage(h.logo);t.save(),this._drawBgCircle(t,r/2);const{width:i,height:o}=e.logoImage.viewBox(),a=new ft.Point(Math.round((r-i)/2)-1+n,Math.floor((r-o)/2)+1);this._drawLogoImage(t,a,e.logoImage);const l=ri(s);l&&(t.translate(r+5,Math.round(this._fontSize*("px EuclidCircular"===this._font?.1:0))),this._drawTextStroke(t),this._drawTextFill(t)),t.restore(),this.width=r,l&&(this.width+=this._maximizedAnimationTextWidth)}else{const e=ri(s);e&&(t.save(),t.translate(Zt?-.5:0,-.5),this._drawTextStroke(t),this._drawTextFill(t),t.restore()),e&&(this.width=this._maximizedAnimationTextWidth)}else this.width=0}showTradeWithLogo(e){this._showTradeWithLogo=e}_minimizedAnimationWidth(){return this._sizeConstants.brandCircleSize+this._badgeData.logoMargin+this._badgeData.width}_maximizedAnimationWidth(){return this._sizeConstants.brandCircleSize+this._sizeConstants.logoTextOffset+this._maximizedAnimationTextWidth+this._badgeData.width+this._badgeData.textMargin}_drawTradeWithLogo(e,t,i){0}_drawLogo(e,t,i,s,r){const{brandCircleSize:n,logoLeftOffset:o,logoTextOffset:a}=this._sizeConstants;e.save(),this._drawFillRectWithRoundedCorner(e,-.5,0,i,n,n/2);const{logoImage:l,textImage:c,proBadgeImage:h}=t,{width:d,height:u}=l.viewBox(),p=new ft.Point(Math.round((n-d)/2)-1+o,Math.floor((n-u)/2)+1);if(r){const t=new ft.Point(p.x+d+a,p.y),i=e.globalAlpha;e.globalAlpha*=this._textAnimatedAlpha;const r=s-this._sizeConstants.brandCircleSize-a-this._badgeData.logoMargin-this._badgeData.width;this._drawImageCropWidth(e,t,c,r),e.globalAlpha=i}if(h){const{width:t,height:i}=h.viewBox();h.render(e,{targetViewBox:{x:p.x+this.width-t,y:Math.floor((n-i)/2)+1,width:t,height:i}})}this._drawLogoImage(e,p,l),e.restore()}_init(){oi={},ni={},this._checkLayout(),this.show&&(this._updateColors(),this._updateHeight(),this._model.properties().childs().paneProperties.childs().background.subscribe(this,this._updateColors),this._model.onChartThemeLoaded().subscribe(this,this._updateColors))}_updateHeight(){this._needDisplayImage?this.height=this._sizeConstants.brandCircleSize:this.height=this._fontSize+2}_checkFontLoaded(){if(!this._showAnimatedBranding&&document.fonts&&document.fonts.check&&document.fonts.load){document.fonts.check(`${this._fontSize}px EuclidCircular`)?this._font="px EuclidCircular":document.fonts.load(`${this._fontSize}px EuclidCircular`,this._txt).then((()=>{this._font="px EuclidCircular",this._recalculateMetrics(),this._requestRepaint()}))}}_recalculateMetrics(){var e;const t=(0,xt.createDisconnectedCanvas)(document,(0,mt.size)({width:0,height:0})),i=(0,xt.getPrescaledContext2D)(t);i.font=this._fontSize+this._font;const s=this._needDisplayImage?this._getLogoImage(this._colors.logo):null;let r=s?s.textImage.viewBox().width+this._sizeConstants.textAsImageWidthCompensation:Math.ceil(i.measureText(this._txt).width)+2+8;r%2==0&&(r+=1),this._maximizedAnimationTextWidth=r,this._textWidthCache.reset(),this._logoWidth=null!==(e=null==s?void 0:s.logoImage.viewBox().width)&&void 0!==e?e:0, -this._animatedWidth=this._alwaysMaximized?this._maximizedAnimationWidth():this._minimizedAnimationWidth()}_updateColors(){this._colors=this._model.dark().value()?Et:Vt}_getLogoImage(e){return function(e,t,i,s,r){const o=oi,a=[t,i,r&&"tradeWith"].filter(Boolean).join("-"),l=o[a];if(void 0!==l)return l;const[c,h,d]=function(e,t,i){return i?["logo-trade-with","tradingview-trade-with"]:["logo-old-style","tradingview-old-style",void 0]}(0,0,r),u=e=>e.replace(/fill="#[\da-f]{6}"/gi,`fill="${i}"`),p={logoImage:e(u((0,n.ensureDefined)(Bt.get(c)))),textImage:e(u((0,n.ensureDefined)(Bt.get(h)))),proBadgeImage:d?e(u((0,n.ensureDefined)(Bt.get(d)))):void 0};return o[a]=p,p}(Tt.svgRenderer,this._model.dark().value()?"dark":"light",e,0,this._showTradeWithLogo)}_checkLayout(){switch(this._layout){case Wt:case Ht:case zt:case jt:case Gt:case Kt:case $t:case Ft:this.show=!0;break;case Ut:case qt:case Yt:this.show=!1}switch(this._layout){case $t:this._needDisplayImage=!0,this._txt=Qt;break;case Kt:this._txt=ei}}_drawTextStroke(e){e.save(),e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.strokeStyle=this._colors.staticTextBackground,e.lineWidth=4,e.lineJoin="round",e.strokeText(this._txt,0,this._sizeConstants.brandCircleSize/2+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawTextFill(e){e.save(),e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.fillStyle=this._colors.text,e.fillText(this._txt,0,this._sizeConstants.brandCircleSize/2+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawImageCropWidth(e,t,i,s){e.save();const{logoMargin:r,textMargin:n}=this._badgeData;e.beginPath();const{width:o,height:a}=i.viewBox();e.rect(t.x-this._textAdditionalCropWidth,t.y,s+this._textAdditionalCropWidth,a),e.clip(),i.render(e,{targetViewBox:{x:t.x-(this._invertTextCropDirection?o-s-r+n:0),y:t.y,width:o,height:a}}),e.restore()}_drawBgCircle(e,t){const i=2*Math.PI;e.save(),e.beginPath(),e.fillStyle=this._colors.shadow,e.arc(t,t,t+1,0,i),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.fillStyle=this._colors.background,e.arc(t,t,t,0,i,!1),e.fill(),e.closePath(),e.restore()}_drawFillRectWithRoundedCorner(e,t,i,s,r,n,o){e.save(),(0,It.drawRoundRect)(e,t-1,i-1,s+2,r+2,n),e.fillStyle=this._backgroundShadowFillStyle(),e.fill(),e.closePath(),e.restore(),e.save(),(0,It.drawRoundRect)(e,t,i,s,r,null!=o?o:n),e.fillStyle=this._backgroundFillStyle(),e.fill(),e.closePath(),e.restore()}_tradeWithLogoBackgroundColor(){return""}_backgroundShadowFillStyle(){return this._colors.shadow}_backgroundFillStyle(){return this._colors.background}_drawLogoImage(e,t,i){const{width:s,height:r}=i.viewBox();i.render(e,{targetViewBox:{x:t.x,y:t.y,width:s,height:r}})}}class ci extends ai{constructor(e,t,i){super(),this.show=!1,this.width=0,this.height=0,this._ready=!1,this._layout=e,this._src=t,this._onReadyCallback=i,this._checkLayout();const s=new Image;this._img=s,this.show&&(s.addEventListener("load",(()=>{this.width=Math.round(s.width),this.height=Math.round(s.height), -this._ready=!0,this._onReadyCallback&&this._onReadyCallback()})),s.crossOrigin="anonymous",s.src=this._src)}draw(e,t,i){this._topLeftPoint=e,this._ready&&(t.translate(e.x,e.y),t.drawImage(this._img,-.5,-.5,this.width,this.height))}_checkLayout(){switch(this._layout){case zt:case Ut:case Gt:case qt:case Kt:case Yt:this.show=!0;break;case Ft:case Wt:case Ht:case jt:case $t:this.show=!1}}}var hi=i(4454),di=i(94664);class ui{constructor(e,t){this._headerToolbar=e,this._dropdownId=t}applyOptions(e){this._headerToolbar.updateDropdown(this._dropdownId,e)}remove(){this._headerToolbar.removeDropdown(this._dropdownId)}}var pi=i(26843),_i=i(74047),mi=i(38119);class gi{constructor(e){this._symbolModel=e}getVisible(){return this._symbolModel.visible().value()}setVisible(e){return this._symbolModel.visible().setValue(e),this}getIcon(){return this._symbolModel.icon().value()}setIcon(e){return this._symbolModel.icon().setValue(e),this}getColor(){return this._symbolModel.color().value()}setColor(e){return this._symbolModel.color().setValue(e),this}getTooltip(){return this._symbolModel.tooltip().value()}setTooltip(e){return this._symbolModel.tooltip().setValue(e),this}getDropDownContent(){return this._symbolModel.tooltipContent().value()}setDropDownContent(e){return this._symbolModel.tooltipContent().setValue(e),this}}class fi{symbol(e){return new gi(this._model().getSymbolCustomStatus(e))}hideAll(){this._model().hideAll()}static getInstance(){return null===this._instance&&(this._instance=new fi),this._instance}_model(){return mi.CustomStatusModel.getInstance()}}fi._instance=null;var vi=i(97702),yi=i(19291);var Si,bi,wi,Ci=i(27514),Pi=i(35474),xi=i(79612),Ti=i(7507);(0,A.setClasses)();const Ii=(0,o.getChartingLibraryGlobalContext)(),Mi=(0,o.getChartingLibraryOwner)(),Ai=new class{constructor(e,t){this._updateDocumentHeight=e=>{"visual"===this._viewportType&&this._window.document.documentElement.style.setProperty("height",`${e}px`,"important")},this._window=e,this._fullscreenApi=new Re(e.document),this._viewportType=We.CheckMobile.iOS()&&!(0,Fe.isOnMobileAppPage)("any")&&this._window.visualViewport?"visual":"quirks","visual"===this._viewportType?this._viewport=(0,n.ensure)(this._window.visualViewport):this._viewport=this._window;const i=this._layoutSizeSensor=this._window.document.createElement("div");i.id="layout-size-sensor",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.right="0",i.style.bottom="0",i.style.pointerEvents="none",i.style.visibility="hidden",this._initFullscreen()}allocate(){this.free();const e=this._window.document,t=e.createElement("div");t.classList.add("js-rootresizer__contents"),t.style.position="relative",t.style.width="100%",t.style.height="100%",e.body.insertAdjacentElement("afterbegin",t),e.body.insertAdjacentElement("afterbegin",this._layoutSizeSensor),this._visibilityApi=new Ne(this._window.document);const i={alive:new O.WatchedValue(!0),fullscreenable:new O.WatchedValue(!0),container:new O.WatchedValue(t),width:new O.WatchedValue,height:new O.WatchedValue,availWidth:new O.WatchedValue, -availHeight:new O.WatchedValue,visible:this._visibilityApi.isVisible,fullscreen:this._fullscreenApi.isFullscreen,remove:()=>{i.alive.setValue(!1)},attach:()=>{i.alive.setValue(!1),this._window.close()},requestFullscreen:()=>{this._requestFullscreen()},exitFullscreen:()=>{this._exitFullscreen()}};return i.alive.subscribe((e=>{e||i!==this._area||this.free()})),this._area=i,this._resizeHandler=()=>{const e=this._width(i)||800,t=this._height(i)||600;i.availHeight.setValue(t),i.availWidth.setValue(e),i.height.setValue(t),i.width.setValue(e)},this._area.height.subscribe(this._updateDocumentHeight,{callWithLast:!0}),this._resizeHandler(),this._viewport.addEventListener("resize",this._resizeHandler),new Be.ResizerDetacherState(i).bridge()}free(){if(this._resizeHandler&&(this._viewport.removeEventListener("resize",this._resizeHandler),this._resizeHandler=void 0),this._visibilityApi&&(this._visibilityApi.destroy(),this._visibilityApi=void 0),this._area){const e=this._area;this._area=void 0,e.height.unsubscribe(this._updateDocumentHeight),e.alive.setValue(!1);const t=e.container.value(),i=null==t?void 0:t.parentElement;i&&(i.removeChild(t),i.removeChild(this._layoutSizeSensor))}}_height(e){if("visual"===this._viewportType)return this._layoutSizeSensor.clientHeight;return e.container.value().clientHeight}_width(e){return e.container.value().clientWidth}_requestFullscreen(){this._fullscreenApi.enter()}_exitFullscreen(){this._fullscreenApi.exit()}_initFullscreen(){this._fullscreenApi.isFullscreen.subscribe((e=>{this._resizeHandler&&this._resizeHandler()}))}}(window),Li=new class{constructor(e){this._processVisibility=e=>{const t=e.container.value();return this.affectsLayout(e.name)?(t&&t.classList.toggle("js-hidden",!1),!0):(t&&t.classList.toggle("js-hidden",!0),!1)},this._setWidth=(e,t,i)=>{let s=i;this._fullscreenArea!==e.name&&(e.availWidth.setValue(i),e.canNegotiate.width&&(s=He(i,e.negotiations.width))),t||(s=0);const r=e.container.value();return r&&t&&(r.style.width=s+"px"),e.width.setValue(s),s},this._setHeight=(e,t,i)=>{let s=i;this._fullscreenArea!==e.name&&(e.availHeight.setValue(i),e.canNegotiate.height&&(s=He(i,e.negotiations.height))),t||(s=0);const r=e.container.value();return r&&t&&(r.style.height=s+"px"),e.height.setValue(s),s};const t=e.container.value();if(!t)throw new Error("bridge.container.value() must be an element");this._container=t,this._availableAreas=["left","tradingpanel","right","top","bottom","center","topleft","extratop"],this._areas={},this._bridge=e,this._width=e.width,this._height=e.height,this._width.subscribe((()=>this.recalculate())),this._height.subscribe((()=>this.recalculate())),this._bridge.visible.subscribe((()=>this._updateVisibility())),this._bridge.fullscreen.subscribe((()=>this._onParentFullscreenChange())),this.recalculate()}allocate(e){const t=e&&e.areaName;if(-1===this._availableAreas.indexOf(t))throw new Error("unknown options.areaName");this.free(t);const i=this._createDOM(t),s={name:t,canNegotiate:{width:"left"===t||"right"===t||"tradingpanel"===t||"topleft"===t, -height:"top"===t||"bottom"===t||"topleft"===t||"extratop"===t},negotiations:{width:[],height:[]},remove:()=>{for(const e in this._areas)this._areas[e]===s&&this.free(e)},negotiateWidth:e=>{if(!s.canNegotiate.width)return;const t=ze(e);Ue(s.negotiations.width,t)||(s.negotiations.width=t,this.recalculate())},negotiateHeight:e=>{if(!s.canNegotiate.height)return;const t=ze(e);Ue(s.negotiations.height,t)||(s.negotiations.height=t,this.recalculate())},requestFullscreen:()=>{this._fullscreenArea||("right"!==t&&"center"!==t||(this._fullscreenArea=t),"center"===t&&this._bridge.requestFullscreen(),this._updateFullscreen())},exitFullscreen:()=>{t===this._fullscreenArea&&(this._fullscreenArea=void 0,"center"===t&&this._bridge.exitFullscreen(),this._updateFullscreen())},width:new O.WatchedValue,height:new O.WatchedValue,availWidth:new O.WatchedValue,availHeight:new O.WatchedValue,alive:new O.WatchedValue(!0),container:new O.WatchedValue(i),visible:new O.WatchedValue(!0),fullscreen:new O.WatchedValue(!1),fullscreenable:new O.WatchedValue("right"===t||"center"===t),rdState:new Be.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[t]=s,s.rdState.owner.subscribe((e=>{const i=s.container.value();if(e!==s)i&&(i.innerHTML="",i.parentElement&&i.parentElement.removeChild(i));else{let e=null;for(let i=this._availableAreas.indexOf(t);i--;){const t=this._availableAreas[i];if(this.affectsLayout(t)){e=this._areas[t].container.value();break}}i&&(e&&i.parentElement?i.insertAdjacentElement("afterend",e):this._container.appendChild(i))}this.recalculate()}),{callWithLast:!0}),s.rdState.bridge()}free(e){const t=this._areas[e];if(!t)return;this._areas[e]=void 0;const i=t.container.value();i&&i.parentElement&&i.parentElement.removeChild(i),t.alive.setValue(!1)}recalculate(){const e={};this._recalcSingleRunToken=e;const t=this._areas.topleft,i=this._areas.left,s=this._areas.tradingpanel,r=this._areas.right,n=this._areas.top,o=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),h=this._height.value();let d=0,u=0,p=0,_=0,m=0,g=0,f=0,v=0;if(e===this._recalcSingleRunToken&&l){const e=this._processVisibility(l);v=this._setHeight(l,e,h),this._setWidth(l,e,c)}if(e===this._recalcSingleRunToken&&t){const e=this._processVisibility(t);f=this._setHeight(t,e,h),g=this._setWidth(t,e,c);const i=t.container.value();e&&i&&(i.style.top=v+"px")}let y=0;if(e===this._recalcSingleRunToken&&n){const e=this._processVisibility(n),t=n.container.value();e&&t&&(t.style.left=g+"px",t.style.top=v+"px");const i=c-g;this._setWidth(n,e,i),d=this._setHeight(n,e,h),d&&(y=1)}if(e===this._recalcSingleRunToken&&i){const e=this._processVisibility(i),t=Math.max(f,d);p=this._setWidth(i,e,c),p&&(p+=4),p&&1===y&&(y=4);const s=i.container.value();e&&s&&(s.style.top=t+v+y+"px"),this._setHeight(i,e,h-t-v)}if(e===this._recalcSingleRunToken&&s){const e=this._processVisibility(s);let t=c-p;je||(t-=300),m=this._setWidth(s,e,t),m&&1===y&&(y=4),this._setHeight(s,e,h-v-d-y)}if(e===this._recalcSingleRunToken&&r){const e=this._processVisibility(r);let t=c-p-m -;je||(t-=300),_=this._setWidth(r,e,t),_&&1===y&&(y=4),this._setHeight(r,e,h-v-d-y);const i=r.container.value();e&&i&&(i.style.top=d+v+y+"px")}const S=m+_;let b=0,w=c-p-m-_-(S?4:0);const C=Boolean(m||!S);if(!_&&m&&(w+=4),e===this._recalcSingleRunToken&&o){const e=this._processVisibility(o),t=o.container.value();e&&t&&(t.style.left=p+"px",t.classList.toggle("no-border-top-left-radius",!p),t.classList.toggle("no-border-top-right-radius",C)),this._setWidth(o,e,w);const i=h-v;b=Math.min(300,i-0),u=this._setHeight(o,e,i)+4}const P=Boolean(d&&(p||S));if(this._container.classList.toggle("layout-with-border-radius",P),e===this._recalcSingleRunToken&&a){const e=this._processVisibility(a),t=a.container.value();e&&t&&(t.style.left=p+"px",t.style.top=d+v+y+"px",t.classList.toggle("no-border-bottom-left-radius",!u||!p),t.classList.toggle("no-border-bottom-right-radius",C||!u),t.classList.toggle("no-border-top-left-radius",Boolean(!p&&S)),t.classList.toggle("no-border-top-right-radius",C)),this._setWidth(a,e,w);const i=h-d-u-v-y;this._setHeight(a,e,Math.max(i,b))}if(e===this._recalcSingleRunToken&&s&&this.affectsLayout("tradingpanel")){const e=s.container.value();e&&(e.style.right=m&&_?`${_+4}px`:`${_}px`,e.style.top=v+d+y+"px",e.style.borderTopRightRadius=P&&_?"4px":"0px")}e===this._recalcSingleRunToken&&this._updateVisibility()}affectsLayout(e){const t=this._areas[e];if(!t)return!1;if(t.rdState.owner.value()!==t)return!1;if(this._fullscreenArea&&this._fullscreenArea!==e)return $e(e);if(this._width.value()<=567||this._height.value()<=445&&!qe){if(!["center","top","left","topleft","extratop"].includes(e))return!1}return!0}_updateVisibility(){const e=this._bridge.visible.value();for(let t=0;t{Ii.ChartApiInstance.start()})),"function"==typeof Vi){const e=Vi({Std:ut.Std});e&&e.then?e.then((e=>{if(!Array.isArray(e))return console.warn("custom_indicators_getter should be a function that returns a Promise object which result is an array of custom indicators"),void Bi.resolve();const t=Ii.JSServer;t.studyLibrary.push.apply(t.studyLibrary,e),Bi.resolve(),console.log("{0} custom indicators loaded.".format(e.length))})).catch((e=>{console.warn("Error loading custom indicators "+e),Bi.resolve()})):(console.warn("custom_indicators_getter should be a function that returns a Promise object"),Bi.resolve())}else Bi.resolve();Ii.widgetReady=e=>{F.subscribe("onChartReady",e,null)};const Gi=null!==(wi=null===(bi=Di.theme)||void 0===bi?void 0:bi.toLowerCase())&&void 0!==wi?wi:pi.StdTheme.Light;var qi;function $i(e){Ii.__defaultsOverrides=Ii.__defaultsOverrides||{},(0,_e.deepExtend)(Ii.__defaultsOverrides,e),void 0!==TradingView.defaultProperties&&void 0!==TradingView.defaultProperties.chartproperties&&((0,h.applyDefaultsOverrides)(TradingView.defaultProperties.chartproperties),(0,h.applyDefaultOverridesToLinetools)())}qi=Gi,L.themes[qi]&&(0,k.setTheme)(qi),async function(e){if(!Fi||void 0===e)return;try{const{overrideStandardThemes:t}=await i.e(2413).then(i.bind(i,57626));t(e)}catch(e){console.error("Error applying custom themes",e)}}(Mi.customThemes).then(Ni.resolve).catch(Ni.resolve),Ii.applyStudiesOverrides=e=>{var t,i;e&&(Ii.chartWidgetCollection?null===(i=(t=Ii.chartWidgetCollection).applyStudiesOverrides)||void 0===i||i.call(t,e):at.StudyMetaInfo.mergeDefaultsOverrides(e))},Ii.applyOverrides=e=>{$i(e),Ii.chartWidgetCollection&&Ii.chartWidgetCollection.applyOverrides(e)},Ii.doWhenApiIsReady=e=>{Ii.tradingViewApi?e():Ri.promise.then(e)},Ii.applyTradingCustomization=e=>{for(const t in e.order)TradingView.defaultProperties.linetoolorder[t]=e.order[t];for(const t in e.position)TradingView.defaultProperties.linetoolposition[t]=e.position[t]},Ii.changeTheme=(e,t)=>{const i=L.themes[e.toLowerCase()];return i?Ii.tradingViewApi.themes().setStdTheme(i.name,!0,t&&t.disableUndo):Promise.resolve()},Ii.getTheme=()=>Ii.tradingViewApi.themes().getCurrentThemeName(),Ii.customThemes=async()=>{if(!Fi)return Promise.reject(new Error("The library_custom_color_themes feature must be enabled to use the custom themes API"));return new((await i.e(2413).then(i.bind(i,20688))).CustomThemesApi)},Ii.is_authenticated=!1 -;JSON.parse(Ii.urlParams.brokerConfig);a.t(null,void 0,i(94566)),a.t(null,void 0,i(92800)),a.t(null,void 0,i(44676));let Ki=null;const Yi=(0,pe.createDeferredPromise)();let Zi;const Xi=()=>{var e;if(l.setEnabled("charting_library_export_chart_data",!Ii.configurationData.is_tradingview_data),l.setEnabled("charting_library_debug_mode","true"===Di.debug||l.enabled("charting_library_debug_mode")),l.setEnabled("chart_property_page_trading",!1),l.enabled("remove_library_container_border")){const e=document.querySelector("#library-container");null!==e&&(e.style.border="0px",e.style.padding="1px")}l.enabled("no_min_chart_width")&&(document.body.style.minWidth="0px"),null!=Di.studiesOverrides&&at.StudyMetaInfo.mergeDefaultsOverrides(JSON.parse(Di.studiesOverrides)),(0,n.assert)(void 0===TradingView.defaultProperties,"Default properties are inited before applying overrides"),$i(JSON.parse(Di.overrides));const t=Di.numeric_formatting?JSON.parse(Di.numeric_formatting):void 0;t&&("string"==typeof t.decimal_sign&&(he.formatterOptionsLibraryOverrides.decimalSign=t.decimal_sign[0]),"string"==typeof t.grouping_separator&&(he.formatterOptionsLibraryOverrides.groupingSeparator=t.grouping_separator[0])),Ii.ChartApiInstance=new(ot())(Mi.datafeed);const s=Mi.customFormatters;s&&(s.timeFormatter&&(de.customFormatters.timeFormatter=s.timeFormatter),s.dateFormatter&&(de.customFormatters.dateFormatter=s.dateFormatter),s.tickMarkFormatter&&(de.customFormatters.tickMarkFormatter=s.tickMarkFormatter),s.priceFormatterFactory&&(de.customFormatters.priceFormatterFactory=s.priceFormatterFactory),s.studyFormatterFactory&&(de.customFormatters.studyFormatterFactory=s.studyFormatterFactory)),Mi.customTimezones&&ke.instance().addTimezones(Mi.customTimezones),Ii.ChartApiInstance.setStudiesAccessController(Ii.ChartApiInstance.createStudiesAccessController(Di.studiesAccess));const o=Di.chartContent?JSON.parse(Di.chartContent).json:void 0,c=Di.chartContentExtendedData?JSON.parse(Di.chartContentExtendedData):o?o.extendedData:void 0,h=Di.interval||"D",d=function(e){const t=/(\d+)(\w+)/;return e.map((e=>{const s=(0,n.ensureNotNull)(t.exec(e.text)),r=s[2].toLowerCase(),o=parseInt(s[1]),l="y"===r?12*o+"M":o+r,c=Ve.Interval.parse(e.resolution);return{text:e.title||{y:a.t(null,{plural:"{count}y",count:o,context:"short_N_year"},i(46766)),m:a.t(null,{plural:"{count}m",count:o,context:"short_N_month"},i(58590)),d:a.t(null,{plural:"{count}d",count:o,context:"short_N_day"},i(47801))}[r]||`${o}${r}`,description:e.description||"",value:{value:l.toUpperCase(),type:"period-back"},targetResolution:c.value(),requiresIntraday:c.isIntraday()}}))}(JSON.parse(Di.timeFrames)),u={resizerBridge:ji,padding:l.enabled("border_around_the_chart")?2:0,content:o,widgetOptions:{addToWatchlistEnabled:!1,hideIdeas:!0,addVolume:(0,n.ensureDefined)(Ii.ChartApiInstance.studiesAccessController).isToolEnabled("Volume"),muteSessionErrors:!0,timezone:Di.timezone,defSymbol:null!==(e=Di.symbol)&&void 0!==e?e:"",defInterval:o?"":h,compareSymbols:Di.compareSymbols&&JSON.parse(Di.compareSymbols), -defTimeframe:(p=Mi.timeframe,p?"string"==typeof p?p:{...p,type:"time-range"}:p),paneContextMenuEnabled:l.enabled("pane_context_menu"),paneContextMenu:{mainSeriesTrade:ki},priceScaleContextMenuEnabled:l.enabled("scales_context_menu"),currencyConversionEnabled:l.enabled("pricescale_currency"),unitConversionEnabled:l.enabled("pricescale_unit"),legendWidgetEnabled:l.enabled("legend_widget"),legendWidget:{contextMenu:{settings:l.enabled("show_chart_property_page"),showOpenMarketStatus:l.enabled("display_market_status")}},sourceStatusesWidget:{errorSolution:!1},marketStatusWidgetEnabled:l.enabled("display_market_status"),chartWarningWidget:{subscriptionFullInfo:!1},timeScaleWidget:{contextMenuEnabled:l.enabled("scales_context_menu"),timezoneMenuEnabled:l.enabled("timezone_menu"),priceAxisLabelsOptions:{showLabels:l.enabled("main_series_scale_menu")}},timeScale:{preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:l.enabled("lock_visible_time_range_on_resize"),rightBarStaysOnScroll:l.enabled("right_bar_stays_on_scroll"),minBarSpacing:Di.time_scale&&JSON.parse(Di.time_scale).min_bar_spacing},goToDateEnabled:l.enabled("go_to_date"),crossHair:{menuEnabled:l.enabled("chart_crosshair_menu")},handleScale:{mouseWheel:l.enabled("mouse_wheel_scale"),pinch:l.enabled("pinch_scale"),axisPressedMouseMove:{time:l.enabled("axis_pressed_mouse_move_scale"),price:l.enabled("axis_pressed_mouse_move_scale")}},handleScroll:{mouseWheel:l.enabled("mouse_wheel_scroll"),pressedMouseMove:l.enabled("pressed_mouse_move_scroll"),horzTouchDrag:l.enabled("horz_touch_drag_scroll"),vertTouchDrag:l.enabled("vert_touch_drag_scroll")},shiftVisibleRangeOnNewBar:l.enabled("shift_visible_range_on_new_bar"),croppedTickMarks:l.enabled("cropped_tick_marks"),countdownEnabled:l.enabled("countdown"),indicatorsDialogShortcutEnabled:l.enabled("insert_indicator_dialog_shortcut")},seriesControlBarEnabled:l.enabled("timeframes_toolbar"),seriesControlBar:{timeFramesWidgetEnabled:!0,timeFramesWidget:{goToDateEnabled:l.enabled("go_to_date"),availableTimeFrames:(e,t)=>{if(!e)return[];if(t!==dt.STATUS_DELAYED&&t!==dt.STATUS_DELAYED_STREAMING&&t!==dt.STATUS_EOD&&t!==dt.STATUS_READY)return[];return d.filter((t=>!(t.requiresIntraday&&!e.has_intraday)&&!(e.supported_resolutions&&!e.supported_resolutions.includes(t.targetResolution))))}},timeWidgetEnabled:!0,timeWidget:{timezoneMenuEnabled:l.enabled("timezone_menu")},adjustForDividendsButtonEnabled:!1,sessionIdButtonEnabled:l.enabled("pre_post_market_sessions"),backAdjustmentButtonEnabled:!1,settlementAsCloseButtonEnabled:!1,percentageScaleButtonEnabled:!0,logScaleButtonEnabled:!0,autoScaleButtonEnabled:!0,fullscreenButtonEnabled:!0,mobileChangeLayoutEnabled:!1},globalEvents:!0,snapshotUrl:Di.snapshotUrl,mobileForceChartMaximizeEnabled:!1,saveChartEnabled:l.enabled("save_shortcut")};var p;Oi&&((0,Qe.createFavoriteDrawingToolbar)(),u.widgetOptions.isDrawingToolbarVisible=x.isDrawingToolbarVisible),c&&(u.metaInfo={id:c.uid,name:c.name,description:c.description,uid:c.uid,username:""}),Mi.additionalSymbolInfoFields&&(0, -hi.setAdditionalSymbolInfoFields)(Mi.additionalSymbolInfoFields);const _=Mi.symbolSearchComplete;_&&(0,di.setSymbolSearchCompleteOverrideFunction)(_);const m=Ii.chartWidgetCollection=new(Je())(u);let g=!1;m.onAboutToBeDestroyed.subscribe(null,(()=>{g=!0}),!0),function(e){e.addCustomSource("branding",((t,i)=>{const s=(0,pt.combine)(((e,t)=>{const s=null!=e?e:t;return null!==s&&s.hasModel()&&s.model().model()===i}),e.maximizedChartWidget().weakReference(),e.leftBottomChartWidget().weakReference());return new ii(t,i,s.ownership())}),_t.CustomSourceLayer.Topmost)}(m),Ii.studyMarket=new ue(m),Ze.registerService(Ye.CHART_WIDGET_COLLECTION_SERVICE,m),m.activeChartWidget.subscribe((e=>{F.emit("activeChartChanged",m.getAll().indexOf(e))})),Ii.saver=new N.ChartSaver(m);const f=new X(m,Ii.saver);m.setSaveChartService(f);const y=new se(m);Ii.chartWidget=m.activeChartWidget.value(),Ii.pro=new TradingView.Pro;const S=function(e){if(!zi)return null;const t=new M.ChartChangesWatcher(e.chartWidgetCollection,Ii.saver,F),s=JSON.parse(Di.favorites);s.intervals=s.intervals.map((e=>{let t=""+e;return t.match(/1[DWMYdwmy]/)&&(t=t.slice(1)),t})),l.enabled("study_templates")&&(Zi=new le({chartWidgetCollection:e.chartWidgetCollection}));let r;const n=Di.header_widget_buttons_mode;"fullsize"===n&&(r=["full"]);"compact"===n&&(r=["small"]);const o=(0,Ci.shouldShowQuickSearchOnLib)()?function(e){const t=t=>Promise.all([i.e(711),i.e(3060),i.e(2603),i.e(7528),i.e(6246),i.e(5514),i.e(7811),i.e(412),i.e(7399),i.e(2248),i.e(7769),i.e(7125),i.e(8077),i.e(5546),i.e(3114),i.e(5666),i.e(4632),i.e(8432),i.e(3204),i.e(1729),i.e(8073),i.e(9486),i.e(4959),i.e(8732),i.e(1335),i.e(1782),i.e(2227),i.e(3443),i.e(6014),i.e(2079),i.e(3098),i.e(2751),i.e(1890),i.e(2157),i.e(9754)]).then(i.bind(i,71043)).then((i=>{const s=new(0,i.GlobalSearchDialogRenderer)(e);return null!==Ee&&Ee.hide(),s.show(t),Ee=s,s}));return(0,E.createGroup)({desc:"GlobalSearch"}).add({desc:"Open",hotkey:E.Modifiers.Mod+75,handler:()=>t()}),t}(e.loadChartService):void 0;return new P(new v,{chartSaver:Ii.saver,chartApiInstance:Ii.ChartApiInstance,chartWidgetCollection:e.chartWidgetCollection,defaultFavoriteStyles:s.chartTypes,defaultFavoriteIntervals:s.intervals,resizerBridge:zi,studyMarket:Ii.studyMarket,studyTemplates:Zi,allowedModes:r,saveChartService:e.saveChartService,loadChartService:e.loadChartService,chartChangesWatcher:t,onClick:is,snapshotUrl:e.snapshotUrl,openGlobalSearch:o})}({chartWidgetCollection:m,saveChartService:f,loadChartService:y,snapshotUrl:Di.snapshotUrl});null!==S?S.load().then((e=>{Ki=e.getComponent(),Yi.resolve()})):(Yi.promise.catch((()=>{})),Yi.reject("header widget is not loaded"));const b=function(e){if(Ui){const t=Di.toolbarbg&&/^[0-9a-f]+$/i.test(Di.toolbarbg)?String(Di.toolbarbg):void 0;if(t){const e=document.createElement("style");e.textContent="body,.chart-controls-bar,#footer-chart-panel{background-color:#"+t+" !important}",document.head.appendChild(e)}return new I({bgColor:t,chartWidgetCollection:e, -drawingsAccess:Di.drawingsAccess?JSON.parse(Di.drawingsAccess):void 0,resizerBridge:Ui,onClick:is})}return null}(m),w=null;Ii.tradingViewApi=new(ct())({chartWidgetCollection:m,chartApiInstance:Ii.ChartApiInstance,saveChartService:f,loadChartService:y,studyMarket:null});if(ce.linking.bindToChartWidgetCollection(m),isNaN(Di.studyCountLimit)||(TradingView.STUDY_COUNT_LIMIT=Math.max(2,+(0,n.ensureDefined)(Di.studyCountLimit))),!isNaN(Di.ssreqdelay)){const e=Math.max(0,+(0,n.ensureDefined)(Di.ssreqdelay));(0,ht.setSearchRequestDelay)(e)}Ii.ChartApiInstance.connect(),(async()=>{const{default:e}=await Promise.all([i.e(1595),i.e(3060),i.e(2603),i.e(5514),i.e(7399),i.e(2248),i.e(7769),i.e(7125),i.e(55),i.e(5666),i.e(4632),i.e(8432),i.e(8073),i.e(6107),i.e(3645),i.e(8732),i.e(1227),i.e(1335),i.e(5877),i.e(1538),i.e(2227),i.e(361),i.e(1890),i.e(2157),i.e(3504),i.e(2306)]).then(i.t.bind(i,36074,23));g||(Ii.lineToolPropertiesToolbar=new e(m))})();const C=document.querySelector(".tv-content");null!==C&&C.addEventListener("contextmenu",(e=>{e.target instanceof Element&&"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&e.preventDefault()})),Ri.resolve(),m.undoHistory.undoStack().onChange().subscribe(null,(0,r.default)((e=>{(null==e?void 0:e.affectsState())&&F.emit("onAutoSaveNeeded")}),1e3*(Number(Di.autoSaveDelay)||5),{leading:!1,trailing:!0}));let T=!1;function A(){b&&b.load(Ei.signal),w&&w.load(Ei.signal).then((e=>{Ii.footerWidget=e.getComponent()}))}Ii.chartWidget.withModel(null,(()=>{Ii.ChartApiInstance.on("realtime_tick",(e=>{F.emit("onTick",e)}));if(!L.savedThemeName()&&Gi){const e=L.getStdTheme(Gi);e&&e.content&&void 0===o&&m.applyTheme({theme:e.content,onlyActiveChart:!1,restoreNonThemeDefaults:!1,themeName:Gi,standardTheme:!0,syncState:!0,noUndo:!0}).then((()=>Ii.applyOverrides(Ii.__defaultsOverrides)))}if(l.enabled("charting_library_debug_mode")&&F.subscribeToAll(((...e)=>{console.log(`${(new Date).toISOString()} Event "${e[0]}", arguments: ${JSON.stringify(e.slice(1))}`)})),T)return;T=!0,rt(m),function(e,t){const s=a.t(null,void 0,i(37367)).format({emoji:"👍"}),r=a.t(null,void 0,i(69804)).format({emoji:"👍"}),o=a.t(null,void 0,i(6655)).format({emoji:"👍"});F.on("onServerScreenshotCopiedToClipboard",(()=>h(s)),null),F.on("onClientScreenshotCopiedToClipboard",(()=>h(r)),null),F.on("onServerScreenshotEmbedCodeCopiedToClipboard",(()=>h(o)),null);let l=null;const c=e.getContainer();function h(e){l?l.show(e):Promise.all([i.e(7528),i.e(7353),i.e(2227),i.e(92)]).then(i.bind(i,1524)).then((i=>{l||(l=new i.ChartScreenshotHintRenderer((0,n.ensureNotNull)(c),{bottomPadding:t.seriesControlBarEnabled}),l.show(e))}))}}(m,{seriesControlBarEnabled:l.enabled("timeframes_toolbar")});_i.WatermarkApi.getInstance().setWidgetCollection(Ii.chartWidgetCollection)})),m.getAll().some((e=>e.isInitialized()))?A():function(e,t){const i=e.getAll(),s=()=>{t(),i.forEach((e=>{e.chartWidgetInitialized().unsubscribe(null,s)}))};i.forEach((e=>{e.chartWidgetInitialized().subscribe(null,s,!0)}))}(m,A), -F.subscribe("chart_load_requested",(e=>{Ii.tradingViewApi.loadChart({json:JSON.parse(e.content),extendedData:e})}),null)};window.addEventListener("unload",(()=>{Ei.abort(),Ii.widgetbar&&(Ii.widgetbar.destroy(),Ii.widgetbar=null),Ii.chartWidgetCollection&&(Ii.chartWidgetCollection.destroy(),Ii.chartWidgetCollection=null),Ii.ChartApiInstance&&Ii.ChartApiInstance.disconnect(),(0,Ke.destroyQuoteSessions)(),Ii.ChartApiInstance&&(Ii.ChartApiInstance.destroy(),Ii.ChartApiInstance=null)})),l.enabled("saveload_storage_customization")&&(Mi.saveLoadAdapter?D.setCustomAdapter(Mi.saveLoadAdapter):Ii.urlParams.chartsStorageUrl&&Ii.urlParams.clientId?D.initialize(Ii.urlParams.clientId,Ii.urlParams.userId,Ii.urlParams.chartsStorageUrl,Ii.urlParams.chartsStorageVer||"1.0"):(l.setEnabled("saveload_storage_customization",!1),l.setEnabled("header_saveload",!1)));const Ji=(0,pe.createDeferredPromise)();function Qi(){Ji.resolve()}Mi.loadLastChart&&l.enabled("saveload_storage_customization")?D.getCharts().then((e=>{if(0===e.length)return void Qi();const t=e.sort(((e,t)=>t.modified_iso-e.modified_iso))[0];D.getChartContent(t).then((e=>{const t=e,i=JSON.parse(t.content);i.extendedData=e,Di.chartContent=JSON.stringify({json:i}),Qi()})).catch(Qi)})).catch(Qi):Qi();const es=(0,Ti.loadLineToolsSynchronizer)(),ts=(0,pe.createDeferredPromise)();function is(){const e=TradingView.bottomWidgetBar;e&&e.turnOffMaximize()}Promise.all([ts.promise,Ji.promise,Ii.loadedCustomCss,es,Ni.promise]).then((()=>{const e=document.querySelector(".loading-indicator");if(e&&(e.style.display="none"),setTimeout(Xi,0),l.enabled("14851")&&Math.random()<=.02){t=window,i=document,s="script",r="ga",t.GoogleAnalyticsObject=r,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=Number(new Date),o=i.createElement(s),a=i.getElementsByTagName(s)[0],o.async=1,o.src="//www.google-analytics.com/analytics.js",a.parentNode.insertBefore(o,a);const e=(0,n.ensureNotNull)(document.URL.match(new RegExp("(:?.*://)([^/]+)/.*")))[2];Ii.ga("create","UA-112911840-1","auto"),Ii.ga("set","anonymizeIp",!0),Ii.ga("set",{hostname:e,page:e,referrer:e}),Ii.ga("send","pageview")}var t,i,s,r,o,a})),(()=>{let e=!0;Mi.datafeed.onReady((t=>{e&&console.warn("`onReady` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),Ii.configurationData=t,ts.resolve()})),e=!1})(),Ii.createShortcutAction=(()=>{const e=E.createGroup({desc:"API"});return(t,i)=>{var s;e.add({hotkey:(s=t,"number"==typeof s?s:"string"==typeof s?R(s.split("+")):Array.isArray(s)?R(s):0),handler:i})}})(),Ii.initializationFinished=()=>{Ii.chartWidgetCollection.undoHistory.clearStack()},Ii.headerReady=()=>Yi.promise,Ii.dispatchEvent(new Event("innerWindowLoad")),Ii.createButton=e=>{if(null===Ki)throw new Error("Cannot create button: header widget is not ready or is not loaded - use `headerReady` to wait until header is ready");return(e=e||{}).align=e.align||"left",e.useTradingViewStyle=e.useTradingViewStyle||!1,Ki.addButton((0,me.randomHash)(),e)},Ii.createDropdown=e=>{ -if(void 0===e)throw new Error("Cannot create dropdown without any parameters. Please refer to the documentation");void 0===e.align&&(e.align="left");const t=(0,me.randomHash)();return Ki?(Ki.addDropdown(t,e),Promise.resolve(new ui(Ki,t))):Yi.promise.then((()=>((0,n.ensureNotNull)(Ki).addDropdown(t,e),new ui((0,n.ensureNotNull)(Ki),t))))},Ii.getAllFeatures=()=>{const e=l.getAllFeatures();return Object.keys(e).forEach((t=>{isNaN(parseFloat(t))||delete e[t]})),e},Ii.getNavigationButtonsVisibility=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)((0,fe.property)()))),Ii.getPaneButtonsVisibility=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)((0,ve.property)()))),Ii.getDateFormat=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)(ye.dateFormatProperty))),Ii.getTimeHoursFormat=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)(Se.timeHoursFormatProperty))),Ii.getCurrencyAndUnitVisibility=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)((0,De.currencyUnitVisibilityProperty)()))),Ii.customSymbolStatus=()=>fi.getInstance();Ii.urlParams.debugBroker,new Set(["connectionStatus"]);const ss=Di.locale||"en",rs=Pi.AriaChartDescription.getInstance();rs.createElement(document),rs.setLocale(ss),Ii.customChartDescriptionFunction&&rs.setCustomProvider(Ii.customChartDescriptionFunction);const ns=xi.AriaCrosshairPriceDescription.getInstance();ns.createElement(document),ns.setLocale(ss),function(){const e=l.enabled("accessible_keyboard_shortcuts")?(0,V.humanReadableHash)(9):`${(0,V.humanReadableModifiers)(V.Modifiers.Alt,!1)} + ${(0,V.humanReadableHash)(90)}`,t=`${(0,V.humanReadableModifiers)(V.Modifiers.Mod,!1)} + ${(0,V.humanReadableHash)(75)}`,s=a.t(null,void 0,i(7697)),r=[a.t(null,{replace:{shortcut:e}},i(85166)),a.t(null,{replace:{shortcut:t}},i(57959)),a.t(null,void 0,i(36332)),a.t(null,void 0,i(9687)),a.t(null,void 0,i(40490)),a.t(null,void 0,i(55382))],n=document.createElement("p");n.innerText=s;const o=document.createElement("ul");r.forEach((e=>{const t=document.createElement("li");t.innerText=e,o.appendChild(t)}));const c=document.createElement("div");c.setAttribute("role","contentinfo"),c.setAttribute("aria-hidden","false"),c.style.fontSize="0",c.appendChild(n),c.appendChild(o),document.body.insertBefore(c,document.body.firstChild)}(),new vi.Action({actionId:"UnknownAction",options:{label:"",onExecute:()=>{window.dispatchEvent(new CustomEvent("keyboard-navigation-activation",{bubbles:!0}));const[e]=Array.from(document.querySelectorAll('button:not([disabled]):not([aria-disabled]):not([tabindex="-1"]), input:not([disabled]):not([aria-disabled]):not([tabindex="-1"]), [tabindex]:not([disabled]):not([aria-disabled]):not([tabindex="-1"])')).filter((0,yi.createScopedVisibleElementFilter)(document.documentElement)).sort(yi.navigationOrderComparator);void 0!==e&&e.focus()},hotkeyHash:l.enabled("accessible_keyboard_shortcuts")?9:E.Modifiers.Alt+90,hotkeyGroup:(0,E.createGroup)({desc:"Global shortcuts"})}})},36986:(e,t,i)=>{"use strict";function s(){return window}function r(){const e=s() -;return e.parent[e.urlParams.uid]}i.d(t,{getChartingLibraryGlobalContext:()=>s,getChartingLibraryOwner:()=>r})},86129:(e,t,i)=>{e=i.nmd(e),TradingView.cleanButAmpersand=function(e,t){var i=t?["&"]:["&"];return TradingView.clean(e,t,i)},TradingView.strip_tags=function(e){return e&&e.replace?e.replace(/(<([^>]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var s=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],r=e;if(!e||!e.replace)return r;for(var n=0;n{"use strict";i.r(t);var s=i(21097),r=i(51768),n=i(76422),o=i(38780);function a(e,t=!1){"loading"!==document.readyState?t?setTimeout((()=>e()),1):e():document.addEventListener("DOMContentLoaded",(()=>e()))}new Promise((e=>{a(e)}));function l(e,t="x"){let i=!1;return"x"!==t&&"both"!==t||(i=i||e.offsetWidth(t.nodeType===Node.TEXT_NODE&&e.push(t.textContent||""),e)),[]).join("").trim()),i}function u(e,t){let i=!1;const s=e.children;for(let e=0;e{document.addEventListener("mouseenter",(e=>{const t=e.target;if(t instanceof HTMLElement&&t.matches(".apply-overflow-tooltip")){const e=h(t);if(t.matches(".apply-overflow-tooltip--check-children-recursively")){if(!c(t,e))return}else if(t.matches(".apply-overflow-tooltip--check-children")){if(!u(t,e))return}else if(!l(t,e))return;(0,o.showOnElement)(t,{text:d(t)});const i=()=>{(0,o.hide)(),["mouseleave","mousedown"].forEach((e=>t.removeEventListener(e,i)))};["mouseleave","mousedown"].forEach((e=>t.addEventListener(e,i)))}}),!0),document.addEventListener("focus",(e=>{const t=e.target;if(t instanceof HTMLElement&&(t.matches(".apply-overflow-tooltip-focus")||t.querySelector(".apply-overflow-tooltip-focus"))){const e=t.matches(".apply-overflow-tooltip")?t:t.querySelector(".apply-overflow-tooltip"),i=h(e);if(e.matches(".apply-overflow-tooltip--check-children-recursively")){if(!c(e,i))return}else if(e.matches(".apply-overflow-tooltip--check-children")){if(!u(e,i))return}else if(!l(e,i))return;(0,o.showOnElement)(t,{text:d(e)});const s=()=>{(0,o.hide)(),t.removeEventListener("blur",s)} -;t.addEventListener("blur",s)}}),!0)}));var p=i(52033),_=i(11417);var m=i(31054),g=i(95171),f=i(3343),v=i(19291);class y{constructor(){this._handleMouseDown=()=>{this._forwardTab=void 0},this._handleKeyDown=e=>{this._forwardTab=void 0,[9,f.Modifiers.Shift+9].includes((0,f.hashFromEvent)(e))&&(this._forwardTab=!e.shiftKey)},this._handleFocus=e=>{const t=e.target;if(void 0===this._forwardTab||!(t instanceof HTMLElement))return;const i=this._findDeepestFocusTrapElement(document.documentElement);if(!(i instanceof HTMLElement)||!i||i.contains(t))return;e.preventDefault(),e.stopPropagation(),t.blur();const s=i.compareDocumentPosition(t);if(s&Node.DOCUMENT_POSITION_PRECEDING||s&Node.DOCUMENT_POSITION_FOLLOWING){const e=this._forwardTab?b(i):b(i,!0);e instanceof HTMLElement&&e.focus()}},document.documentElement.addEventListener("focus",this._handleFocus,{capture:!0}),document.documentElement.addEventListener("keydown",this._handleKeyDown,{capture:!0}),document.documentElement.addEventListener("mousedown",this._handleMouseDown,{capture:!0})}destroy(){document.documentElement.removeEventListener("focus",this._handleFocus,{capture:!0}),document.documentElement.removeEventListener("keydown",this._handleKeyDown,{capture:!0}),document.documentElement.removeEventListener("mousedown",this._handleMouseDown,{capture:!0})}_findDeepestFocusTrapElement(e){const t=e.querySelectorAll('[data-focus-trap="true"]');let i=null,s=-1;return t.forEach((t=>{const r=this._calculateParentCount(t,e);r>s&&(s=r,i=t)})),i}_calculateParentCount(e,t){let i=0,s=e.parentElement;for(;s&&s!==t;)"true"===s.getAttribute("data-focus-trap")&&i++,s=s.parentElement;return i}}const S=(0,g.default)((()=>new y));function b(e,t){var i;const s=(0,v.getActiveElementSelectors)(),r=Array.from(e.querySelectorAll(s)).filter((0,v.createScopedVisibleElementFilter)(e));return null!==(i=t?r[r.length-1]:r[0])&&void 0!==i?i:null}var w=i(7047);let C;function P(e){const t=window.user.available_offers||{};window.TVSettings&&window.TVSettings.sync(window.user.settings),window.is_authenticated?(e||(initOfferLoginStateChangeButton(),onGoPro()&&window.location.reload()),!1===window.user.profile_data_filled&&((0,r.trackEvent)("Conversion","First login"),delete window.user.profile_data_filled)):(Object.keys(t).forEach((e=>{const i=e;t[i].available_for_anons||delete t[i]})),window.user={username:"Guest",following:"0",followers:"0",ignore_list:[],available_offers:t},_.TVLocalStorage.removeItem("trial_availiable"))}C=window.loginStateChange?window.loginStateChange:window.loginStateChange=new p.Delegate,C.subscribe(null,P),s.TVXWindowEvents.on("loginStateChange",(e=>{const t=JSON.parse(e);window.user=t.user,window.is_authenticated=!!t.is_authenticated,C.fire()})),s.TVXWindowEvents.on("signOut",(()=>{!function(){if(window.initData.lfs){const e=document.getElementsByClassName("js-admin-warning")[0];document.body.removeChild(e)}let e=!0;[/^\/chart\//,/^\/share-your-love\//,/^\/pine\//].forEach((t=>{t.test(window.location.pathname)&&(e=!1)})),e&&window.location.reload()}()})),(()=>{ -const e="user-obj-changed",t={};window.crossTabSyncUserAttr=t=>{const i={};t instanceof Array?t.forEach((e=>{i[e]=window.user[e]})):i[t]=window.user[t],s.TVXWindowEvents.emit(e,JSON.stringify(i))},s.TVXWindowEvents.on(e,(e=>{const i=JSON.parse(e);let s;for(s in i)if(i.hasOwnProperty(s)){window.user[s]=i[s];(t[s]||[]).forEach((e=>{e.fire(i[s])}))}}))})(),window.TradingView.changeLoginState=e=>{window.is_authenticated=!!e,s.TVXWindowEvents.emit("loginStateChange",JSON.stringify({is_authenticated:window.is_authenticated,user:window.user})),window.is_authenticated&&n.emit("GLOBAL_EVENT_SIGN_IN_SUCCESS"),C.fire()},window.loginUser=function(e){window.user=(0,m.deepExtend)({},e),window.TradingView.changeLoginState(!0)},window.loginRequiredDelegate=new p.Delegate,window.runOrSignIn=(e,t)=>{t||(t={}),e()},window.onLoginStateChange=P,window.TradingView.setTrialAvailiable=e=>{_.TVLocalStorage.setItem("trial_availiable",e?"1":"0")},window.TradingView.notificationsChanged=new p.Delegate,S(),(0,w.initMouseClickAutoBlurHandler)()},19063:(e,t,i)=>{"use strict";i.r(t),i.d(t,{alphaToTransparency:()=>a,applyAlpha:()=>o,applyTransparency:()=>c,colorFromBackground:()=>p,colorToInteger:()=>v,generateColor:()=>n,getLuminance:()=>d,gradientColorAtPercent:()=>_,isColorDark:()=>m,isHexColor:()=>u,resetTransparency:()=>h,rgbaFromInteger:()=>g,rgbaToInteger:()=>f,transparencyToAlpha:()=>l});var s,r=i(24377);function n(e,t,i){if(t=t||0,!u(e))return i?(0,r.rgbaToString)((0,r.rgba)((0,r.parseRgb)(e),(0,r.normalizeAlphaComponent)(l(t)))):e;const[s,n,o]=(0,r.parseRgb)(e),a=(0,r.normalizeAlphaComponent)(l(t));return(0,r.rgbaToString)([s,n,o,a])}function o(e,t,i){const s=(0,r.tryParseRgba)(e);if(null===s)throw new Error(`Invalid color: ${e}`);const[n,o,a,l]=s,c=(0,r.normalizeAlphaComponent)(t*(i?l:1));return(0,r.rgbaToString)((0,r.rgba)([n,o,a],c))}function a(e){return 100*(1-e)}function l(e){if(e<0||e>100)throw new Error("invalid transparency");return 1-e/100}function c(e,t){if("transparent"===e)return e;const i=(0,r.parseRgba)(e),s=i[3];return(0,r.rgbaToString)((0,r.rgba)(i[0],i[1],i[2],l(t)*s))}function h(e){return"transparent"===e?e:u(e)?e.slice(0,7):(0,r.rgbaToString)((0,r.rgba)((0,r.parseRgb)(e),(0,r.normalizeAlphaComponent)(1)))}function d(e){const t=(0,r.parseRgb)(e).map((e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)));return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){return 0===e.indexOf("#")}function p(e){return"black"===(0,r.rgbToBlackWhiteString)((0,r.parseRgb)(e),150)?"#ffffff":"#000000"}function _(e,t,i){const[s,n,o,a]=(0,r.parseRgba)(e),[l,c,h,d]=(0,r.parseRgba)(t),u=(0,r.rgba)(Math.round(s+i*(l-s)),Math.round(n+i*(c-n)),Math.round(o+i*(h-o)),a+i*(d-a));return(0,r.rgbaToString)(u)}function m(e){return d(h(e))<.5}function g(e){const t=(e=Math.round(e))%256;e-=t;const i=(e/=256)%256;e-=i;const s=(e/=256)%256;e-=s;return`rgba(${t},${i},${s},${(e/=256)/255})`}function f(e){const t=Math.round(255*e[3]);return e[0]+256*e[1]+65536*e[2]+16777216*t}function v(e){const t=(0,r.tryParseRgba)(e) -;return null===t?0:f(t)}!function(e){e[e.BgLuminanceThreshold=.5]="BgLuminanceThreshold"}(s||(s={}))},61119:(e,t,i)=>{"use strict";function s(e,t,i){return e*(1-i)+t*i}i.d(t,{doAnimate:()=>o,lerp:()=>s});const r={from:0,duration:250,easing:i(78871).easingFunc.easeOutCubic};class n{constructor(e){this._doing=!0,this._completed=!1,this._options={...r,...e};const t=performance.now();window.requestAnimationFrame((e=>{this._animation(t,this._options.from,e)}))}stop(){this._doing=!1}completed(){return this._completed}_animation(e,t,i){if(!this._doing)return void this._finishAnimation();const r=(i=!i||i<1e12?performance.now():i)-e,n=r>=this._options.duration||t===this._options.to,o=s(this._options.from,this._options.to,this._options.easing(r/this._options.duration)),a=n?this._options.to:o,l=a-t;this._options.onStep(l,a),n?this._finishAnimation():window.requestAnimationFrame((t=>{this._animation(e,a,t)}))}_finishAnimation(){this._options.onComplete&&this._options.onComplete(),this._completed=!0}}function o(e){return new n(e)}},67580:(e,t,i)=>{"use strict";i.d(t,{fetch:()=>s});(0,i(31955).getLogger)("Fetch");function s(e,t,i={}){return window.fetch(e,t)}},31955:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LOGLEVEL:()=>s.LOGLEVEL,getLogHistory:()=>s.getLogHistory,getLogLevel:()=>s.getLogLevel,getLogger:()=>s.getLogger,getRawLogHistory:()=>s.getRawLogHistory,isHighRateEnabled:()=>s.isHighRateEnabled,loggingOff:()=>s.loggingOff,loggingOn:()=>s.loggingOn,serializeLogHistoryEntry:()=>s.serializeLogHistoryEntry,setLogLevel:()=>s.setLogLevel});var s=i(12168)},68979:(e,t,i)=>{"use strict";function s(e,t,i,s){return`${s?s+" ":""}${i?i+" ":""}${e}px ${t}`}i.d(t,{makeFont:()=>s,parseFont:()=>n});const r=/(bold )?(italic )?(\d+)(px|pt) (.*)$/;function n(e){const t=r.exec(e);return null===t?null:{family:t[5],size:parseInt(t[3])*("pt"===t[4]?.75:1),bold:Boolean(t[1]),italic:Boolean(t[2])}}},44843:(e,t,i)=>{"use strict";i.d(t,{visitObject:()=>n});var s=i(37265);function r(e,t,i){return(0,s.isArray)(e)?function(e,t,i){return e.map((e=>{const s=r(e,t,i),n=t(s);return void 0!==n?n:s}))}(e,t,i):(0,s.isObject)(e)&&((0,s.isHashObject)(e)||i&&i.visitInstances)?function(e,t,i){const s={};return Object.keys(e).forEach((n=>{const o=r(e[n],t,i),a=t(o);s[n]=void 0!==a?a:o})),s}(e,t,i):e}function n(e,t,i){const s=r(e,t,i),n=t(s);return void 0!==n?n:s}},18112:(e,t,i)=>{"use strict";i.d(t,{getPersistentLogger:()=>r});let s=null;function r(){return s}},66800:(e,t,i)=>{"use strict";function s(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}i.d(t,{regExpEscape:()=>s})},31599:(e,t,i)=>{"use strict";i.d(t,{rgbaFromIntegerCached:()=>o});var s=i(48874),r=i(19063),n=i(5201);function o(e=1e3){const t=s.default.Cache;s.default.Cache=n.CircularCacheBuffer.bind(n.CircularCacheBuffer,e);const i=(0,s.default)(r.rgbaFromInteger);return s.default.Cache=t,i}},63273:(e,t,i)=>{"use strict";i.r(t),i.d(t,{detectAutoDirection:()=>y,forceLTRStr:()=>h,forceLTRStrSsr:()=>d,forceRTLStr:()=>p,getLTRScrollLeft:()=>_,getLTRScrollLeftOffset:()=>m,isRtl:()=>r,startWithLTR:()=>c, -stripLTRMarks:()=>l,stripLTRStrSsr:()=>u});var s=i(64531);const r=()=>"rtl"===window.document.dir,n="‪",o="‬",a=new RegExp("‎|‪|‫|‬","g");function l(e){return""!==e&&r()&&null!=e?e.replace(a,""):e}function c(e){return""!==e&&r()&&null!=e?"‎"+e:e}function h(e){return""!==e&&r()&&null!=e?n+e+o:e}function d(e){return n+e+o}function u(e){return e.startsWith(n)&&e.endsWith(o)?e.slice(1,-1):e}function p(e){return""!==e&&r()&&null!=e?"‫"+e+o:e}function _(e){return(0,s.getNormalizedScrollLeft)(e,"rtl")}function m(e,t){const i=(0,s.detectScrollType)();if("indeterminate"===i)return 0;switch(i){case"negative":t=e.clientWidth-e.scrollWidth+t;break;case"reverse":t=e.scrollWidth-e.clientWidth-t}return t}var g;!function(e){e.LTR="ltr",e.RTL="rtl",e.UNKNOWN=""}(g||(g={}));const f=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,v=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function y(e){const t=f.exec(e);return t?v.test(t[0])?"rtl":"ltr":""}},78871:(e,t,i)=>{"use strict";i.d(t,{CubicBezier:()=>s.CubicBezier,dur:()=>s.dur,easingFunc:()=>s.easingFunc});var s=i(74991)},86001:(e,t,i)=>{"use strict";function s(){return Promise.all([i.e(6342),i.e(3060),i.e(6246),i.e(6625),i.e(4392),i.e(7241),i.e(2227),i.e(6014),i.e(2077)]).then(i.bind(i,71090))}i.d(t,{loadChangeIntervalDialog:()=>s})},86235:(e,t,i)=>{"use strict";i.d(t,{showChangeIntervalDialogAsync:()=>n});var s=i(86001);let r=null;function n(e){const t=r=(0,s.loadChangeIntervalDialog)().then((i=>{t===r&&i.showChangeIntervalDialog(e)}));return t}},62400:(e,t,i)=>{"use strict";function s(e){return Promise.all([i.e(5683),i.e(3060),i.e(2603),i.e(7528),i.e(6246),i.e(5514),i.e(7811),i.e(412),i.e(7399),i.e(8077),i.e(6625),i.e(55),i.e(4392),i.e(6665),i.e(4447),i.e(1259),i.e(889),i.e(5883),i.e(2227),i.e(6014),i.e(361),i.e(2079),i.e(2264),i.e(7223),i.e(1859)]).then(i.bind(i,84828)).then((t=>t.showGoToDateDialog(e)))}i.d(t,{showGoToDateDialog:()=>s})},22980:(e,t,i)=>{"use strict";i.d(t,{runOrSigninWithFeature:()=>s});const s=(e,t)=>{e()};window.TradingView.runOrSigninWithFeature=s},71885:(e,t,i)=>{"use strict";i.d(t,{showTooManyStudiesNotice:()=>n});var s=i(11542),r=i(3615);function n(e){(0,r.showWarning)({title:s.t(null,void 0,i(66719)),text:s.t(null,{replace:{number:`${e}`}},i(86146))})}},4454:(e,t,i)=>{"use strict";i.d(t,{getAdditionalSymbolInfoFields:()=>n,setAdditionalSymbolInfoFields:()=>r});let s=[];function r(e){s=e}function n(){return s}},80387:(e,t,i)=>{"use strict";function s(e){Promise.all([i.e(8622),i.e(3060),i.e(7528),i.e(6246),i.e(7811),i.e(412),i.e(7125),i.e(9486),i.e(3547),i.e(2950),i.e(2227),i.e(6014),i.e(5715),i.e(9374)]).then(i.bind(i,11095)).then((({SymbolInfoDialogImpl:t})=>{t.getInstance().show(e)}))}i.d(t,{showSymbolInfoDialog:()=>s})},28153:(e,t,i)=>{"use strict";i.d(t,{ChartSaverBase:()=>u});var s=i(16230),r=i(50151),n=(i(11542),i(97990)),o=i(23024),a=i(37265),l=i(52033),c=i(56570),h=i(39076);function d(e,t){e.content=JSON.stringify(t)}new WeakMap;new TextEncoder;class u{constructor(e){ -this._prevChartState=null,this._chartSavedDelegate=new l.Delegate,this._chartAboutToBeSavedDelegate=new l.Delegate,this._chartSizeLimitExceededDelegate=new l.Delegate,this._isSaveInProcess=!1,this._savingToken=null,this._chartWidgetCollection=e}async saveChartLineTools(e,t,s,r){if(c.enabled("saveload_separate_drawings_storage")){const n=await(0,o.getChartStorage)(),a=this._chartWidgetCollection.metaInfo.uid.value(),l=i=>n.saveLineToolsAndGroups(i,e,t,s,r);if(!a){this._chartSavedDelegate.subscribe(null,(e=>{if(e){const e=this._chartWidgetCollection.metaInfo.uid.value();l(e)}}),!0);const{SavingLineToolsLibraryError:e}=await i.e(5565).then(i.bind(i,98653));throw new e("Layout ID not yet created.",!0)}return l(a)}return Promise.reject("Line tools storage is not supported")}layoutId(){return this._chartWidgetCollection.metaInfo.uid.value()}saveChartSilently(e,t,i){const s=i||{};this._isSaveInProcess=!0,this._chartAboutToBeSavedDelegate.fire(),this._saveChart((e=>{const t=e&&c.enabled("saveload_separate_drawings_storage"),i=this._getChartWidgetCollectionState(!1,void 0,void 0,void 0,t),r=this._getCommonSavingInfo(!1);return d(r,i),s.chartName&&(r.name=s.chartName),r.name&&0!==r.name.length||!s.defaultChartName||(r.name=s.defaultChartName),s.autoSave&&(r.autoSave=!0),r}),((t,i)=>{var s;(0,r.assert)(!this._chartWidgetCollection.readOnly(),"Trying to save layout in read-only mode"),i&&this._chartWidgetCollection.metaInfo.name.setValue(null!==(s=i.name)&&void 0!==s?s:""),this._prevChartState=i,this._chartSavedDelegate.fire(!0),this._isSaveInProcess=!1,e&&e({uid:t.uid.value(),data:i}),this._prevChartState&&delete this._prevChartState.savingToken}),(e=>{this._chartSavedDelegate.fire(!1),this._isSaveInProcess=!1,t&&t(e)}),s)}saveToJSON(e){const t=e&&!1===e.includeDrawings||void 0,i=this._getCommonSavingInfo(!1);return d(i,this._getChartWidgetCollectionState(!1,!0,t,void 0,t)),i}isSaveInProcess(){return this._isSaveInProcess}_getChartWidgetCollectionState(e,t,i,s,r){return e||(t=!0,s=!1),this._chartWidgetCollection.state(!!e,!!i,!!s,r,!t)}_getCommonSavingInfo(e){const t=this._chartWidgetCollection,i=this._chartWidgetCollection.chartsSymbols(),s=i[t.activeChartWidget.value().id()],r={...(n=s,{...n,legs:JSON.stringify(null!==(o=n.legs)&&void 0!==o?o:[])})};var n,o;const a=t.metaInfo,l=a.id.value();return null!==l&&(r.id=l),r.name=a.name.value()||"",r.description=a.description.value()||"",r.charts_symbols=function(e){const t={};for(const i of Object.keys(e))t[i]={symbol:e[i].symbol};return JSON.stringify(t)}(i),r.is_realtime=r.is_realtime=e?"0":"1",r}async _saveLineToolsToStorage(){if(!c.enabled("saveload_separate_drawings_storage"))return Promise.resolve();{this.layoutId();0;const e=this._chartWidgetCollection.getAll().map((e=>{var t,i;return null!==(i=null===(t=e.lineToolsSynchronizer())||void 0===t?void 0:t.flushPendingSavings())&&void 0!==i?i:null})).filter(a.notNull);e.length&&await Promise.all(e)}}_invalidateAllLineTools(){this._chartWidgetCollection.getAll().forEach((e=>{var t -;return null===(t=e.lineToolsSynchronizer())||void 0===t?void 0:t.invalidateAll()}))}_saveChartImpl(e,t,i,s,r,n){let o;o=s=>{t.id.value()||(t.id.setValue(s.result),t.uid.setValue(`${s.result}`)),i(t,e)},e.name?h.backend.saveChart(e.name,e.short_name,e.resolution,e,t).then(o).catch((async e=>{var t,i;const r=e instanceof Response?e:void 0,n=e instanceof Error?e:void 0;this._savingToken=null;const o=s.bind(null,{status:null==r?void 0:r.status,message:null!==(i=null!==(t=null==r?void 0:r.statusText)&&void 0!==t?t:null==n?void 0:n.message)&&void 0!==i?i:"Unknown error"});o()})):s({status:-1,message:"Saving chart with empty name is not allowed"})}async _saveChart(e,t,r,o){var a;const l=this._chartWidgetCollection.metaInfo;let h=null!==(a=o.changes)&&void 0!==a?a:n.changedAll;c.enabled("saveload_separate_drawings_storage")&&this._invalidateAllLineTools();let d=!0;if(2&h||c.enabled("saveload_separate_drawings_storage"))try{await this._saveLineToolsToStorage()}catch(e){h|=1;const{SavingLineToolsLibraryError:t}=await i.e(5565).then(i.bind(i,98653));e instanceof t&&e.safe||(d=!1)}if(1&h){const i=e(d);if((0,s.default)(this._prevChartState,i)&&null!==l.id.value())return this._chartSavedDelegate.fire(!0),void t(l,i);0;const n=(e,i)=>(d||this._chartWidgetCollection.getAll().forEach((e=>{var t;return null===(t=e.lineToolsSynchronizer())||void 0===t?void 0:t.markAsValidatedBecauseOfSavingToContent(!0)})),t(e,i));return this._saveChartImpl(i,l,n,r,o,e)}this._chartSavedDelegate.fire(!0),t(l,e(d))}}},97488:(e,t,i)=>{"use strict";var s=i(28153).ChartSaverBase;i.i18next(null,void 0,i(49947));t.ChartSaver=class extends s{constructor(e){super(e)}chartSizeLimitExceeded(){return this._chartSizeLimitExceededDelegate}chartAboutToBeSaved(){return this._chartAboutToBeSavedDelegate}chartSaved(){return this._chartSavedDelegate}publishChart(e){}publishScript(e,t,i){}isScriptNameValid(e){return""!==e.trim()&&e.length<=64}isScriptDescriptionValid(e){return""!==e.trim()&&e.length<=7e4}isScriptDescribersValid(e,t){return this.isScriptNameValid(e)&&this.isScriptDescriptionValid(t)}openInNewTab(e,t,i){e.publishInProgress=!0,i||this.isScriptDescribersValid(t.name,t.description)&&undefined(new Promise((function(t){e.setPopupUrl=t})))}onPublish(e,t){}}},22365:(e,t,i)=>{"use strict";i.d(t,{getTranslatedSymbolDescription:()=>s});i(11542);function s(e){return e.description||""}},34585:(e,t,i)=>{"use strict";function s(e){return e+"…"}i.d(t,{appendEllipsis:()=>s})},14051:(e,t,i)=>{"use strict";function s(e){if(!o(e))throw e}function r(e){return(null==e?void 0:e.aborted)?Promise.reject(n()):new Promise(((t,i)=>{null==e||e.addEventListener("abort",(()=>i(n())),{once:!0})}))}function n(){return new DOMException("Aborted","AbortError")}function o(e){return e instanceof Error&&"AbortError"===e.name}function a(e,t){return Promise.race([r(e),t])}async function l(e,t){let i;try{await a(e,new Promise((e=>{i=setTimeout(e,t)})))}finally{clearTimeout(i)}}i.d(t,{delay:()=>l,isAbortError:()=>o,respectAbort:()=>a,skipAbortError:()=>s})},18832:(e,t,i)=>{"use strict" -;function s(e){let t;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if(e instanceof Date)t=new Date(e.valueOf());else if(Array.isArray(e)){t=[];let i=0;const r=e.length;for(;is})},31054:(e,t,i)=>{"use strict";function s(e,...t){return e&&"object"==typeof e?(0===t.length||t.forEach((t=>{null!=t&&"object"==typeof t&&Object.keys(t).forEach((i=>{const n=e[i],o=t[i];if(o===e)return;const a=Array.isArray(o);if(o&&(r(o)||a)){let t;t=a?n&&Array.isArray(n)?n:[]:n&&r(n)?n:{},e[i]=s(t,o)}else void 0!==o&&(e[i]=o)}))})),e):e}function r(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(!t)return!0;const i=Object.hasOwnProperty.toString,s=t.hasOwnProperty("constructor")&&t.constructor;return"function"==typeof s&&i.call(s)===i.call(Object)}i.d(t,{deepExtend:()=>s})},14426:(e,t,i)=>{"use strict";function s(){let e,t;return{promise:new Promise(((i,s)=>{e=i,t=s})),reject:t,resolve:e}}i.d(t,{createDeferredPromise:()=>s})},14712:(e,t,i)=>{"use strict";function s(e){if(void 0===e)return"";if(e instanceof Error){let t=e.message;return e.stack&&(t+=" "+e.stack),t}return"string"==typeof e?e.toString():JSON.stringify(e)}i.d(t,{errorToString:()=>s})},19365:(e,t,i)=>{"use strict";i.d(t,{getTwemojiUrl:()=>r});var s=i(18438);function r(e,t){let i="";return s.default.parse(e,(e=>(i=s.default.base+("svg"===t?`svg/${e}.svg`:`72x72/${e}.png`),!1))),i}s.default.base="https://cdnjs.cloudflare.com/ajax/libs/twemoji/13.0.1/"},92184:(e,t,i)=>{"use strict";i.r(t),i.d(t,{guid:()=>r,randomHash:()=>n,randomHashN:()=>o});const s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function n(){return o(12)}function o(e){let t="";for(let i=0;i{"use strict";i.d(t,{parseHtml:()=>n,parseHtmlElement:()=>o});const s=new WeakMap;var r;function n(e,t){let i,r;return i=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,s&&(r=s.get(i)),r||(r=i.ownerDocument.createRange(),r.selectNodeContents(i),s&&s.set(i,r)),r.createContextualFragment(e)}function o(e,t){const i=n(e,t),s=i.firstElementChild;return null!==s&&i.removeChild(s),s}!function(e){e[e.Element=1]="Element",e[e.Document=9]="Document"}(r||(r={}))},14729:(e,t,i)=>{"use strict";function s(e){e.preventDefault()}i.d(t,{preventDefault:()=>s,preventDefaultForContextMenu:()=>n});const r=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]',"[data-allow-context-menu]"];function n(e){const t=e.target;t&&!t.closest(r.join(", "))&&e.preventDefault()}},49406:(e,t,i)=>{ -"use strict";i.d(t,{capitalizeFirstLetterInWord:()=>u,decodeHTMLEntities:()=>l,getFirstSegmentOrCodePointString:()=>p,htmlEscape:()=>c,removeSpaces:()=>d,removeTags:()=>h});const s=/[<"'&>]/g,r=e=>`&#${e.charCodeAt(0)};`,n={"<":"<",">":">",""":'"',"'":"'","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","&":"&"},o=Object.assign({},...Object.entries(n).map((([e,t])=>({[t]:e})))),a=new RegExp(Object.keys(n).join("|"),"g");new RegExp(Object.keys(o).join("|"),"g");function l(e){return e.replace(a,(e=>n[e]||e))}function c(e){return e.replace(s,r)}function h(e=""){return e.replace(/(<([^>]+)>)/gi,"")}function d(e=""){return e.replace(/\s+/g,"")}function u(e=""){return e.replace(/\b\w/g,(e=>e.toUpperCase()))}function p(e){var t;const i=Intl.Segmenter;if(i){const s=new i(void 0,{granularity:"grapheme"}),[{segment:r}={segment:null}]=s.segment(e);return null!==(t=null==r?void 0:r.toUpperCase())&&void 0!==t?t:null}{const t=e.codePointAt(0);return t?String.fromCodePoint(t).toUpperCase():null}}},97144:(e,t,i)=>{"use strict";function s(e){return e.reduce((function(e,t,i){return~e.indexOf(t)||e.push(t),e}),[])}i.r(t),i.d(t,{uniq:()=>s})},34369:e=>{e.exports=''},93544:e=>{e.exports=''},50946:e=>{e.exports=''},70893:e=>{ +shadow:yt.colorsPalette["color-cold-gray-700"],text:yt.colorsPalette["color-white"],staticTextBackground:(0,Ct.generateColor)(yt.colorsPalette["color-cold-gray-800"],20),logo:yt.colorsPalette["color-white"],platformBgColor:yt.colorsPalette["color-cold-gray-900"],platformFgColor:yt.colorsPalette["color-cold-gray-200"]},Vt={customBrandingTradingViewText:yt.colorsPalette["color-brand"],customBrandingText:yt.colorsPalette["color-cold-gray-850"],background:yt.colorsPalette["color-white"],shadow:yt.colorsPalette["color-cold-gray-150"],text:yt.colorsPalette["color-cold-gray-900"],staticTextBackground:(0,Ct.generateColor)(yt.colorsPalette["color-white"],20),logo:yt.colorsPalette["color-cold-gray-900"],platformBgColor:yt.colorsPalette["color-white"],platformFgColor:yt.colorsPalette["color-cold-gray-900"]};const Bt=new Map([["logo-old-style",Dt],["tradingview-old-style",kt]]),Rt=l.enabled("adaptive_logo"),Nt=l.enabled("small_no_display"),Ot=l.enabled("38914"),Ft="site_branding",Wt="widget_branding",Ht="widget_referral_branding",zt="widget_custom_branding",Ut="widget_custom_no_powered_branding",jt="fundamental_branding",Gt="fundamental_custom_branding",qt="fundamental_custom_no_powered_branding",$t="library_branding",Kt="library_custom_branding",Yt="library_custom_no_powered_branding",Zt=navigator.userAgent.toLowerCase().indexOf("chrome")>-1&&-1===navigator.userAgent.toLowerCase().indexOf("edge"),Xt=window.urlParams||{},Jt=window.initData||{};Xt.no_referral_id&&enable(Xt.referral_id||"","aggressive");const Qt=a.t(null,void 0,i(98856)),ei=Ot?a.t(null,void 0,i(44676)):a.t(null,void 0,i(92800));a.t(null,void 0,i(46768)),a.t(null,void 0,i(83470)),a.t(null,void 0,i(3140));var ti;!function(e){e[e.OldFontAdditionalVerticalOffset=0]="OldFontAdditionalVerticalOffset",e[e.NewFontAdditionalVerticalOffset=.1]="NewFontAdditionalVerticalOffset",e[e.StrokeWidth=4]="StrokeWidth",e[e.StaticLogoHorizontalTextOffset=5]="StaticLogoHorizontalTextOffset",e[e.TextWidthCompensation=2]="TextWidthCompensation",e[e.AdaptiveWidthToHideText=500]="AdaptiveWidthToHideText",e[e.WidthToHideLogoIfSmallNoDisplayEnabled=480]="WidthToHideLogoIfSmallNoDisplayEnabled",e[e.TextAdditionalCropWidth=11]="TextAdditionalCropWidth",e[e.BadgeLogoMargin=-11]="BadgeLogoMargin",e[e.BadgeTextMargin=-8]="BadgeTextMargin",e[e.TextAnimatedAlphaStart=.3]="TextAnimatedAlphaStart",e[e.TextAnimatedAlphaEnd=1]="TextAnimatedAlphaEnd",e[e.AnimationDuration=200]="AnimationDuration"}(ti||(ti={}));(0,We.onWidget)();class ii extends St.CustomSourceBase{constructor(e,t,i){super(e,t),this._canvasWidth=0,this._paneHeight=0,this._left=13,this._bottom=36,this._layout=Ft,this._needToShow=!0,this._showBranding=!1,this._customLogoSrc="",this._customLogoLink="",this._tradingviewLogoLinkToPath="",this._cubicBezier=new wt.CubicBezier(.4,.01,.22,1),this._openAnimation=null,this._closeAnimation=null,this._powBy=null,this._custom=null,this._destroyed=!1,this._mainSeries=this._model.mainSeries(),this._visible=i,this._showForPro=!t.onWidget();const s=()=>this._model.updateSource(this) +;this._visible.subscribe(s),this._dark=t.dark().spawn(),this._dark.subscribe(s),this._checkLayout(),this._layout!==zt&&this._layout!==Gt||(this._left=8,this._bottom=5);const r=()=>{this._needToShow?this._showBranding=!0:this._showBranding=!1};this._resizeHandlerDelayed=(0,gt.default)(r,200),r(),window.addEventListener("resize",this._resizeHandlerDelayed),this._model.isSnapshot()?this._init():(this._mainSeries.dataEvents().symbolResolved().subscribe(this,this._init),null!==this._mainSeries.symbolInfo()&&this._init()),this._renderer={draw:this.draw.bind(this),hitTest:this.hitTest.bind(this)},t.onWidget()||window.loginStateChange.subscribe(this,this._init)}destroy(){window.removeEventListener("resize",this._resizeHandlerDelayed),this._mainSeries.dataEvents().symbolResolved().unsubscribeAll(this),this._powBy&&this._powBy.destroy(),this._model.onWidget()||window.loginStateChange.unsubscribeAll(this),this._visible.release(),this._dark.destroy(),this._destroyed=!0}paneViews(e){if(window.TradingView.printing&&this._layout!==Ut&&this._layout!==qt)return[];if(!this._visible.value())return[];if(this._layout===Ft&&!this._showForPro&&window.user&&window.user.is_pro)return[];const t=this._model.mainPane();if(!t)return[];const i=l.enabled("move_logo_to_main_pane");let s=!1;if(e.maximized().value())s=!0;else if(i)s=t.collapsed().value()?e===this._model.panes().find((e=>!e.collapsed().value())):e.isMainPane();else if(this._model.lastPane().collapsed().value()){const t=this._model.panes();for(let i=t.length-1;i>=0;--i){const r=t[i];if(!r.collapsed().value()){s=r===e;break}}}else s=e.isLast();return s?[{renderer:this.renderer.bind(this)}]:[]}labelPaneViews(e){return[]}priceAxisViews(e,t){return[]}updateAllViews(){}updateViewsForPane(e){}priceScale(){return null}renderer(e){return this._paneHeight=e.mediaSize.height,this._canvasWidth=e.mediaSize.width,this._renderer}hasContextMenu(){return!1}onClickOutside(){this._hasAnimation()&&this._startCloseAnimation()}hitTest(e){if(!this._showBranding||l.enabled("logo_without_link"))return null;if(this._powBy&&this._layout!==Ut&&this._layout!==qt&&(this._powBy.hitTest(e)||this._custom&&this._custom.hitTest(e))){const e=!0;return new bt.HitTestResult(bt.HitTarget.Custom,{hideCrosshairLinesOnHover:!0,cursorType:e?Lt.PaneCursorType.Pointer:Lt.PaneCursorType.Default,clickHandler:()=>{this._openLink()},tapHandler:()=>{this._hasAnimation()?this._toggleOpenAnimatedOrOpenLink():this._openLink()},mouseEnterHandler:()=>{this._hasAnimation()&&this._startOpenAnimation()},mouseLeaveHandler:()=>{this._hasAnimation()&&this._startCloseAnimation()},mouseDownHandler:()=>{0},mouseUpHandler:()=>{0}})}return null}tvUrl(){var e,t,i;const s="https://"+function(e){return({ar_AE:"ar",de_DE:"de",en:"www",es:"es",ca_ES:"es",fa_IR:"www",fr:"fr",he_IL:"il",id:"id",in:"in",it:"it",ja:"jp",kr:"kr",ms_MY:"my",pl:"pl",br:"br",ru:"ru",sv_SE:"se",th_TH:"th",tr:"tr",uk:"uk",vi_VN:"vn",zh_CN:"cn",zh_TW:"tw"}[e]||"www")+".tradingview.com" +}((null!==(t=null===(e=Jt.querySettings)||void 0===e?void 0:e.locale)&&void 0!==t?t:null===(i=Jt.currentLocaleInfo)||void 0===i?void 0:i.language)||"en");let r=new URL(s);if(this._customLogoLink)return this._customLogoLink;if(this._layout===$t||this._layout===Kt){let e;switch(!0){case l.enabled("charting_library"):e="library";break;case l.enabled("trading_terminal"):e="trading-terminal"}this._tradingviewLogoLinkToPath&&(r.pathname=this._tradingviewLogoLinkToPath),r.searchParams.append("utm_source",window.location.origin),r.searchParams.append("utm_medium","library"),e&&r.searchParams.append("utm_campaign",e)}return r.toString()}draw(e,t){if(!this._showBranding)return;let i=0;Xt.utm=!0,(0,xt.drawScaled)(e,t.horizontalPixelRatio,t.verticalPixelRatio,(()=>{if(this._powBy&&this._powBy.show){i=this._powBy.height,e.save();const s=new ft.Point(this._left,this._paneHeight-this._bottom-i);this._powBy.draw(s,e,t,this._canvasWidth),e.restore()}if(this._custom&&this._custom.show){e.save();const s=new ft.Point(this._left,this._paneHeight-this._bottom-i-this._custom.height);this._custom.draw(s,e,t),e.restore()}}))}_init(){this._checkLayout();const e=this._mainSeries.symbolInfo();this._powBy&&this._powBy.destroy(),this._powBy=new li(this._layout,(null==e?void 0:e.name)||"",this._model,(()=>this._model.fullUpdate())),this._custom=new ci(this._layout,this._customLogoSrc,(()=>this._model.fullUpdate())),this._openAnimation=null,this._closeAnimation=null,this._model.lightUpdate()}_checkLayout(){if(l.enabled("widget"))0;else{{const e=JSON.parse(Xt.logo)||{};e.image?(this._customLogoSrc=e.image,this._customLogoLink=e.link,this._needToShow=l.enabled("widget_logo"),l.enabled("link_to_tradingview")?this._layout=Kt:this._layout=Yt):(e.tradingviewLogoLinkToPath&&(this._tradingviewLogoLinkToPath=e.tradingviewLogoLinkToPath.replace(/^\//,"")),this._layout=$t,this._needToShow=l.enabled("widget_logo"))}}}_startOpenAnimation(){if(null!==this._openAnimation)return;null!==this._closeAnimation&&(this._closeAnimation.stop(),this._closeAnimation=null);const e=(0,n.ensureNotNull)(this._powBy).animationStep();this._openAnimation=(0,Pt.doAnimate)({from:e,to:1,duration:200*(1-e),easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)})}_startCloseAnimation(){if(null!==this._closeAnimation)return;null!==this._openAnimation&&(this._openAnimation.stop(),this._openAnimation=null);const e=(0,n.ensureNotNull)(this._powBy).animationStep();this._closeAnimation=(0,Pt.doAnimate)({from:e,to:0,duration:200*e,easing:this._cubicBezier.easingFunc,onStep:this._animatedDrawStep.bind(this)})}_animatedDrawStep(e,t){(0,n.ensureNotNull)(this._powBy).animatedDrawStep(t),this._model.lightUpdate()}_hasAnimation(){return null!==this._powBy&&this._powBy.hasAnimation()}_openGoPro(){0}_openLink(){if(this._layout===Ft)return this._model.isSnapshot()||this._openGoPro(),!1;l.enabled("widget");return(0,n.ensureNotNull)(window.open(this.tvUrl(),"_blank")).opener=null,!0}_toggleOpenAnimatedOrOpenLink(){ +null!==this._openAnimation&&this._openAnimation.completed()?this._openLink()||this._startCloseAnimation():this._startOpenAnimation()}}function si(e){return!Nt||e>480}function ri(e){return!Rt||e>500}let ni={},oi={};class ai{constructor(){this._topLeftPoint=null,this._hitTestHeight=null}hitTest(e){const t=this._getHitTestBox();if(t)return(0,vt.pointInBox)(e,t)}_getHitTestBox(){var e;const t=this._topLeftPoint;if(t){const{x:i,y:s}=t;return(0,ft.box)(t,new ft.Point(i+this.width,s+(null!==(e=this._hitTestHeight)&&void 0!==e?e:this.height)))}}}class li extends ai{constructor(e,t,i,s){super(),this.show=!0,this.hovered=!1,this.active=!1,this._needDisplayImage=!1,this._textAnimatedAlpha=1,this._textAnimatedAlphaStart=1,this._textAdditionalCropWidth=0,this._textAnimatedAlphaEnd=1,this._badgeData={logoMargin:0,textMargin:0,width:0},this._invertTextCropDirection=!1,this._font=`px ${m.CHART_FONT_FAMILY}`,this._txt="TradingView",this._maximizedAnimationTextWidth=0,this._logoWidth=0,this._textWidthCache=new Mt.TextWidthCache,this._pixelRatio={horizontalPixelRatio:NaN,verticalPixelRatio:NaN},this._model=i,this._layout=e,this._symbol=t,this._showTradeWithLogo=!1,this._showAnimatedBranding=l.enabled("show_animated_logo")||e===Wt,this._alwaysMaximized=l.enabled("logo_always_maximized")||this._model.isSnapshot()&&!We.CheckMobile.any()||!1,this._fontSize=this._showAnimatedBranding||this._layout===Ht?11:14,this._showAnimatedBranding||this._layout!==zt&&this._layout!==Gt||(this._fontSize=12),this._sizeConstants=(this._model.isSnapshot(),{brandCircleSize:32,textAsImageWidthCompensation:0,leftOffset:0,bottomOffset:-23,logoLeftOffset:1,logoTextOffset:6}),this.width=this._minimizedAnimationWidth(),this._animatedWidth=this.width,this.height=this._fontSize+2,this._requestRepaint=s,this._init(),this._checkFontLoaded(),this._recalculateMetrics()}destroy(){this._model.properties().childs().paneProperties.childs().background.unsubscribeAll(this),this._model.onChartThemeLoaded().unsubscribeAll(this)}hasAnimation(){return this._showAnimatedBranding&&!this._alwaysMaximized}animationStep(){const e=this._minimizedAnimationWidth(),t=this._maximizedAnimationWidth();return(this._animatedWidth-e)/(t-e)}animatedDrawStep(e){const t=this._minimizedAnimationWidth(),i=this._maximizedAnimationWidth();this._animatedWidth=t+e*(i-t),this._textAnimatedAlpha=this._textAnimatedAlphaStart+e*(this._textAnimatedAlphaEnd-this._textAnimatedAlphaStart)}draw(e,t,i,s){const{brandCircleSize:r,logoLeftOffset:n,leftOffset:o,bottomOffset:a}=this._sizeConstants;this._needDisplayImage&&si(s)&&(e=new ft.Point(e.x+o,e.y-a)),this._topLeftPoint=e,t.translate(e.x,e.y);const{horizontalPixelRatio:l,verticalPixelRatio:c}=i;(0,At.equalPixelRatios)(i,this._pixelRatio)||(this._textWidthCache.reset(),this._pixelRatio={horizontalPixelRatio:l,verticalPixelRatio:c});const h=this._colors;if(this._showAnimatedBranding){if(this._needDisplayImage){const e=this._getLogoImage(h.logo);this.width=this._animatedWidth, +this._drawLogo(t,e,this._animatedWidth,this._animatedWidth,this._animatedWidth>this._sizeConstants.brandCircleSize)}}else if(this._layout===zt||this._layout===Gt){t.font=this._fontSize+this._font;const e=t.measureText(this._txt).width+2;this.width=e+t.measureText("TradingView").width+2,t.save(),t.globalAlpha=.7,t.fillStyle=this._colors.customBrandingText,t.fillText(this._txt,0,12),t.fillStyle=this._colors.customBrandingTradingViewText,t.fillText("TradingView",e,12),t.restore()}else if(si(s))if(this._needDisplayImage){const e=this._getLogoImage(h.logo);t.save(),this._drawBgCircle(t,r/2);const{width:i,height:o}=e.logoImage.viewBox(),a=new ft.Point(Math.round((r-i)/2)-1+n,Math.floor((r-o)/2)+1);this._drawLogoImage(t,a,e.logoImage);const l=ri(s);l&&(t.translate(r+5,Math.round(this._fontSize*("px EuclidCircular"===this._font?.1:0))),this._drawTextStroke(t),this._drawTextFill(t)),t.restore(),this.width=r,l&&(this.width+=this._maximizedAnimationTextWidth)}else{const e=ri(s);e&&(t.save(),t.translate(Zt?-.5:0,-.5),this._drawTextStroke(t),this._drawTextFill(t),t.restore()),e&&(this.width=this._maximizedAnimationTextWidth)}else this.width=0}showTradeWithLogo(e){this._showTradeWithLogo=e}_minimizedAnimationWidth(){return this._sizeConstants.brandCircleSize+this._badgeData.logoMargin+this._badgeData.width}_maximizedAnimationWidth(){return this._sizeConstants.brandCircleSize+this._sizeConstants.logoTextOffset+this._maximizedAnimationTextWidth+this._badgeData.width+this._badgeData.textMargin}_drawTradeWithLogo(e,t,i){0}_drawLogo(e,t,i,s,r){const{brandCircleSize:n,logoLeftOffset:o,logoTextOffset:a}=this._sizeConstants;e.save(),this._drawFillRectWithRoundedCorner(e,-.5,0,i,n,n/2);const{logoImage:l,textImage:c,proBadgeImage:h}=t,{width:d,height:u}=l.viewBox(),p=new ft.Point(Math.round((n-d)/2)-1+o,Math.floor((n-u)/2)+1);if(r){const t=new ft.Point(p.x+d+a,p.y),i=e.globalAlpha;e.globalAlpha*=this._textAnimatedAlpha;const r=s-this._sizeConstants.brandCircleSize-a-this._badgeData.logoMargin-this._badgeData.width;this._drawImageCropWidth(e,t,c,r),e.globalAlpha=i}if(h){const{width:t,height:i}=h.viewBox();h.render(e,{targetViewBox:{x:p.x+this.width-t,y:Math.floor((n-i)/2)+1,width:t,height:i}})}this._drawLogoImage(e,p,l),e.restore()}_init(){oi={},ni={},this._checkLayout(),this.show&&(this._updateColors(),this._updateHeight(),this._model.properties().childs().paneProperties.childs().background.subscribe(this,this._updateColors),this._model.onChartThemeLoaded().subscribe(this,this._updateColors))}_updateHeight(){this._needDisplayImage?this.height=this._sizeConstants.brandCircleSize:this.height=this._fontSize+2}_checkFontLoaded(){if(!this._showAnimatedBranding&&document.fonts&&document.fonts.check&&document.fonts.load){document.fonts.check(`${this._fontSize}px EuclidCircular`)?this._font="px EuclidCircular":document.fonts.load(`${this._fontSize}px EuclidCircular`,this._txt).then((()=>{this._font="px EuclidCircular",this._recalculateMetrics(),this._requestRepaint()}))}}_recalculateMetrics(){var e;const t=(0, +xt.createDisconnectedCanvas)(document,(0,mt.size)({width:0,height:0})),i=(0,xt.getPrescaledContext2D)(t);i.font=this._fontSize+this._font;const s=this._needDisplayImage?this._getLogoImage(this._colors.logo):null;let r=s?s.textImage.viewBox().width+this._sizeConstants.textAsImageWidthCompensation:Math.ceil(i.measureText(this._txt).width)+2+8;r%2==0&&(r+=1),this._maximizedAnimationTextWidth=r,this._textWidthCache.reset(),this._logoWidth=null!==(e=null==s?void 0:s.logoImage.viewBox().width)&&void 0!==e?e:0,this._animatedWidth=this._alwaysMaximized?this._maximizedAnimationWidth():this._minimizedAnimationWidth()}_updateColors(){this._colors=this._model.dark().value()?Et:Vt}_getLogoImage(e){return function(e,t,i,s,r){const o=oi,a=[t,i,r&&"tradeWith"].filter(Boolean).join("-"),l=o[a];if(void 0!==l)return l;const[c,h,d]=function(e,t,i){return i?["logo-trade-with","tradingview-trade-with"]:["logo-old-style","tradingview-old-style",void 0]}(0,0,r),u=e=>e.replace(/fill="#[\da-f]{6}"/gi,`fill="${i}"`),p={logoImage:e(u((0,n.ensureDefined)(Bt.get(c)))),textImage:e(u((0,n.ensureDefined)(Bt.get(h)))),proBadgeImage:d?e(u((0,n.ensureDefined)(Bt.get(d)))):void 0};return o[a]=p,p}(Tt.svgRenderer,this._model.dark().value()?"dark":"light",e,0,this._showTradeWithLogo)}_checkLayout(){switch(this._layout){case Wt:case Ht:case zt:case jt:case Gt:case Kt:case $t:case Ft:this.show=!0;break;case Ut:case qt:case Yt:this.show=!1}switch(this._layout){case $t:this._needDisplayImage=!0,this._txt=Qt;break;case Kt:this._txt=ei}}_drawTextStroke(e){e.save(),e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.strokeStyle=this._colors.staticTextBackground,e.lineWidth=4,e.lineJoin="round",e.strokeText(this._txt,0,this._sizeConstants.brandCircleSize/2+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawTextFill(e){e.save(),e.textBaseline="middle",e.textAlign="start",e.font=this._fontSize+this._font,e.fillStyle=this._colors.text,e.fillText(this._txt,0,this._sizeConstants.brandCircleSize/2+this._textWidthCache.yMidCorrection(e,this._txt)),e.restore()}_drawImageCropWidth(e,t,i,s){e.save();const{logoMargin:r,textMargin:n}=this._badgeData;e.beginPath();const{width:o,height:a}=i.viewBox();e.rect(t.x-this._textAdditionalCropWidth,t.y,s+this._textAdditionalCropWidth,a),e.clip(),i.render(e,{targetViewBox:{x:t.x-(this._invertTextCropDirection?o-s-r+n:0),y:t.y,width:o,height:a}}),e.restore()}_drawBgCircle(e,t){const i=2*Math.PI;e.save(),e.beginPath(),e.fillStyle=this._colors.shadow,e.arc(t,t,t+1,0,i),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.fillStyle=this._colors.background,e.arc(t,t,t,0,i,!1),e.fill(),e.closePath(),e.restore()}_drawFillRectWithRoundedCorner(e,t,i,s,r,n,o){e.save(),(0,It.drawRoundRect)(e,t-1,i-1,s+2,r+2,n),e.fillStyle=this._backgroundShadowFillStyle(),e.fill(),e.closePath(),e.restore(),e.save(),(0,It.drawRoundRect)(e,t,i,s,r,null!=o?o:n),e.fillStyle=this._backgroundFillStyle(),e.fill(),e.closePath(),e.restore()}_tradeWithLogoBackgroundColor(){return""}_backgroundShadowFillStyle(){ +return this._colors.shadow}_backgroundFillStyle(){return this._colors.background}_drawLogoImage(e,t,i){const{width:s,height:r}=i.viewBox();i.render(e,{targetViewBox:{x:t.x,y:t.y,width:s,height:r}})}}class ci extends ai{constructor(e,t,i){super(),this.show=!1,this.width=0,this.height=0,this._ready=!1,this._layout=e,this._src=t,this._onReadyCallback=i,this._checkLayout();const s=new Image;this._img=s,this.show&&(s.addEventListener("load",(()=>{this.width=Math.round(s.width),this.height=Math.round(s.height),this._ready=!0,this._onReadyCallback&&this._onReadyCallback()})),s.crossOrigin="anonymous",s.src=this._src)}draw(e,t,i){this._topLeftPoint=e,this._ready&&(t.translate(e.x,e.y),t.drawImage(this._img,-.5,-.5,this.width,this.height))}_checkLayout(){switch(this._layout){case zt:case Ut:case Gt:case qt:case Kt:case Yt:this.show=!0;break;case Ft:case Wt:case Ht:case jt:case $t:this.show=!1}}}var hi=i(4454),di=i(94664);class ui{constructor(e,t){this._headerToolbar=e,this._dropdownId=t}applyOptions(e){this._headerToolbar.updateDropdown(this._dropdownId,e)}remove(){this._headerToolbar.removeDropdown(this._dropdownId)}}var pi=i(26843),_i=i(74047),mi=i(38119);class gi{constructor(e){this._symbolModel=e}getVisible(){return this._symbolModel.visible().value()}setVisible(e){return this._symbolModel.visible().setValue(e),this}getIcon(){return this._symbolModel.icon().value()}setIcon(e){return this._symbolModel.icon().setValue(e),this}getColor(){return this._symbolModel.color().value()}setColor(e){return this._symbolModel.color().setValue(e),this}getTooltip(){return this._symbolModel.tooltip().value()}setTooltip(e){return this._symbolModel.tooltip().setValue(e),this}getDropDownContent(){return this._symbolModel.tooltipContent().value()}setDropDownContent(e){return this._symbolModel.tooltipContent().setValue(e),this}}class fi{symbol(e){return new gi(this._model().getSymbolCustomStatus(e))}hideAll(){this._model().hideAll()}static getInstance(){return null===this._instance&&(this._instance=new fi),this._instance}_model(){return mi.CustomStatusModel.getInstance()}}fi._instance=null;var vi=i(97702),yi=i(19291);var Si,bi,wi,Ci=i(27514),Pi=i(35474),xi=i(79612),Ti=i(7507);(0,A.setClasses)();const Ii=(0,o.getChartingLibraryGlobalContext)(),Mi=(0,o.getChartingLibraryOwner)(),Ai=new class{constructor(e,t){this._updateDocumentHeight=e=>{"visual"===this._viewportType&&this._window.document.documentElement.style.setProperty("height",`${e}px`,"important")},this._window=e,this._fullscreenApi=new Re(e.document),this._viewportType=We.CheckMobile.iOS()&&!(0,Fe.isOnMobileAppPage)("any")&&this._window.visualViewport?"visual":"quirks","visual"===this._viewportType?this._viewport=(0,n.ensure)(this._window.visualViewport):this._viewport=this._window;const i=this._layoutSizeSensor=this._window.document.createElement("div");i.id="layout-size-sensor",i.style.position="fixed",i.style.top="0",i.style.left="0",i.style.right="0",i.style.bottom="0",i.style.pointerEvents="none",i.style.visibility="hidden",this._initFullscreen()}allocate(){this.free() +;const e=this._window.document,t=e.createElement("div");t.classList.add("js-rootresizer__contents"),t.style.position="relative",t.style.width="100%",t.style.height="100%",e.body.insertAdjacentElement("afterbegin",t),e.body.insertAdjacentElement("afterbegin",this._layoutSizeSensor),this._visibilityApi=new Ne(this._window.document);const i={alive:new O.WatchedValue(!0),fullscreenable:new O.WatchedValue(!0),container:new O.WatchedValue(t),width:new O.WatchedValue,height:new O.WatchedValue,availWidth:new O.WatchedValue,availHeight:new O.WatchedValue,visible:this._visibilityApi.isVisible,fullscreen:this._fullscreenApi.isFullscreen,remove:()=>{i.alive.setValue(!1)},attach:()=>{i.alive.setValue(!1),this._window.close()},requestFullscreen:()=>{this._requestFullscreen()},exitFullscreen:()=>{this._exitFullscreen()}};return i.alive.subscribe((e=>{e||i!==this._area||this.free()})),this._area=i,this._resizeHandler=()=>{const e=this._width(i)||800,t=this._height(i)||600;i.availHeight.setValue(t),i.availWidth.setValue(e),i.height.setValue(t),i.width.setValue(e)},this._area.height.subscribe(this._updateDocumentHeight,{callWithLast:!0}),this._resizeHandler(),this._viewport.addEventListener("resize",this._resizeHandler),new Be.ResizerDetacherState(i).bridge()}free(){if(this._resizeHandler&&(this._viewport.removeEventListener("resize",this._resizeHandler),this._resizeHandler=void 0),this._visibilityApi&&(this._visibilityApi.destroy(),this._visibilityApi=void 0),this._area){const e=this._area;this._area=void 0,e.height.unsubscribe(this._updateDocumentHeight),e.alive.setValue(!1);const t=e.container.value(),i=null==t?void 0:t.parentElement;i&&(i.removeChild(t),i.removeChild(this._layoutSizeSensor))}}_height(e){if("visual"===this._viewportType)return this._layoutSizeSensor.clientHeight;return e.container.value().clientHeight}_width(e){return e.container.value().clientWidth}_requestFullscreen(){this._fullscreenApi.enter()}_exitFullscreen(){this._fullscreenApi.exit()}_initFullscreen(){this._fullscreenApi.isFullscreen.subscribe((e=>{this._resizeHandler&&this._resizeHandler()}))}}(window),Li=new class{constructor(e){this._processVisibility=e=>{const t=e.container.value();return this.affectsLayout(e.name)?(t&&t.classList.toggle("js-hidden",!1),!0):(t&&t.classList.toggle("js-hidden",!0),!1)},this._setWidth=(e,t,i)=>{let s=i;this._fullscreenArea!==e.name&&(e.availWidth.setValue(i),e.canNegotiate.width&&(s=He(i,e.negotiations.width))),t||(s=0);const r=e.container.value();return r&&t&&(r.style.width=s+"px"),e.width.setValue(s),s},this._setHeight=(e,t,i)=>{let s=i;this._fullscreenArea!==e.name&&(e.availHeight.setValue(i),e.canNegotiate.height&&(s=He(i,e.negotiations.height))),t||(s=0);const r=e.container.value();return r&&t&&(r.style.height=s+"px"),e.height.setValue(s),s};const t=e.container.value();if(!t)throw new Error("bridge.container.value() must be an element");this._container=t,this._availableAreas=["left","tradingpanel","right","top","bottom","center","topleft","extratop"],this._areas={},this._bridge=e,this._width=e.width, +this._height=e.height,this._width.subscribe((()=>this.recalculate())),this._height.subscribe((()=>this.recalculate())),this._bridge.visible.subscribe((()=>this._updateVisibility())),this._bridge.fullscreen.subscribe((()=>this._onParentFullscreenChange())),this.recalculate()}allocate(e){const t=e&&e.areaName;if(-1===this._availableAreas.indexOf(t))throw new Error("unknown options.areaName");this.free(t);const i=this._createDOM(t),s={name:t,canNegotiate:{width:"left"===t||"right"===t||"tradingpanel"===t||"topleft"===t,height:"top"===t||"bottom"===t||"topleft"===t||"extratop"===t},negotiations:{width:[],height:[]},remove:()=>{for(const e in this._areas)this._areas[e]===s&&this.free(e)},negotiateWidth:e=>{if(!s.canNegotiate.width)return;const t=ze(e);Ue(s.negotiations.width,t)||(s.negotiations.width=t,this.recalculate())},negotiateHeight:e=>{if(!s.canNegotiate.height)return;const t=ze(e);Ue(s.negotiations.height,t)||(s.negotiations.height=t,this.recalculate())},requestFullscreen:()=>{this._fullscreenArea||("right"!==t&&"center"!==t||(this._fullscreenArea=t),"center"===t&&this._bridge.requestFullscreen(),this._updateFullscreen())},exitFullscreen:()=>{t===this._fullscreenArea&&(this._fullscreenArea=void 0,"center"===t&&this._bridge.exitFullscreen(),this._updateFullscreen())},width:new O.WatchedValue,height:new O.WatchedValue,availWidth:new O.WatchedValue,availHeight:new O.WatchedValue,alive:new O.WatchedValue(!0),container:new O.WatchedValue(i),visible:new O.WatchedValue(!0),fullscreen:new O.WatchedValue(!1),fullscreenable:new O.WatchedValue("right"===t||"center"===t),rdState:new Be.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[t]=s,s.rdState.owner.subscribe((e=>{const i=s.container.value();if(e!==s)i&&(i.innerHTML="",i.parentElement&&i.parentElement.removeChild(i));else{let e=null;for(let i=this._availableAreas.indexOf(t);i--;){const t=this._availableAreas[i];if(this.affectsLayout(t)){e=this._areas[t].container.value();break}}i&&(e&&i.parentElement?i.insertAdjacentElement("afterend",e):this._container.appendChild(i))}this.recalculate()}),{callWithLast:!0}),s.rdState.bridge()}free(e){const t=this._areas[e];if(!t)return;this._areas[e]=void 0;const i=t.container.value();i&&i.parentElement&&i.parentElement.removeChild(i),t.alive.setValue(!1)}recalculate(){const e={};this._recalcSingleRunToken=e;const t=this._areas.topleft,i=this._areas.left,s=this._areas.tradingpanel,r=this._areas.right,n=this._areas.top,o=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),h=this._height.value();let d=0,u=0,p=0,_=0,m=0,g=0,f=0,v=0;if(e===this._recalcSingleRunToken&&l){const e=this._processVisibility(l);v=this._setHeight(l,e,h),this._setWidth(l,e,c)}if(e===this._recalcSingleRunToken&&t){const e=this._processVisibility(t);f=this._setHeight(t,e,h),g=this._setWidth(t,e,c);const i=t.container.value();e&&i&&(i.style.top=v+"px")}let y=0;if(e===this._recalcSingleRunToken&&n){const e=this._processVisibility(n),t=n.container.value();e&&t&&(t.style.left=g+"px",t.style.top=v+"px");const i=c-g +;this._setWidth(n,e,i),d=this._setHeight(n,e,h),d&&(y=1)}if(e===this._recalcSingleRunToken&&i){const e=this._processVisibility(i),t=Math.max(f,d);p=this._setWidth(i,e,c),p&&(p+=4),p&&1===y&&(y=4);const s=i.container.value();e&&s&&(s.style.top=t+v+y+"px"),this._setHeight(i,e,h-t-v)}if(e===this._recalcSingleRunToken&&s){const e=this._processVisibility(s);let t=c-p;je||(t-=300),m=this._setWidth(s,e,t),m&&1===y&&(y=4),this._setHeight(s,e,h-v-d-y)}if(e===this._recalcSingleRunToken&&r){const e=this._processVisibility(r);let t=c-p-m;je||(t-=300),_=this._setWidth(r,e,t),_&&1===y&&(y=4),this._setHeight(r,e,h-v-d-y);const i=r.container.value();e&&i&&(i.style.top=d+v+y+"px")}const S=m+_;let b=0,w=c-p-m-_-(S?4:0);const C=Boolean(m||!S);if(!_&&m&&(w+=4),e===this._recalcSingleRunToken&&o){const e=this._processVisibility(o),t=o.container.value();e&&t&&(t.style.left=p+"px",t.classList.toggle("no-border-top-left-radius",!p),t.classList.toggle("no-border-top-right-radius",C)),this._setWidth(o,e,w);const i=h-v;b=Math.min(300,i-0),u=this._setHeight(o,e,i)+4}const P=Boolean(d&&(p||S));if(this._container.classList.toggle("layout-with-border-radius",P),e===this._recalcSingleRunToken&&a){const e=this._processVisibility(a),t=a.container.value();e&&t&&(t.style.left=p+"px",t.style.top=d+v+y+"px",t.classList.toggle("no-border-bottom-left-radius",!u||!p),t.classList.toggle("no-border-bottom-right-radius",C||!u),t.classList.toggle("no-border-top-left-radius",Boolean(!p&&S)),t.classList.toggle("no-border-top-right-radius",C)),this._setWidth(a,e,w);const i=h-d-u-v-y;this._setHeight(a,e,Math.max(i,b))}if(e===this._recalcSingleRunToken&&s&&this.affectsLayout("tradingpanel")){const e=s.container.value();e&&(e.style.right=m&&_?`${_+4}px`:`${_}px`,e.style.top=v+d+y+"px",e.style.borderTopRightRadius=P&&_?"4px":"0px")}e===this._recalcSingleRunToken&&this._updateVisibility()}affectsLayout(e){const t=this._areas[e];if(!t)return!1;if(t.rdState.owner.value()!==t)return!1;if(this._fullscreenArea&&this._fullscreenArea!==e)return $e(e);if(this._width.value()<=567||this._height.value()<=445&&!qe){if(!["center","top","left","topleft","extratop"].includes(e))return!1}return!0}_updateVisibility(){const e=this._bridge.visible.value();for(let t=0;t{Ii.ChartApiInstance.start()})),"function"==typeof Vi){const e=Vi({Std:ut.Std});e&&e.then?e.then((e=>{if(!Array.isArray(e))return console.warn("custom_indicators_getter should be a function that returns a Promise object which result is an array of custom indicators"),void Bi.resolve();const t=Ii.JSServer;t.studyLibrary.push.apply(t.studyLibrary,e),Bi.resolve(),console.log("{0} custom indicators loaded.".format(e.length))})).catch((e=>{console.warn("Error loading custom indicators "+e),Bi.resolve()})):(console.warn("custom_indicators_getter should be a function that returns a Promise object"),Bi.resolve())}else Bi.resolve();Ii.widgetReady=e=>{F.subscribe("onChartReady",e,null)};const Gi=null!==(wi=null===(bi=Di.theme)||void 0===bi?void 0:bi.toLowerCase())&&void 0!==wi?wi:pi.StdTheme.Light;var qi;function $i(e){Ii.__defaultsOverrides=Ii.__defaultsOverrides||{},(0,_e.deepExtend)(Ii.__defaultsOverrides,e),void 0!==TradingView.defaultProperties&&void 0!==TradingView.defaultProperties.chartproperties&&((0,h.applyDefaultsOverrides)(TradingView.defaultProperties.chartproperties),(0,h.applyDefaultOverridesToLinetools)())}qi=Gi,L.themes[qi]&&(0,k.setTheme)(qi),async function(e){if(!Fi||void 0===e)return;try{const{overrideStandardThemes:t}=await i.e(2413).then(i.bind(i,57626));t(e)}catch(e){console.error("Error applying custom themes",e)}}(Mi.customThemes).then(Ni.resolve).catch(Ni.resolve),Ii.applyStudiesOverrides=e=>{var t,i;e&&(Ii.chartWidgetCollection?null===(i=(t=Ii.chartWidgetCollection).applyStudiesOverrides)||void 0===i||i.call(t,e):at.StudyMetaInfo.mergeDefaultsOverrides(e))},Ii.applyOverrides=e=>{$i(e),Ii.chartWidgetCollection&&Ii.chartWidgetCollection.applyOverrides(e)},Ii.doWhenApiIsReady=e=>{Ii.tradingViewApi?e():Ri.promise.then(e)},Ii.applyTradingCustomization=e=>{if(e.order)for(const t in e.order)TradingView.defaultProperties.linetoolorder[t]=e.order[t];if(e.position)for(const t in e.position)TradingView.defaultProperties.linetoolposition[t]=e.position[t]},Ii.changeTheme=(e,t)=>{const i=L.themes[e.toLowerCase()] +;return i?Ii.tradingViewApi.themes().setStdTheme(i.name,!0,t&&t.disableUndo):Promise.resolve()},Ii.getTheme=()=>Ii.tradingViewApi.themes().getCurrentThemeName(),Ii.customThemes=async()=>{if(!Fi)return Promise.reject(new Error("The library_custom_color_themes feature must be enabled to use the custom themes API"));return new((await i.e(2413).then(i.bind(i,20688))).CustomThemesApi)},Ii.is_authenticated=!1;JSON.parse(Ii.urlParams.brokerConfig);a.t(null,void 0,i(94566)),a.t(null,void 0,i(92800)),a.t(null,void 0,i(44676));let Ki=null;const Yi=(0,pe.createDeferredPromise)();let Zi;const Xi=()=>{var e;if(l.setEnabled("charting_library_export_chart_data",!Ii.configurationData.is_tradingview_data),l.setEnabled("charting_library_debug_mode","true"===Di.debug||l.enabled("charting_library_debug_mode")),l.setEnabled("chart_property_page_trading",!1),l.enabled("remove_library_container_border")){const e=document.querySelector("#library-container");null!==e&&(e.style.border="0px",e.style.padding="1px")}l.enabled("no_min_chart_width")&&(document.body.style.minWidth="0px"),null!=Di.studiesOverrides&&at.StudyMetaInfo.mergeDefaultsOverrides(JSON.parse(Di.studiesOverrides)),(0,n.assert)(void 0===TradingView.defaultProperties,"Default properties are inited before applying overrides"),$i(JSON.parse(Di.overrides));const t=Di.numeric_formatting?JSON.parse(Di.numeric_formatting):void 0;t&&("string"==typeof t.decimal_sign&&(he.formatterOptionsLibraryOverrides.decimalSign=t.decimal_sign[0]),"string"==typeof t.grouping_separator&&(he.formatterOptionsLibraryOverrides.groupingSeparator=t.grouping_separator[0])),Ii.ChartApiInstance=new(ot())(Mi.datafeed);const s=Mi.customFormatters;s&&(s.timeFormatter&&(de.customFormatters.timeFormatter=s.timeFormatter),s.dateFormatter&&(de.customFormatters.dateFormatter=s.dateFormatter),s.tickMarkFormatter&&(de.customFormatters.tickMarkFormatter=s.tickMarkFormatter),s.priceFormatterFactory&&(de.customFormatters.priceFormatterFactory=s.priceFormatterFactory),s.studyFormatterFactory&&(de.customFormatters.studyFormatterFactory=s.studyFormatterFactory)),Mi.customTimezones&&ke.instance().addTimezones(Mi.customTimezones),Ii.ChartApiInstance.setStudiesAccessController(Ii.ChartApiInstance.createStudiesAccessController(Di.studiesAccess));const o=Di.chartContent?JSON.parse(Di.chartContent).json:void 0,c=Di.chartContentExtendedData?JSON.parse(Di.chartContentExtendedData):o?o.extendedData:void 0,h=Di.interval||"D",d=function(e){const t=/(\d+)(\w+)/;return e.map((e=>{const s=(0,n.ensureNotNull)(t.exec(e.text)),r=s[2].toLowerCase(),o=parseInt(s[1]),l="y"===r?12*o+"M":o+r,c=Ve.Interval.parse(e.resolution);return{text:e.title||{y:a.t(null,{plural:"{count}y",count:o,context:"short_N_year"},i(46766)),m:a.t(null,{plural:"{count}m",count:o,context:"short_N_month"},i(58590)),d:a.t(null,{plural:"{count}d",count:o,context:"short_N_day"},i(47801))}[r]||`${o}${r}`,description:e.description||"",value:{value:l.toUpperCase(),type:"period-back"},targetResolution:c.value(),requiresIntraday:c.isIntraday()}}))}(JSON.parse(Di.timeFrames)),u={ +resizerBridge:ji,padding:l.enabled("border_around_the_chart")?2:0,content:o,widgetOptions:{addToWatchlistEnabled:!1,hideIdeas:!0,addVolume:(0,n.ensureDefined)(Ii.ChartApiInstance.studiesAccessController).isToolEnabled("Volume"),muteSessionErrors:!0,timezone:Di.timezone,defSymbol:null!==(e=Di.symbol)&&void 0!==e?e:"",defInterval:o?"":h,compareSymbols:Di.compareSymbols&&JSON.parse(Di.compareSymbols),defTimeframe:(p=Mi.timeframe,p?"string"==typeof p?p:{...p,type:"time-range"}:p),paneContextMenuEnabled:l.enabled("pane_context_menu"),paneContextMenu:{mainSeriesTrade:ki},priceScaleContextMenuEnabled:l.enabled("scales_context_menu"),currencyConversionEnabled:l.enabled("pricescale_currency"),unitConversionEnabled:l.enabled("pricescale_unit"),legendWidgetEnabled:l.enabled("legend_widget"),legendWidget:{contextMenu:{settings:l.enabled("show_chart_property_page"),showOpenMarketStatus:l.enabled("display_market_status")}},sourceStatusesWidget:{errorSolution:!1},marketStatusWidgetEnabled:l.enabled("display_market_status"),chartWarningWidget:{subscriptionFullInfo:!1},timeScaleWidget:{contextMenuEnabled:l.enabled("scales_context_menu"),timezoneMenuEnabled:l.enabled("timezone_menu"),priceAxisLabelsOptions:{showLabels:l.enabled("main_series_scale_menu")}},timeScale:{preserveBarSpacing:!1,lockVisibleTimeRangeOnResize:l.enabled("lock_visible_time_range_on_resize"),rightBarStaysOnScroll:l.enabled("right_bar_stays_on_scroll"),minBarSpacing:Di.time_scale&&JSON.parse(Di.time_scale).min_bar_spacing},goToDateEnabled:l.enabled("go_to_date"),crossHair:{menuEnabled:l.enabled("chart_crosshair_menu")},handleScale:{mouseWheel:l.enabled("mouse_wheel_scale"),pinch:l.enabled("pinch_scale"),axisPressedMouseMove:{time:l.enabled("axis_pressed_mouse_move_scale"),price:l.enabled("axis_pressed_mouse_move_scale")}},handleScroll:{mouseWheel:l.enabled("mouse_wheel_scroll"),pressedMouseMove:l.enabled("pressed_mouse_move_scroll"),horzTouchDrag:l.enabled("horz_touch_drag_scroll"),vertTouchDrag:l.enabled("vert_touch_drag_scroll")},shiftVisibleRangeOnNewBar:l.enabled("shift_visible_range_on_new_bar"),croppedTickMarks:l.enabled("cropped_tick_marks"),countdownEnabled:l.enabled("countdown"),indicatorsDialogShortcutEnabled:l.enabled("insert_indicator_dialog_shortcut")},seriesControlBarEnabled:l.enabled("timeframes_toolbar"),seriesControlBar:{timeFramesWidgetEnabled:!0,timeFramesWidget:{goToDateEnabled:l.enabled("go_to_date"),availableTimeFrames:(e,t)=>{if(!e)return[];if(t!==dt.STATUS_DELAYED&&t!==dt.STATUS_DELAYED_STREAMING&&t!==dt.STATUS_EOD&&t!==dt.STATUS_READY)return[];return d.filter((t=>!(t.requiresIntraday&&!e.has_intraday)&&!(e.supported_resolutions&&!e.supported_resolutions.includes(t.targetResolution))))}},timeWidgetEnabled:!0,timeWidget:{timezoneMenuEnabled:l.enabled("timezone_menu")},adjustForDividendsButtonEnabled:!1,sessionIdButtonEnabled:l.enabled("pre_post_market_sessions"),backAdjustmentButtonEnabled:!1,settlementAsCloseButtonEnabled:!1,percentageScaleButtonEnabled:!0,logScaleButtonEnabled:!0,autoScaleButtonEnabled:!0,fullscreenButtonEnabled:!0, +mobileChangeLayoutEnabled:!1},globalEvents:!0,snapshotUrl:Di.snapshotUrl,mobileForceChartMaximizeEnabled:!1,saveChartEnabled:l.enabled("save_shortcut")};var p;Oi&&((0,Qe.createFavoriteDrawingToolbar)(),u.widgetOptions.isDrawingToolbarVisible=x.isDrawingToolbarVisible),c&&(u.metaInfo={id:c.uid,name:c.name,description:c.description,uid:c.uid,username:""}),Mi.additionalSymbolInfoFields&&(0,hi.setAdditionalSymbolInfoFields)(Mi.additionalSymbolInfoFields);const _=Mi.symbolSearchComplete;_&&(0,di.setSymbolSearchCompleteOverrideFunction)(_);const m=Ii.chartWidgetCollection=new(Je())(u);let g=!1;m.onAboutToBeDestroyed.subscribe(null,(()=>{g=!0}),!0),function(e){e.addCustomSource("branding",((t,i)=>{const s=(0,pt.combine)(((e,t)=>{const s=null!=e?e:t;return null!==s&&s.hasModel()&&s.model().model()===i}),e.maximizedChartWidget().weakReference(),e.leftBottomChartWidget().weakReference());return new ii(t,i,s.ownership())}),_t.CustomSourceLayer.Topmost)}(m),Ii.studyMarket=new ue(m),Ze.registerService(Ye.CHART_WIDGET_COLLECTION_SERVICE,m),m.activeChartWidget.subscribe((e=>{F.emit("activeChartChanged",m.getAll().indexOf(e))})),Ii.saver=new N.ChartSaver(m);const f=new X(m,Ii.saver);m.setSaveChartService(f);const y=new se(m);Ii.chartWidget=m.activeChartWidget.value(),Ii.pro=new TradingView.Pro;const S=function(e){if(!zi)return null;const t=new M.ChartChangesWatcher(e.chartWidgetCollection,Ii.saver,F),s=JSON.parse(Di.favorites);s.intervals=s.intervals.map((e=>{let t=""+e;return t.match(/1[DWMYdwmy]/)&&(t=t.slice(1)),t})),l.enabled("study_templates")&&(Zi=new le({chartWidgetCollection:e.chartWidgetCollection}));let r;const n=Di.header_widget_buttons_mode;"fullsize"===n&&(r=["full"]);"compact"===n&&(r=["small"]);const o=(0,Ci.shouldShowQuickSearchOnLib)()?function(e){const t=t=>Promise.all([i.e(711),i.e(3060),i.e(2603),i.e(7528),i.e(6246),i.e(5514),i.e(7811),i.e(412),i.e(7399),i.e(2248),i.e(7769),i.e(7125),i.e(8077),i.e(5546),i.e(3114),i.e(5666),i.e(4632),i.e(8432),i.e(3204),i.e(1729),i.e(8073),i.e(9486),i.e(4959),i.e(8732),i.e(1335),i.e(1782),i.e(2227),i.e(3443),i.e(6014),i.e(2079),i.e(3098),i.e(2751),i.e(1890),i.e(2157),i.e(9754)]).then(i.bind(i,71043)).then((i=>{const s=new(0,i.GlobalSearchDialogRenderer)(e);return null!==Ee&&Ee.hide(),s.show(t),Ee=s,s}));return(0,E.createGroup)({desc:"GlobalSearch"}).add({desc:"Open",hotkey:E.Modifiers.Mod+75,handler:()=>t()}),t}(e.loadChartService):void 0;return new P(new v,{chartSaver:Ii.saver,chartApiInstance:Ii.ChartApiInstance,chartWidgetCollection:e.chartWidgetCollection,defaultFavoriteStyles:s.chartTypes,defaultFavoriteIntervals:s.intervals,resizerBridge:zi,studyMarket:Ii.studyMarket,studyTemplates:Zi,allowedModes:r,saveChartService:e.saveChartService,loadChartService:e.loadChartService,chartChangesWatcher:t,onClick:is,snapshotUrl:e.snapshotUrl,openGlobalSearch:o})}({chartWidgetCollection:m,saveChartService:f,loadChartService:y,snapshotUrl:Di.snapshotUrl});null!==S?S.load().then((e=>{Ki=e.getComponent(),Yi.resolve()})):(Yi.promise.catch((()=>{})),Yi.reject("header widget is not loaded")) +;const b=function(e){if(Ui){const t=Di.toolbarbg&&/^[0-9a-f]+$/i.test(Di.toolbarbg)?String(Di.toolbarbg):void 0;if(t){const e=document.createElement("style");e.textContent="body,.chart-controls-bar,#footer-chart-panel{background-color:#"+t+" !important}",document.head.appendChild(e)}return new I({bgColor:t,chartWidgetCollection:e,drawingsAccess:Di.drawingsAccess?JSON.parse(Di.drawingsAccess):void 0,resizerBridge:Ui,onClick:is})}return null}(m),w=null;Ii.tradingViewApi=new(ct())({chartWidgetCollection:m,chartApiInstance:Ii.ChartApiInstance,saveChartService:f,loadChartService:y,studyMarket:null});if(ce.linking.bindToChartWidgetCollection(m),isNaN(Di.studyCountLimit)||(TradingView.STUDY_COUNT_LIMIT=Math.max(2,+(0,n.ensureDefined)(Di.studyCountLimit))),!isNaN(Di.ssreqdelay)){const e=Math.max(0,+(0,n.ensureDefined)(Di.ssreqdelay));(0,ht.setSearchRequestDelay)(e)}Ii.ChartApiInstance.connect(),(async()=>{const{default:e}=await Promise.all([i.e(1595),i.e(3060),i.e(2603),i.e(5514),i.e(7399),i.e(2248),i.e(7769),i.e(7125),i.e(55),i.e(5666),i.e(4632),i.e(8432),i.e(8073),i.e(6107),i.e(3645),i.e(8732),i.e(1227),i.e(1335),i.e(5877),i.e(1538),i.e(2227),i.e(361),i.e(1890),i.e(2157),i.e(3504),i.e(2306)]).then(i.t.bind(i,36074,23));g||(Ii.lineToolPropertiesToolbar=new e(m))})();const C=document.querySelector(".tv-content");null!==C&&C.addEventListener("contextmenu",(e=>{e.target instanceof Element&&"input"!==e.target.tagName.toLowerCase()&&"textarea"!==e.target.tagName.toLowerCase()&&e.preventDefault()})),Ri.resolve(),m.undoHistory.undoStack().onChange().subscribe(null,(0,r.default)((e=>{(null==e?void 0:e.affectsState())&&F.emit("onAutoSaveNeeded")}),1e3*(Number(Di.autoSaveDelay)||5),{leading:!1,trailing:!0}));let T=!1;function A(){b&&b.load(Ei.signal),w&&w.load(Ei.signal).then((e=>{Ii.footerWidget=e.getComponent()}))}Ii.chartWidget.withModel(null,(()=>{Ii.ChartApiInstance.on("realtime_tick",(e=>{F.emit("onTick",e)}));if(!L.savedThemeName()&&Gi){const e=L.getStdTheme(Gi);e&&e.content&&void 0===o&&m.applyTheme({theme:e.content,onlyActiveChart:!1,restoreNonThemeDefaults:!1,themeName:Gi,standardTheme:!0,syncState:!0,noUndo:!0}).then((()=>Ii.applyOverrides(Ii.__defaultsOverrides)))}if(l.enabled("charting_library_debug_mode")&&F.subscribeToAll(((...e)=>{console.log(`${(new Date).toISOString()} Event "${e[0]}", arguments: ${JSON.stringify(e.slice(1))}`)})),T)return;T=!0,rt(m),function(e,t){const s=a.t(null,void 0,i(37367)).format({emoji:"👍"}),r=a.t(null,void 0,i(69804)).format({emoji:"👍"}),o=a.t(null,void 0,i(6655)).format({emoji:"👍"});F.on("onServerScreenshotCopiedToClipboard",(()=>h(s)),null),F.on("onClientScreenshotCopiedToClipboard",(()=>h(r)),null),F.on("onServerScreenshotEmbedCodeCopiedToClipboard",(()=>h(o)),null);let l=null;const c=e.getContainer();function h(e){l?l.show(e):Promise.all([i.e(7528),i.e(7353),i.e(2227),i.e(92)]).then(i.bind(i,1524)).then((i=>{l||(l=new i.ChartScreenshotHintRenderer((0,n.ensureNotNull)(c),{bottomPadding:t.seriesControlBarEnabled}),l.show(e))}))}}(m,{ +seriesControlBarEnabled:l.enabled("timeframes_toolbar")});_i.WatermarkApi.getInstance().setWidgetCollection(Ii.chartWidgetCollection)})),m.getAll().some((e=>e.isInitialized()))?A():function(e,t){const i=e.getAll(),s=()=>{t(),i.forEach((e=>{e.chartWidgetInitialized().unsubscribe(null,s)}))};i.forEach((e=>{e.chartWidgetInitialized().subscribe(null,s,!0)}))}(m,A),F.subscribe("chart_load_requested",(e=>{Ii.tradingViewApi.loadChart({json:JSON.parse(e.content),extendedData:e})}),null)};window.addEventListener("unload",(()=>{Ei.abort(),Ii.widgetbar&&(Ii.widgetbar.destroy(),Ii.widgetbar=null),Ii.chartWidgetCollection&&(Ii.chartWidgetCollection.destroy(),Ii.chartWidgetCollection=null),Ii.ChartApiInstance&&Ii.ChartApiInstance.disconnect(),(0,Ke.destroyQuoteSessions)(),Ii.ChartApiInstance&&(Ii.ChartApiInstance.destroy(),Ii.ChartApiInstance=null)})),l.enabled("saveload_storage_customization")&&(Mi.saveLoadAdapter?D.setCustomAdapter(Mi.saveLoadAdapter):Ii.urlParams.chartsStorageUrl&&Ii.urlParams.clientId?D.initialize(Ii.urlParams.clientId,Ii.urlParams.userId,Ii.urlParams.chartsStorageUrl,Ii.urlParams.chartsStorageVer||"1.0"):(l.setEnabled("saveload_storage_customization",!1),l.setEnabled("header_saveload",!1)));const Ji=(0,pe.createDeferredPromise)();function Qi(){Ji.resolve()}Mi.loadLastChart&&l.enabled("saveload_storage_customization")?D.getCharts().then((e=>{if(0===e.length)return void Qi();const t=e.sort(((e,t)=>t.modified_iso-e.modified_iso))[0];D.getChartContent(t).then((e=>{const t=e,i=JSON.parse(t.content);i.extendedData=e,Di.chartContent=JSON.stringify({json:i}),Qi()})).catch(Qi)})).catch(Qi):Qi();const es=(0,Ti.loadLineToolsSynchronizer)(),ts=(0,pe.createDeferredPromise)();function is(){const e=TradingView.bottomWidgetBar;e&&e.turnOffMaximize()}Promise.all([ts.promise,Ji.promise,Ii.loadedCustomCss,es,Ni.promise]).then((()=>{const e=document.querySelector(".loading-indicator");if(e&&(e.style.display="none"),setTimeout(Xi,0),l.enabled("14851")&&Math.random()<=.02){t=window,i=document,s="script",r="ga",t.GoogleAnalyticsObject=r,t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=Number(new Date),o=i.createElement(s),a=i.getElementsByTagName(s)[0],o.async=1,o.src="//www.google-analytics.com/analytics.js",a.parentNode.insertBefore(o,a);const e=(0,n.ensureNotNull)(document.URL.match(new RegExp("(:?.*://)([^/]+)/.*")))[2];Ii.ga("create","UA-112911840-1","auto"),Ii.ga("set","anonymizeIp",!0),Ii.ga("set",{hostname:e,page:e,referrer:e}),Ii.ga("send","pageview")}var t,i,s,r,o,a})),(()=>{let e=!0;Mi.datafeed.onReady((t=>{e&&console.warn("`onReady` should return result asynchronously. Use `setTimeout` with 0 interval to execute the callback function."),Ii.configurationData=t,ts.resolve()})),e=!1})(),Ii.createShortcutAction=(()=>{const e=E.createGroup({desc:"API"});return(t,i)=>{var s;e.add({hotkey:(s=t,"number"==typeof s?s:"string"==typeof s?R(s.split("+")):Array.isArray(s)?R(s):0),handler:i})}})(),Ii.initializationFinished=()=>{Ii.chartWidgetCollection.undoHistory.clearStack()},Ii.headerReady=()=>Yi.promise, +Ii.dispatchEvent(new Event("innerWindowLoad")),Ii.createButton=e=>{if(null===Ki)throw new Error("Cannot create button: header widget is not ready or is not loaded - use `headerReady` to wait until header is ready");return(e=e||{}).align=e.align||"left",e.useTradingViewStyle=e.useTradingViewStyle||!1,Ki.addButton((0,me.randomHash)(),e)},Ii.createDropdown=e=>{if(void 0===e)throw new Error("Cannot create dropdown without any parameters. Please refer to the documentation");void 0===e.align&&(e.align="left");const t=(0,me.randomHash)();return Ki?(Ki.addDropdown(t,e),Promise.resolve(new ui(Ki,t))):Yi.promise.then((()=>((0,n.ensureNotNull)(Ki).addDropdown(t,e),new ui((0,n.ensureNotNull)(Ki),t))))},Ii.getAllFeatures=()=>{const e=l.getAllFeatures();return Object.keys(e).forEach((t=>{isNaN(parseFloat(t))||delete e[t]})),e},Ii.getNavigationButtonsVisibility=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)((0,fe.property)()))),Ii.getPaneButtonsVisibility=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)((0,ve.property)()))),Ii.getDateFormat=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)(ye.dateFormatProperty))),Ii.getTimeHoursFormat=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)(Se.timeHoursFormatProperty))),Ii.getCurrencyAndUnitVisibility=(0,s.default)((()=>(0,ge.convertPropertyToWatchedValue)((0,De.currencyUnitVisibilityProperty)()))),Ii.customSymbolStatus=()=>fi.getInstance();Ii.urlParams.debugBroker,new Set(["connectionStatus"]);const ss=Di.locale||"en",rs=Pi.AriaChartDescription.getInstance();rs.createElement(document),rs.setLocale(ss),Ii.customChartDescriptionFunction&&rs.setCustomProvider(Ii.customChartDescriptionFunction);const ns=xi.AriaCrosshairPriceDescription.getInstance();ns.createElement(document),ns.setLocale(ss),function(){const e=l.enabled("accessible_keyboard_shortcuts")?(0,V.humanReadableHash)(9):`${(0,V.humanReadableModifiers)(V.Modifiers.Alt,!1)} + ${(0,V.humanReadableHash)(90)}`,t=`${(0,V.humanReadableModifiers)(V.Modifiers.Mod,!1)} + ${(0,V.humanReadableHash)(75)}`,s=a.t(null,void 0,i(7697)),r=[a.t(null,{replace:{shortcut:e}},i(85166)),a.t(null,{replace:{shortcut:t}},i(57959)),a.t(null,void 0,i(36332)),a.t(null,void 0,i(9687)),a.t(null,void 0,i(40490)),a.t(null,void 0,i(55382))],n=document.createElement("p");n.innerText=s;const o=document.createElement("ul");r.forEach((e=>{const t=document.createElement("li");t.innerText=e,o.appendChild(t)}));const c=document.createElement("div");c.setAttribute("role","contentinfo"),c.setAttribute("aria-hidden","false"),c.style.fontSize="0",c.appendChild(n),c.appendChild(o),document.body.insertBefore(c,document.body.firstChild)}(),new vi.Action({actionId:"UnknownAction",options:{label:"",onExecute:()=>{window.dispatchEvent(new CustomEvent("keyboard-navigation-activation",{bubbles:!0}));const[e]=Array.from(document.querySelectorAll('button:not([disabled]):not([aria-disabled]):not([tabindex="-1"]), input:not([disabled]):not([aria-disabled]):not([tabindex="-1"]), [tabindex]:not([disabled]):not([aria-disabled]):not([tabindex="-1"])')).filter((0, +yi.createScopedVisibleElementFilter)(document.documentElement)).sort(yi.navigationOrderComparator);void 0!==e&&e.focus()},hotkeyHash:l.enabled("accessible_keyboard_shortcuts")?9:E.Modifiers.Alt+90,hotkeyGroup:(0,E.createGroup)({desc:"Global shortcuts"})}})},36986:(e,t,i)=>{"use strict";function s(){return window}function r(){const e=s();return e.parent[e.urlParams.uid]}i.d(t,{getChartingLibraryGlobalContext:()=>s,getChartingLibraryOwner:()=>r})},86129:(e,t,i)=>{e=i.nmd(e),TradingView.cleanButAmpersand=function(e,t){var i=t?["&"]:["&"];return TradingView.clean(e,t,i)},TradingView.strip_tags=function(e){return e&&e.replace?e.replace(/(<([^>]+)>)/gi,""):e},TradingView.encodeSpread=function(e){return encodeURIComponent(e)},TradingView.clean=function(e,t,i){var s=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["'","'"]],r=e;if(!e||!e.replace)return r;for(var n=0;n{"use strict";i.r(t);var s=i(21097),r=i(51768),n=i(76422),o=i(38780);function a(e,t=!1){"loading"!==document.readyState?t?setTimeout((()=>e()),1):e():document.addEventListener("DOMContentLoaded",(()=>e()))}new Promise((e=>{a(e)}));function l(e,t="x"){let i=!1;return"x"!==t&&"both"!==t||(i=i||e.offsetWidth(t.nodeType===Node.TEXT_NODE&&e.push(t.textContent||""),e)),[]).join("").trim()),i}function u(e,t){let i=!1;const s=e.children;for(let e=0;e{document.addEventListener("mouseenter",(e=>{const t=e.target;if(t instanceof HTMLElement&&t.matches(".apply-overflow-tooltip")){const e=h(t);if(t.matches(".apply-overflow-tooltip--check-children-recursively")){if(!c(t,e))return}else if(t.matches(".apply-overflow-tooltip--check-children")){if(!u(t,e))return}else if(!l(t,e))return;(0,o.showOnElement)(t,{text:d(t)});const i=()=>{(0,o.hide)(),["mouseleave","mousedown"].forEach((e=>t.removeEventListener(e,i)))};["mouseleave","mousedown"].forEach((e=>t.addEventListener(e,i)))}}),!0),document.addEventListener("focus",(e=>{const t=e.target;if(t instanceof HTMLElement&&(t.matches(".apply-overflow-tooltip-focus")||t.querySelector(".apply-overflow-tooltip-focus"))){ +const e=t.matches(".apply-overflow-tooltip")?t:t.querySelector(".apply-overflow-tooltip"),i=h(e);if(e.matches(".apply-overflow-tooltip--check-children-recursively")){if(!c(e,i))return}else if(e.matches(".apply-overflow-tooltip--check-children")){if(!u(e,i))return}else if(!l(e,i))return;(0,o.showOnElement)(t,{text:d(e)});const s=()=>{(0,o.hide)(),t.removeEventListener("blur",s)};t.addEventListener("blur",s)}}),!0)}));var p=i(52033),_=i(11417);var m=i(31054),g=i(95171),f=i(3343),v=i(19291);class y{constructor(){this._handleMouseDown=()=>{this._forwardTab=void 0},this._handleKeyDown=e=>{this._forwardTab=void 0,[9,f.Modifiers.Shift+9].includes((0,f.hashFromEvent)(e))&&(this._forwardTab=!e.shiftKey)},this._handleFocus=e=>{const t=e.target;if(void 0===this._forwardTab||!(t instanceof HTMLElement))return;const i=this._findDeepestFocusTrapElement(document.documentElement);if(!(i instanceof HTMLElement)||!i||i.contains(t))return;e.preventDefault(),e.stopPropagation(),t.blur();const s=i.compareDocumentPosition(t);if(s&Node.DOCUMENT_POSITION_PRECEDING||s&Node.DOCUMENT_POSITION_FOLLOWING){const e=this._forwardTab?b(i):b(i,!0);e instanceof HTMLElement&&e.focus()}},document.documentElement.addEventListener("focus",this._handleFocus,{capture:!0}),document.documentElement.addEventListener("keydown",this._handleKeyDown,{capture:!0}),document.documentElement.addEventListener("mousedown",this._handleMouseDown,{capture:!0})}destroy(){document.documentElement.removeEventListener("focus",this._handleFocus,{capture:!0}),document.documentElement.removeEventListener("keydown",this._handleKeyDown,{capture:!0}),document.documentElement.removeEventListener("mousedown",this._handleMouseDown,{capture:!0})}_findDeepestFocusTrapElement(e){const t=e.querySelectorAll('[data-focus-trap="true"]');let i=null,s=-1;return t.forEach((t=>{const r=this._calculateParentCount(t,e);r>s&&(s=r,i=t)})),i}_calculateParentCount(e,t){let i=0,s=e.parentElement;for(;s&&s!==t;)"true"===s.getAttribute("data-focus-trap")&&i++,s=s.parentElement;return i}}const S=(0,g.default)((()=>new y));function b(e,t){var i;const s=(0,v.getActiveElementSelectors)(),r=Array.from(e.querySelectorAll(s)).filter((0,v.createScopedVisibleElementFilter)(e));return null!==(i=t?r[r.length-1]:r[0])&&void 0!==i?i:null}var w=i(7047);let C;function P(e){const t=window.user.available_offers||{};window.TVSettings&&window.TVSettings.sync(window.user.settings),window.is_authenticated?(e||(initOfferLoginStateChangeButton(),onGoPro()&&window.location.reload()),!1===window.user.profile_data_filled&&((0,r.trackEvent)("Conversion","First login"),delete window.user.profile_data_filled)):(Object.keys(t).forEach((e=>{const i=e;t[i].available_for_anons||delete t[i]})),window.user={username:"Guest",following:"0",followers:"0",ignore_list:[],available_offers:t},_.TVLocalStorage.removeItem("trial_availiable"))}C=window.loginStateChange?window.loginStateChange:window.loginStateChange=new p.Delegate,C.subscribe(null,P),s.TVXWindowEvents.on("loginStateChange",(e=>{const t=JSON.parse(e);window.user=t.user, +window.is_authenticated=!!t.is_authenticated,C.fire()})),s.TVXWindowEvents.on("signOut",(()=>{!function(){if(window.initData.lfs){const e=document.getElementsByClassName("js-admin-warning")[0];document.body.removeChild(e)}let e=!0;[/^\/chart\//,/^\/share-your-love\//,/^\/pine\//].forEach((t=>{t.test(window.location.pathname)&&(e=!1)})),e&&window.location.reload()}()})),(()=>{const e="user-obj-changed",t={};window.crossTabSyncUserAttr=t=>{const i={};t instanceof Array?t.forEach((e=>{i[e]=window.user[e]})):i[t]=window.user[t],s.TVXWindowEvents.emit(e,JSON.stringify(i))},s.TVXWindowEvents.on(e,(e=>{const i=JSON.parse(e);let s;for(s in i)if(i.hasOwnProperty(s)){window.user[s]=i[s];(t[s]||[]).forEach((e=>{e.fire(i[s])}))}}))})(),window.TradingView.changeLoginState=e=>{window.is_authenticated=!!e,s.TVXWindowEvents.emit("loginStateChange",JSON.stringify({is_authenticated:window.is_authenticated,user:window.user})),window.is_authenticated&&n.emit("GLOBAL_EVENT_SIGN_IN_SUCCESS"),C.fire()},window.loginUser=function(e){window.user=(0,m.deepExtend)({},e),window.TradingView.changeLoginState(!0)},window.loginRequiredDelegate=new p.Delegate,window.runOrSignIn=(e,t)=>{t||(t={}),e()},window.onLoginStateChange=P,window.TradingView.setTrialAvailiable=e=>{_.TVLocalStorage.setItem("trial_availiable",e?"1":"0")},window.TradingView.notificationsChanged=new p.Delegate,S(),(0,w.initMouseClickAutoBlurHandler)()},19063:(e,t,i)=>{"use strict";i.r(t),i.d(t,{alphaToTransparency:()=>a,applyAlpha:()=>o,applyTransparency:()=>c,colorFromBackground:()=>p,colorToInteger:()=>v,generateColor:()=>n,getLuminance:()=>d,gradientColorAtPercent:()=>_,isColorDark:()=>m,isHexColor:()=>u,resetTransparency:()=>h,rgbaFromInteger:()=>g,rgbaToInteger:()=>f,transparencyToAlpha:()=>l});var s,r=i(24377);function n(e,t,i){if(t=t||0,!u(e))return i?(0,r.rgbaToString)((0,r.rgba)((0,r.parseRgb)(e),(0,r.normalizeAlphaComponent)(l(t)))):e;const[s,n,o]=(0,r.parseRgb)(e),a=(0,r.normalizeAlphaComponent)(l(t));return(0,r.rgbaToString)([s,n,o,a])}function o(e,t,i){const s=(0,r.tryParseRgba)(e);if(null===s)throw new Error(`Invalid color: ${e}`);const[n,o,a,l]=s,c=(0,r.normalizeAlphaComponent)(t*(i?l:1));return(0,r.rgbaToString)((0,r.rgba)([n,o,a],c))}function a(e){return 100*(1-e)}function l(e){if(e<0||e>100)throw new Error("invalid transparency");return 1-e/100}function c(e,t){if("transparent"===e)return e;const i=(0,r.parseRgba)(e),s=i[3];return(0,r.rgbaToString)((0,r.rgba)(i[0],i[1],i[2],l(t)*s))}function h(e){return"transparent"===e?e:u(e)?e.slice(0,7):(0,r.rgbaToString)((0,r.rgba)((0,r.parseRgb)(e),(0,r.normalizeAlphaComponent)(1)))}function d(e){const t=(0,r.parseRgb)(e).map((e=>(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)));return Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e){return 0===e.indexOf("#")}function p(e){return"black"===(0,r.rgbToBlackWhiteString)((0,r.parseRgb)(e),150)?"#ffffff":"#000000"}function _(e,t,i){const[s,n,o,a]=(0,r.parseRgba)(e),[l,c,h,d]=(0,r.parseRgba)(t),u=(0, +r.rgba)(Math.round(s+i*(l-s)),Math.round(n+i*(c-n)),Math.round(o+i*(h-o)),a+i*(d-a));return(0,r.rgbaToString)(u)}function m(e){return d(h(e))<.5}function g(e){const t=(e=Math.round(e))%256;e-=t;const i=(e/=256)%256;e-=i;const s=(e/=256)%256;e-=s;return`rgba(${t},${i},${s},${(e/=256)/255})`}function f(e){const t=Math.round(255*e[3]);return e[0]+256*e[1]+65536*e[2]+16777216*t}function v(e){const t=(0,r.tryParseRgba)(e);return null===t?0:f(t)}!function(e){e[e.BgLuminanceThreshold=.5]="BgLuminanceThreshold"}(s||(s={}))},61119:(e,t,i)=>{"use strict";function s(e,t,i){return e*(1-i)+t*i}i.d(t,{doAnimate:()=>o,lerp:()=>s});const r={from:0,duration:250,easing:i(78871).easingFunc.easeOutCubic};class n{constructor(e){this._doing=!0,this._completed=!1,this._options={...r,...e};const t=performance.now();window.requestAnimationFrame((e=>{this._animation(t,this._options.from,e)}))}stop(){this._doing=!1}completed(){return this._completed}_animation(e,t,i){if(!this._doing)return void this._finishAnimation();const r=(i=!i||i<1e12?performance.now():i)-e,n=r>=this._options.duration||t===this._options.to,o=s(this._options.from,this._options.to,this._options.easing(r/this._options.duration)),a=n?this._options.to:o,l=a-t;this._options.onStep(l,a),n?this._finishAnimation():window.requestAnimationFrame((t=>{this._animation(e,a,t)}))}_finishAnimation(){this._options.onComplete&&this._options.onComplete(),this._completed=!0}}function o(e){return new n(e)}},67580:(e,t,i)=>{"use strict";i.d(t,{fetch:()=>s});(0,i(31955).getLogger)("Fetch");function s(e,t,i={}){return window.fetch(e,t)}},31955:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LOGLEVEL:()=>s.LOGLEVEL,getLogHistory:()=>s.getLogHistory,getLogLevel:()=>s.getLogLevel,getLogger:()=>s.getLogger,getRawLogHistory:()=>s.getRawLogHistory,isHighRateEnabled:()=>s.isHighRateEnabled,loggingOff:()=>s.loggingOff,loggingOn:()=>s.loggingOn,serializeLogHistoryEntry:()=>s.serializeLogHistoryEntry,setLogLevel:()=>s.setLogLevel});var s=i(12168)},68979:(e,t,i)=>{"use strict";function s(e,t,i,s){return`${s?s+" ":""}${i?i+" ":""}${e}px ${t}`}i.d(t,{makeFont:()=>s,parseFont:()=>n});const r=/(bold )?(italic )?(\d+)(px|pt) (.*)$/;function n(e){const t=r.exec(e);return null===t?null:{family:t[5],size:parseInt(t[3])*("pt"===t[4]?.75:1),bold:Boolean(t[1]),italic:Boolean(t[2])}}},44843:(e,t,i)=>{"use strict";i.d(t,{visitObject:()=>n});var s=i(37265);function r(e,t,i){return(0,s.isArray)(e)?function(e,t,i){return e.map((e=>{const s=r(e,t,i),n=t(s);return void 0!==n?n:s}))}(e,t,i):(0,s.isObject)(e)&&((0,s.isHashObject)(e)||i&&i.visitInstances)?function(e,t,i){const s={};return Object.keys(e).forEach((n=>{const o=r(e[n],t,i),a=t(o);s[n]=void 0!==a?a:o})),s}(e,t,i):e}function n(e,t,i){const s=r(e,t,i),n=t(s);return void 0!==n?n:s}},18112:(e,t,i)=>{"use strict";i.d(t,{getPersistentLogger:()=>r});let s=null;function r(){return s}},66800:(e,t,i)=>{"use strict";function s(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}i.d(t,{regExpEscape:()=>s})},31599:(e,t,i)=>{"use strict";i.d(t,{rgbaFromIntegerCached:()=>o}) +;var s=i(48874),r=i(19063),n=i(5201);function o(e=1e3){const t=s.default.Cache;s.default.Cache=n.CircularCacheBuffer.bind(n.CircularCacheBuffer,e);const i=(0,s.default)(r.rgbaFromInteger);return s.default.Cache=t,i}},63273:(e,t,i)=>{"use strict";i.r(t),i.d(t,{detectAutoDirection:()=>y,forceLTRStr:()=>h,forceLTRStrSsr:()=>d,forceRTLStr:()=>p,getLTRScrollLeft:()=>_,getLTRScrollLeftOffset:()=>m,isRtl:()=>r,startWithLTR:()=>c,stripLTRMarks:()=>l,stripLTRStrSsr:()=>u});var s=i(64531);const r=()=>"rtl"===window.document.dir,n="‪",o="‬",a=new RegExp("‎|‪|‫|‬","g");function l(e){return""!==e&&r()&&null!=e?e.replace(a,""):e}function c(e){return""!==e&&r()&&null!=e?"‎"+e:e}function h(e){return""!==e&&r()&&null!=e?n+e+o:e}function d(e){return n+e+o}function u(e){return e.startsWith(n)&&e.endsWith(o)?e.slice(1,-1):e}function p(e){return""!==e&&r()&&null!=e?"‫"+e+o:e}function _(e){return(0,s.getNormalizedScrollLeft)(e,"rtl")}function m(e,t){const i=(0,s.detectScrollType)();if("indeterminate"===i)return 0;switch(i){case"negative":t=e.clientWidth-e.scrollWidth+t;break;case"reverse":t=e.scrollWidth-e.clientWidth-t}return t}var g;!function(e){e.LTR="ltr",e.RTL="rtl",e.UNKNOWN=""}(g||(g={}));const f=/[^\u0000-\u0040\u005B-\u0060\u007B-\u00BF\u00D7\u00F7\u02B9-\u02FF\u2000-\u200E\u2010-\u2029\u202C\u202F-\u2BFF]/,v=/[\u0590-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC]/;function y(e){const t=f.exec(e);return t?v.test(t[0])?"rtl":"ltr":""}},78871:(e,t,i)=>{"use strict";i.d(t,{CubicBezier:()=>s.CubicBezier,dur:()=>s.dur,easingFunc:()=>s.easingFunc});var s=i(74991)},86001:(e,t,i)=>{"use strict";function s(){return Promise.all([i.e(6342),i.e(3060),i.e(6246),i.e(6625),i.e(4392),i.e(7241),i.e(2227),i.e(6014),i.e(2077)]).then(i.bind(i,71090))}i.d(t,{loadChangeIntervalDialog:()=>s})},86235:(e,t,i)=>{"use strict";i.d(t,{showChangeIntervalDialogAsync:()=>n});var s=i(86001);let r=null;function n(e){const t=r=(0,s.loadChangeIntervalDialog)().then((i=>{t===r&&i.showChangeIntervalDialog(e)}));return t}},62400:(e,t,i)=>{"use strict";function s(e){return Promise.all([i.e(5683),i.e(3060),i.e(2603),i.e(7528),i.e(6246),i.e(5514),i.e(7811),i.e(412),i.e(7399),i.e(8077),i.e(6625),i.e(55),i.e(4392),i.e(6665),i.e(4447),i.e(1259),i.e(889),i.e(5883),i.e(2227),i.e(6014),i.e(361),i.e(2079),i.e(2264),i.e(7223),i.e(1859)]).then(i.bind(i,84828)).then((t=>t.showGoToDateDialog(e)))}i.d(t,{showGoToDateDialog:()=>s})},22980:(e,t,i)=>{"use strict";i.d(t,{runOrSigninWithFeature:()=>s});const s=(e,t)=>{e()};window.TradingView.runOrSigninWithFeature=s},71885:(e,t,i)=>{"use strict";i.d(t,{showTooManyStudiesNotice:()=>n});var s=i(11542),r=i(3615);function n(e){(0,r.showWarning)({title:s.t(null,void 0,i(66719)),text:s.t(null,{replace:{number:`${e}`}},i(86146))})}},4454:(e,t,i)=>{"use strict";i.d(t,{getAdditionalSymbolInfoFields:()=>n,setAdditionalSymbolInfoFields:()=>r});let s=[];function r(e){s=e}function n(){return s}},80387:(e,t,i)=>{"use strict";function s(e){ +Promise.all([i.e(8622),i.e(3060),i.e(7528),i.e(6246),i.e(7811),i.e(412),i.e(7125),i.e(9486),i.e(3547),i.e(2950),i.e(2227),i.e(6014),i.e(5715),i.e(9374)]).then(i.bind(i,11095)).then((({SymbolInfoDialogImpl:t})=>{t.getInstance().show(e)}))}i.d(t,{showSymbolInfoDialog:()=>s})},28153:(e,t,i)=>{"use strict";i.d(t,{ChartSaverBase:()=>u});var s=i(16230),r=i(50151),n=(i(11542),i(97990)),o=i(23024),a=i(37265),l=i(52033),c=i(56570),h=i(39076);function d(e,t){e.content=JSON.stringify(t)}new WeakMap;new TextEncoder;class u{constructor(e){this._prevChartState=null,this._chartSavedDelegate=new l.Delegate,this._chartAboutToBeSavedDelegate=new l.Delegate,this._chartSizeLimitExceededDelegate=new l.Delegate,this._isSaveInProcess=!1,this._savingToken=null,this._chartWidgetCollection=e}async saveChartLineTools(e,t,s,r){if(c.enabled("saveload_separate_drawings_storage")){const n=await(0,o.getChartStorage)(),a=this._chartWidgetCollection.metaInfo.uid.value(),l=i=>n.saveLineToolsAndGroups(i,e,t,s,r);if(!a){this._chartSavedDelegate.subscribe(null,(e=>{if(e){const e=this._chartWidgetCollection.metaInfo.uid.value();l(e)}}),!0);const{SavingLineToolsLibraryError:e}=await i.e(5565).then(i.bind(i,98653));throw new e("Layout ID not yet created.",!0)}return l(a)}return Promise.reject("Line tools storage is not supported")}layoutId(){return this._chartWidgetCollection.metaInfo.uid.value()}saveChartSilently(e,t,i){const s=i||{};this._isSaveInProcess=!0,this._chartAboutToBeSavedDelegate.fire(),this._saveChart((e=>{const t=e&&c.enabled("saveload_separate_drawings_storage"),i=this._getChartWidgetCollectionState(!1,void 0,void 0,void 0,t),r=this._getCommonSavingInfo(!1);return d(r,i),s.chartName&&(r.name=s.chartName),r.name&&0!==r.name.length||!s.defaultChartName||(r.name=s.defaultChartName),s.autoSave&&(r.autoSave=!0),r}),((t,i)=>{var s;(0,r.assert)(!this._chartWidgetCollection.readOnly(),"Trying to save layout in read-only mode"),i&&this._chartWidgetCollection.metaInfo.name.setValue(null!==(s=i.name)&&void 0!==s?s:""),this._prevChartState=i,this._chartSavedDelegate.fire(!0),this._isSaveInProcess=!1,e&&e({uid:t.uid.value(),data:i}),this._prevChartState&&delete this._prevChartState.savingToken}),(e=>{this._chartSavedDelegate.fire(!1),this._isSaveInProcess=!1,t&&t(e)}),s)}saveToJSON(e){const t=e&&!1===e.includeDrawings||void 0,i=this._getCommonSavingInfo(!1);return d(i,this._getChartWidgetCollectionState(!1,!0,t,void 0,t)),i}isSaveInProcess(){return this._isSaveInProcess}_getChartWidgetCollectionState(e,t,i,s,r){return e||(t=!0,s=!1),this._chartWidgetCollection.state(!!e,!!i,!!s,r,!t)}_getCommonSavingInfo(e){const t=this._chartWidgetCollection,i=this._chartWidgetCollection.chartsSymbols(),s=i[t.activeChartWidget.value().id()],r={...(n=s,{...n,legs:JSON.stringify(null!==(o=n.legs)&&void 0!==o?o:[])})};var n,o;const a=t.metaInfo,l=a.id.value();return null!==l&&(r.id=l),r.name=a.name.value()||"",r.description=a.description.value()||"",r.charts_symbols=function(e){const t={};for(const i of Object.keys(e))t[i]={symbol:e[i].symbol};return JSON.stringify(t)}(i), +r.is_realtime=r.is_realtime=e?"0":"1",r}async _saveLineToolsToStorage(){if(!c.enabled("saveload_separate_drawings_storage"))return Promise.resolve();{this.layoutId();0;const e=this._chartWidgetCollection.getAll().map((e=>{var t,i;return null!==(i=null===(t=e.lineToolsSynchronizer())||void 0===t?void 0:t.flushPendingSavings())&&void 0!==i?i:null})).filter(a.notNull);e.length&&await Promise.all(e)}}_invalidateAllLineTools(){this._chartWidgetCollection.getAll().forEach((e=>{var t;return null===(t=e.lineToolsSynchronizer())||void 0===t?void 0:t.invalidateAll()}))}_saveChartImpl(e,t,i,s,r,n){let o;o=s=>{t.id.value()||(t.id.setValue(s.result),t.uid.setValue(`${s.result}`)),i(t,e)},e.name?h.backend.saveChart(e.name,e.short_name,e.resolution,e,t).then(o).catch((async e=>{var t,i;const r=e instanceof Response?e:void 0,n=e instanceof Error?e:void 0;this._savingToken=null;const o=s.bind(null,{status:null==r?void 0:r.status,message:null!==(i=null!==(t=null==r?void 0:r.statusText)&&void 0!==t?t:null==n?void 0:n.message)&&void 0!==i?i:"Unknown error"});o()})):s({status:-1,message:"Saving chart with empty name is not allowed"})}async _saveChart(e,t,r,o){var a;const l=this._chartWidgetCollection.metaInfo;let h=null!==(a=o.changes)&&void 0!==a?a:n.changedAll;c.enabled("saveload_separate_drawings_storage")&&this._invalidateAllLineTools();let d=!0;if(2&h||c.enabled("saveload_separate_drawings_storage"))try{await this._saveLineToolsToStorage()}catch(e){h|=1;const{SavingLineToolsLibraryError:t}=await i.e(5565).then(i.bind(i,98653));e instanceof t&&e.safe||(d=!1)}if(1&h){const i=e(d);if((0,s.default)(this._prevChartState,i)&&null!==l.id.value())return this._chartSavedDelegate.fire(!0),void t(l,i);0;const n=(e,i)=>(d||this._chartWidgetCollection.getAll().forEach((e=>{var t;return null===(t=e.lineToolsSynchronizer())||void 0===t?void 0:t.markAsValidatedBecauseOfSavingToContent(!0)})),t(e,i));return this._saveChartImpl(i,l,n,r,o,e)}this._chartSavedDelegate.fire(!0),t(l,e(d))}}},97488:(e,t,i)=>{"use strict";var s=i(28153).ChartSaverBase;i.i18next(null,void 0,i(49947));t.ChartSaver=class extends s{constructor(e){super(e)}chartSizeLimitExceeded(){return this._chartSizeLimitExceededDelegate}chartAboutToBeSaved(){return this._chartAboutToBeSavedDelegate}chartSaved(){return this._chartSavedDelegate}publishChart(e){}publishScript(e,t,i){}isScriptNameValid(e){return""!==e.trim()&&e.length<=64}isScriptDescriptionValid(e){return""!==e.trim()&&e.length<=7e4}isScriptDescribersValid(e,t){return this.isScriptNameValid(e)&&this.isScriptDescriptionValid(t)}openInNewTab(e,t,i){e.publishInProgress=!0,i||this.isScriptDescribersValid(t.name,t.description)&&undefined(new Promise((function(t){e.setPopupUrl=t})))}onPublish(e,t){}}},22365:(e,t,i)=>{"use strict";i.d(t,{getTranslatedSymbolDescription:()=>s});i(11542);function s(e){return e.description||""}},34585:(e,t,i)=>{"use strict";function s(e){return e+"…"}i.d(t,{appendEllipsis:()=>s})},14051:(e,t,i)=>{"use strict";function s(e){if(!o(e))throw e}function r(e){ +return(null==e?void 0:e.aborted)?Promise.reject(n()):new Promise(((t,i)=>{null==e||e.addEventListener("abort",(()=>i(n())),{once:!0})}))}function n(){return new DOMException("Aborted","AbortError")}function o(e){return e instanceof Error&&"AbortError"===e.name}function a(e,t){return Promise.race([r(e),t])}async function l(e,t){let i;try{await a(e,new Promise((e=>{i=setTimeout(e,t)})))}finally{clearTimeout(i)}}i.d(t,{delay:()=>l,isAbortError:()=>o,respectAbort:()=>a,skipAbortError:()=>s})},18832:(e,t,i)=>{"use strict";function s(e){let t;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if(e instanceof Date)t=new Date(e.valueOf());else if(Array.isArray(e)){t=[];let i=0;const r=e.length;for(;is})},31054:(e,t,i)=>{"use strict";function s(e,...t){return e&&"object"==typeof e?(0===t.length||t.forEach((t=>{null!=t&&"object"==typeof t&&Object.keys(t).forEach((i=>{const n=e[i],o=t[i];if(o===e)return;const a=Array.isArray(o);if(o&&(r(o)||a)){let t;t=a?n&&Array.isArray(n)?n:[]:n&&r(n)?n:{},e[i]=s(t,o)}else void 0!==o&&(e[i]=o)}))})),e):e}function r(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(!t)return!0;const i=Object.hasOwnProperty.toString,s=t.hasOwnProperty("constructor")&&t.constructor;return"function"==typeof s&&i.call(s)===i.call(Object)}i.d(t,{deepExtend:()=>s})},14426:(e,t,i)=>{"use strict";function s(){let e,t;return{promise:new Promise(((i,s)=>{e=i,t=s})),reject:t,resolve:e}}i.d(t,{createDeferredPromise:()=>s})},14712:(e,t,i)=>{"use strict";function s(e){if(void 0===e)return"";if(e instanceof Error){let t=e.message;return e.stack&&(t+=" "+e.stack),t}return"string"==typeof e?e.toString():JSON.stringify(e)}i.d(t,{errorToString:()=>s})},19365:(e,t,i)=>{"use strict";i.d(t,{getTwemojiUrl:()=>r});var s=i(18438);function r(e,t){let i="";return s.default.parse(e,(e=>(i=s.default.base+("svg"===t?`svg/${e}.svg`:`72x72/${e}.png`),!1))),i}s.default.base="https://cdnjs.cloudflare.com/ajax/libs/twemoji/13.0.1/"},92184:(e,t,i)=>{"use strict";i.r(t),i.d(t,{guid:()=>r,randomHash:()=>n,randomHashN:()=>o});const s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function n(){return o(12)}function o(e){let t="";for(let i=0;i{"use strict";i.d(t,{parseHtml:()=>n,parseHtmlElement:()=>o});const s=new WeakMap;var r;function n(e,t){let i,r;return i=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,s&&(r=s.get(i)),r||(r=i.ownerDocument.createRange(),r.selectNodeContents(i),s&&s.set(i,r)),r.createContextualFragment(e)}function o(e,t){const i=n(e,t),s=i.firstElementChild;return null!==s&&i.removeChild(s),s}!function(e){ +e[e.Element=1]="Element",e[e.Document=9]="Document"}(r||(r={}))},14729:(e,t,i)=>{"use strict";function s(e){e.preventDefault()}i.d(t,{preventDefault:()=>s,preventDefaultForContextMenu:()=>n});const r=["input:not([type])",'input[type="text"]','input[type="email"]','input[type="password"]','input[type="search"]','input[type="number"]','input[type="url"]',"textarea","a[href]",'*[contenteditable="true"]',"[data-allow-context-menu]"];function n(e){const t=e.target;t&&!t.closest(r.join(", "))&&e.preventDefault()}},49406:(e,t,i)=>{"use strict";i.d(t,{capitalizeFirstLetterInWord:()=>u,decodeHTMLEntities:()=>l,getFirstSegmentOrCodePointString:()=>p,htmlEscape:()=>c,removeSpaces:()=>d,removeTags:()=>h});const s=/[<"'&>]/g,r=e=>`&#${e.charCodeAt(0)};`,n={"<":"<",">":">",""":'"',"'":"'","&":"&","<":"<",">":">",""":'"',"'":"'","'":"'","&":"&"},o=Object.assign({},...Object.entries(n).map((([e,t])=>({[t]:e})))),a=new RegExp(Object.keys(n).join("|"),"g");new RegExp(Object.keys(o).join("|"),"g");function l(e){return e.replace(a,(e=>n[e]||e))}function c(e){return e.replace(s,r)}function h(e=""){return e.replace(/(<([^>]+)>)/gi,"")}function d(e=""){return e.replace(/\s+/g,"")}function u(e=""){return e.replace(/\b\w/g,(e=>e.toUpperCase()))}function p(e){var t;const i=Intl.Segmenter;if(i){const s=new i(void 0,{granularity:"grapheme"}),[{segment:r}={segment:null}]=s.segment(e);return null!==(t=null==r?void 0:r.toUpperCase())&&void 0!==t?t:null}{const t=e.codePointAt(0);return t?String.fromCodePoint(t).toUpperCase():null}}},97144:(e,t,i)=>{"use strict";function s(e){return e.reduce((function(e,t,i){return~e.indexOf(t)||e.push(t),e}),[])}i.r(t),i.d(t,{uniq:()=>s})},34369:e=>{e.exports=''},93544:e=>{e.exports=''},50946:e=>{e.exports=''},70893:e=>{ e.exports=''},1457:e=>{ e.exports=''},55824:e=>{e.exports=''},37924:e=>{e.exports=''},99875:e=>{e.exports=''},2872:e=>{e.exports=''},7983:e=>{e.exports=''},39267:e=>{e.exports=''},16911:e=>{e.exports=''},6862:e=>{e.exports=''},54190:e=>{ e.exports=''},25191:e=>{e.exports=''},93379:e=>{e.exports=''},84959:e=>{e.exports=''},97874:e=>{e.exports=''},77067:e=>{e.exports=''},76351:e=>{ diff --git a/charting_library/bundles/ms_MY.101.4517d8dd1585d66847fa.js b/charting_library/bundles/ms_MY.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/ms_MY.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/ms_MY.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/ms_MY.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/ms_MY.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/ms_MY.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/ms_MY.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/ms_MY.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/ms_MY.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/ms_MY.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/ms_MY.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/ms_MY.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/ms_MY.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/ms_MY.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/ms_MY.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/ms_MY.2238.d638344d73126d8add4d.js b/charting_library/bundles/ms_MY.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/ms_MY.2238.d638344d73126d8add4d.js rename to charting_library/bundles/ms_MY.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/ms_MY.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/ms_MY.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/ms_MY.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/ms_MY.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/ms_MY.2364.26e8b776a77b5171378c.js b/charting_library/bundles/ms_MY.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/ms_MY.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/ms_MY.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/ms_MY.2530.92a80ead64dfba712aee.js b/charting_library/bundles/ms_MY.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/ms_MY.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/ms_MY.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/ms_MY.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/ms_MY.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/ms_MY.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/ms_MY.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/ms_MY.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/ms_MY.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/ms_MY.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/ms_MY.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/ms_MY.359.0c687d4250a6e817ca07.js b/charting_library/bundles/ms_MY.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/ms_MY.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/ms_MY.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/ms_MY.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/ms_MY.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/ms_MY.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/ms_MY.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/ms_MY.4026.7fd0f0d599a897631492.js b/charting_library/bundles/ms_MY.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/ms_MY.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/ms_MY.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/ms_MY.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/ms_MY.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/ms_MY.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/ms_MY.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/ms_MY.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/ms_MY.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/ms_MY.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/ms_MY.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/ms_MY.4166.370b248aa3a4216cb655.js b/charting_library/bundles/ms_MY.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/ms_MY.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/ms_MY.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/ms_MY.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/ms_MY.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/ms_MY.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/ms_MY.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/ms_MY.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/ms_MY.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/ms_MY.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/ms_MY.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/ms_MY.5757.95d725830862fe7f95a6.js b/charting_library/bundles/ms_MY.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/ms_MY.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/ms_MY.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/ms_MY.6150.106e94ed53021dc4c472.js b/charting_library/bundles/ms_MY.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/ms_MY.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/ms_MY.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/ms_MY.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/ms_MY.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/ms_MY.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/ms_MY.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/ms_MY.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/ms_MY.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/ms_MY.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/ms_MY.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/ms_MY.6703.1743a792578849679683.js b/charting_library/bundles/ms_MY.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/ms_MY.6703.1743a792578849679683.js rename to charting_library/bundles/ms_MY.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/ms_MY.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/ms_MY.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/ms_MY.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/ms_MY.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/ms_MY.6822.2544321c5d68460201d9.js b/charting_library/bundles/ms_MY.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/ms_MY.6822.2544321c5d68460201d9.js rename to charting_library/bundles/ms_MY.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/ms_MY.711.d3421dced32340eeb9f4.js b/charting_library/bundles/ms_MY.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/ms_MY.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/ms_MY.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/ms_MY.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/ms_MY.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/ms_MY.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/ms_MY.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/ms_MY.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/ms_MY.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/ms_MY.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/ms_MY.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/ms_MY.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/ms_MY.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/ms_MY.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/ms_MY.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/ms_MY.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/ms_MY.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/ms_MY.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/ms_MY.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/ms_MY.877.587bafd928ddad2f966a.js b/charting_library/bundles/ms_MY.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/ms_MY.877.587bafd928ddad2f966a.js rename to charting_library/bundles/ms_MY.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/ms_MY.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/ms_MY.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/ms_MY.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/ms_MY.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/ms_MY.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/ms_MY.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/ms_MY.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/ms_MY.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/nl_NL.101.4517d8dd1585d66847fa.js b/charting_library/bundles/nl_NL.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/nl_NL.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/nl_NL.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/nl_NL.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/nl_NL.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/nl_NL.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/nl_NL.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/nl_NL.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/nl_NL.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/nl_NL.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/nl_NL.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/nl_NL.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/nl_NL.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/nl_NL.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/nl_NL.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/nl_NL.2238.d638344d73126d8add4d.js b/charting_library/bundles/nl_NL.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/nl_NL.2238.d638344d73126d8add4d.js rename to charting_library/bundles/nl_NL.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/nl_NL.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/nl_NL.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/nl_NL.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/nl_NL.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/nl_NL.2364.26e8b776a77b5171378c.js b/charting_library/bundles/nl_NL.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/nl_NL.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/nl_NL.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/nl_NL.2530.92a80ead64dfba712aee.js b/charting_library/bundles/nl_NL.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/nl_NL.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/nl_NL.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/nl_NL.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/nl_NL.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/nl_NL.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/nl_NL.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/nl_NL.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/nl_NL.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/nl_NL.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/nl_NL.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/nl_NL.359.0c687d4250a6e817ca07.js b/charting_library/bundles/nl_NL.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/nl_NL.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/nl_NL.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/nl_NL.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/nl_NL.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/nl_NL.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/nl_NL.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/nl_NL.4026.7fd0f0d599a897631492.js b/charting_library/bundles/nl_NL.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/nl_NL.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/nl_NL.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/nl_NL.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/nl_NL.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/nl_NL.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/nl_NL.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/nl_NL.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/nl_NL.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/nl_NL.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/nl_NL.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/nl_NL.4166.370b248aa3a4216cb655.js b/charting_library/bundles/nl_NL.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/nl_NL.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/nl_NL.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/nl_NL.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/nl_NL.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/nl_NL.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/nl_NL.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/nl_NL.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/nl_NL.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/nl_NL.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/nl_NL.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/nl_NL.5757.95d725830862fe7f95a6.js b/charting_library/bundles/nl_NL.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/nl_NL.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/nl_NL.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/nl_NL.6150.106e94ed53021dc4c472.js b/charting_library/bundles/nl_NL.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/nl_NL.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/nl_NL.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/nl_NL.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/nl_NL.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/nl_NL.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/nl_NL.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/nl_NL.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/nl_NL.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/nl_NL.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/nl_NL.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/nl_NL.6703.1743a792578849679683.js b/charting_library/bundles/nl_NL.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/nl_NL.6703.1743a792578849679683.js rename to charting_library/bundles/nl_NL.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/nl_NL.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/nl_NL.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/nl_NL.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/nl_NL.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/nl_NL.6822.2544321c5d68460201d9.js b/charting_library/bundles/nl_NL.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/nl_NL.6822.2544321c5d68460201d9.js rename to charting_library/bundles/nl_NL.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/nl_NL.711.d3421dced32340eeb9f4.js b/charting_library/bundles/nl_NL.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/nl_NL.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/nl_NL.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/nl_NL.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/nl_NL.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/nl_NL.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/nl_NL.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/nl_NL.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/nl_NL.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/nl_NL.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/nl_NL.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/nl_NL.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/nl_NL.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/nl_NL.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/nl_NL.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/nl_NL.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/nl_NL.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/nl_NL.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/nl_NL.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/nl_NL.877.587bafd928ddad2f966a.js b/charting_library/bundles/nl_NL.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/nl_NL.877.587bafd928ddad2f966a.js rename to charting_library/bundles/nl_NL.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/nl_NL.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/nl_NL.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/nl_NL.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/nl_NL.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/nl_NL.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/nl_NL.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/nl_NL.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/nl_NL.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/pl.101.4517d8dd1585d66847fa.js b/charting_library/bundles/pl.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/pl.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/pl.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/pl.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/pl.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/pl.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/pl.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/pl.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/pl.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/pl.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/pl.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/pl.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/pl.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/pl.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/pl.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/pl.2238.d638344d73126d8add4d.js b/charting_library/bundles/pl.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/pl.2238.d638344d73126d8add4d.js rename to charting_library/bundles/pl.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/pl.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/pl.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/pl.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/pl.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/pl.2364.26e8b776a77b5171378c.js b/charting_library/bundles/pl.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/pl.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/pl.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/pl.2530.92a80ead64dfba712aee.js b/charting_library/bundles/pl.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/pl.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/pl.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/pl.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/pl.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/pl.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/pl.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/pl.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/pl.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/pl.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/pl.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/pl.359.0c687d4250a6e817ca07.js b/charting_library/bundles/pl.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/pl.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/pl.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/pl.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/pl.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/pl.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/pl.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/pl.4026.7fd0f0d599a897631492.js b/charting_library/bundles/pl.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/pl.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/pl.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/pl.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/pl.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/pl.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/pl.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/pl.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/pl.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/pl.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/pl.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/pl.4166.370b248aa3a4216cb655.js b/charting_library/bundles/pl.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/pl.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/pl.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/pl.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/pl.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/pl.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/pl.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/pl.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/pl.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/pl.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/pl.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/pl.5757.95d725830862fe7f95a6.js b/charting_library/bundles/pl.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/pl.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/pl.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/pl.6150.106e94ed53021dc4c472.js b/charting_library/bundles/pl.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/pl.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/pl.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/pl.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/pl.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/pl.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/pl.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/pl.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/pl.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/pl.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/pl.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/pl.6703.1743a792578849679683.js b/charting_library/bundles/pl.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/pl.6703.1743a792578849679683.js rename to charting_library/bundles/pl.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/pl.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/pl.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/pl.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/pl.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/pl.6822.2544321c5d68460201d9.js b/charting_library/bundles/pl.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/pl.6822.2544321c5d68460201d9.js rename to charting_library/bundles/pl.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/pl.711.d3421dced32340eeb9f4.js b/charting_library/bundles/pl.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/pl.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/pl.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/pl.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/pl.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/pl.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/pl.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/pl.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/pl.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/pl.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/pl.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/pl.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/pl.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/pl.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/pl.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/pl.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/pl.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/pl.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/pl.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/pl.877.587bafd928ddad2f966a.js b/charting_library/bundles/pl.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/pl.877.587bafd928ddad2f966a.js rename to charting_library/bundles/pl.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/pl.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/pl.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/pl.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/pl.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/pl.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/pl.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/pl.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/pl.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/pt.101.4517d8dd1585d66847fa.js b/charting_library/bundles/pt.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/pt.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/pt.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/pt.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/pt.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/pt.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/pt.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/pt.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/pt.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/pt.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/pt.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/pt.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/pt.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/pt.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/pt.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/pt.2238.d638344d73126d8add4d.js b/charting_library/bundles/pt.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/pt.2238.d638344d73126d8add4d.js rename to charting_library/bundles/pt.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/pt.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/pt.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/pt.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/pt.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/pt.2364.26e8b776a77b5171378c.js b/charting_library/bundles/pt.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/pt.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/pt.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/pt.2530.92a80ead64dfba712aee.js b/charting_library/bundles/pt.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/pt.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/pt.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/pt.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/pt.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/pt.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/pt.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/pt.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/pt.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/pt.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/pt.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/pt.359.0c687d4250a6e817ca07.js b/charting_library/bundles/pt.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/pt.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/pt.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/pt.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/pt.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/pt.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/pt.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/pt.4026.7fd0f0d599a897631492.js b/charting_library/bundles/pt.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/pt.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/pt.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/pt.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/pt.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/pt.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/pt.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/pt.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/pt.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/pt.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/pt.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/pt.4166.370b248aa3a4216cb655.js b/charting_library/bundles/pt.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/pt.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/pt.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/pt.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/pt.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/pt.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/pt.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/pt.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/pt.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/pt.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/pt.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/pt.5757.95d725830862fe7f95a6.js b/charting_library/bundles/pt.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/pt.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/pt.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/pt.6150.106e94ed53021dc4c472.js b/charting_library/bundles/pt.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/pt.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/pt.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/pt.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/pt.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/pt.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/pt.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/pt.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/pt.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/pt.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/pt.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/pt.6703.1743a792578849679683.js b/charting_library/bundles/pt.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/pt.6703.1743a792578849679683.js rename to charting_library/bundles/pt.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/pt.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/pt.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/pt.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/pt.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/pt.6822.2544321c5d68460201d9.js b/charting_library/bundles/pt.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/pt.6822.2544321c5d68460201d9.js rename to charting_library/bundles/pt.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/pt.711.d3421dced32340eeb9f4.js b/charting_library/bundles/pt.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/pt.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/pt.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/pt.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/pt.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/pt.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/pt.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/pt.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/pt.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/pt.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/pt.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/pt.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/pt.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/pt.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/pt.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/pt.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/pt.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/pt.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/pt.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/pt.877.587bafd928ddad2f966a.js b/charting_library/bundles/pt.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/pt.877.587bafd928ddad2f966a.js rename to charting_library/bundles/pt.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/pt.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/pt.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/pt.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/pt.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/pt.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/pt.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/pt.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/pt.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/ro.101.4517d8dd1585d66847fa.js b/charting_library/bundles/ro.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/ro.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/ro.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/ro.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/ro.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/ro.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/ro.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/ro.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/ro.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/ro.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/ro.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/ro.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/ro.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/ro.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/ro.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/ro.2238.d638344d73126d8add4d.js b/charting_library/bundles/ro.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/ro.2238.d638344d73126d8add4d.js rename to charting_library/bundles/ro.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/ro.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/ro.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/ro.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/ro.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/ro.2364.26e8b776a77b5171378c.js b/charting_library/bundles/ro.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/ro.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/ro.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/ro.2530.92a80ead64dfba712aee.js b/charting_library/bundles/ro.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/ro.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/ro.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/ro.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/ro.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/ro.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/ro.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/ro.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/ro.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/ro.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/ro.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/ro.359.0c687d4250a6e817ca07.js b/charting_library/bundles/ro.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/ro.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/ro.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/ro.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/ro.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/ro.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/ro.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/ro.4026.7fd0f0d599a897631492.js b/charting_library/bundles/ro.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/ro.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/ro.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/ro.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/ro.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/ro.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/ro.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/ro.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/ro.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/ro.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/ro.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/ro.4166.370b248aa3a4216cb655.js b/charting_library/bundles/ro.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/ro.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/ro.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/ro.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/ro.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/ro.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/ro.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/ro.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/ro.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/ro.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/ro.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/ro.5757.95d725830862fe7f95a6.js b/charting_library/bundles/ro.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/ro.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/ro.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/ro.6150.106e94ed53021dc4c472.js b/charting_library/bundles/ro.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/ro.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/ro.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/ro.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/ro.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/ro.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/ro.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/ro.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/ro.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/ro.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/ro.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/ro.6703.1743a792578849679683.js b/charting_library/bundles/ro.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/ro.6703.1743a792578849679683.js rename to charting_library/bundles/ro.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/ro.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/ro.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/ro.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/ro.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/ro.6822.2544321c5d68460201d9.js b/charting_library/bundles/ro.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/ro.6822.2544321c5d68460201d9.js rename to charting_library/bundles/ro.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/ro.711.d3421dced32340eeb9f4.js b/charting_library/bundles/ro.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/ro.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/ro.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/ro.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/ro.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/ro.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/ro.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/ro.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/ro.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/ro.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/ro.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/ro.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/ro.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/ro.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/ro.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/ro.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/ro.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/ro.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/ro.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/ro.877.587bafd928ddad2f966a.js b/charting_library/bundles/ro.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/ro.877.587bafd928ddad2f966a.js rename to charting_library/bundles/ro.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/ro.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/ro.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/ro.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/ro.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/ro.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/ro.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/ro.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/ro.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/ru.101.4517d8dd1585d66847fa.js b/charting_library/bundles/ru.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/ru.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/ru.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/ru.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/ru.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/ru.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/ru.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/ru.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/ru.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/ru.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/ru.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/ru.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/ru.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/ru.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/ru.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/ru.2238.d638344d73126d8add4d.js b/charting_library/bundles/ru.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/ru.2238.d638344d73126d8add4d.js rename to charting_library/bundles/ru.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/ru.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/ru.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/ru.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/ru.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/ru.2364.26e8b776a77b5171378c.js b/charting_library/bundles/ru.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/ru.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/ru.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/ru.2530.92a80ead64dfba712aee.js b/charting_library/bundles/ru.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/ru.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/ru.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/ru.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/ru.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/ru.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/ru.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/ru.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/ru.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/ru.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/ru.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/ru.359.0c687d4250a6e817ca07.js b/charting_library/bundles/ru.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/ru.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/ru.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/ru.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/ru.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/ru.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/ru.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/ru.4026.7fd0f0d599a897631492.js b/charting_library/bundles/ru.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/ru.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/ru.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/ru.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/ru.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/ru.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/ru.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/ru.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/ru.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/ru.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/ru.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/ru.4166.370b248aa3a4216cb655.js b/charting_library/bundles/ru.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/ru.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/ru.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/ru.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/ru.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/ru.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/ru.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/ru.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/ru.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/ru.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/ru.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/ru.5757.95d725830862fe7f95a6.js b/charting_library/bundles/ru.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/ru.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/ru.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/ru.6150.106e94ed53021dc4c472.js b/charting_library/bundles/ru.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/ru.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/ru.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/ru.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/ru.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/ru.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/ru.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/ru.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/ru.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/ru.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/ru.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/ru.6703.1743a792578849679683.js b/charting_library/bundles/ru.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/ru.6703.1743a792578849679683.js rename to charting_library/bundles/ru.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/ru.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/ru.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/ru.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/ru.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/ru.6822.2544321c5d68460201d9.js b/charting_library/bundles/ru.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/ru.6822.2544321c5d68460201d9.js rename to charting_library/bundles/ru.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/ru.711.d3421dced32340eeb9f4.js b/charting_library/bundles/ru.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/ru.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/ru.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/ru.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/ru.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/ru.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/ru.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/ru.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/ru.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/ru.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/ru.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/ru.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/ru.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/ru.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/ru.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/ru.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/ru.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/ru.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/ru.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/ru.877.587bafd928ddad2f966a.js b/charting_library/bundles/ru.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/ru.877.587bafd928ddad2f966a.js rename to charting_library/bundles/ru.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/ru.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/ru.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/ru.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/ru.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/ru.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/ru.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/ru.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/ru.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/runtime.a78aa5d8cacc59cc758a.js b/charting_library/bundles/runtime.7dd2b495dd46fa7aaf80.js similarity index 91% rename from charting_library/bundles/runtime.a78aa5d8cacc59cc758a.js rename to charting_library/bundles/runtime.7dd2b495dd46fa7aaf80.js index 21efb8c8..10bacb7a 100644 --- a/charting_library/bundles/runtime.a78aa5d8cacc59cc758a.js +++ b/charting_library/bundles/runtime.7dd2b495dd46fa7aaf80.js @@ -1,6 +1,6 @@ (()=>{"use strict";var e,a,d,c,f,b={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var d=t[e]={id:e,loaded:!1,exports:{}};return b[e].call(d.exports,d,d.exports,r),d.loaded=!0,d.exports}r.m=b,r.c=t,r._plural={ar:(e,a=6,d=(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5))=>null==e?0:+d,cs:(e,a=3,d=(1==e?0:e>=2&&e<=4?1:2))=>null==e?0:+d,ru:(e,a=3,d=(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2))=>null==e?0:+d,ro:(e,a=3,d=(1==e?0:e%100>19||e%100==0&&0!=e?2:1))=>null==e?0:+d,pl:(e,a=3,d=(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2))=>null==e?0:+d,pt:(e,a=2,d=1!=e)=>null==e?0:+d,de:(e,a=2,d=1!=e)=>null==e?0:+d,en:(e,a=2,d=1!=e)=>null==e?0:+d,es:(e,a=2,d=1!=e)=>null==e?0:+d,sv:(e,a=2,d=1!=e)=>null==e?0:+d,it:(e,a=2,d=1!=e)=>null==e?0:+d,tr:(e,a=2,d=1!=e)=>null==e?0:+d,el:(e,a=2,d=1!=e)=>null==e?0:+d,fr:(e,a=2,d=e>1)=>null==e?0:+d,fa:(e,a=1,d=0)=>null==e?0:+d,ja:(e,a=1,d=0)=>null==e?0:+d,ko:(e,a=1,d=0)=>null==e?0:+d,th:(e,a=1,d=0)=>null==e?0:+d,vi:(e,a=1,d=0)=>null==e?0:+d,zh:(e,a=1,d=0)=>null==e?0:+d,he_IL:(e,a=4,d=(1==e?0:2==e?1:e>10&&e%10==0?2:3))=>null==e?0:+d,ca_ES:(e,a=2,d=1!=e)=>null==e?0:+d,nl_NL:(e,a=2,d=1!=e)=>null==e?0:+d,hu_HU:(e,a=1,d=0)=>null==e?0:+d,id_ID:(e,a=1,d=0)=>null==e?0:+d,ms_MY:(e,a=1,d=0)=>null==e?0:+d,zh_TW:(e,a=1,d=0)=>null==e?0:+d},e=[],r.O=(a,d,c,f)=>{if(!d){var b=1/0;for(l=0;l=f)&&Object.keys(r.O).every((e=>r.O[e](d[n])))?d.splice(n--,1):(t=!1,f0&&e[l-1][2]>f;l--)e[l]=e[l-1];e[l]=[d,c,f]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var f=Object.create(null);r.r(f);var b={};a=a||[null,d({}),d([]),d(d)];for(var t=2&c&&e;"object"==typeof t&&!~a.indexOf(t);t=d(t))Object.getOwnPropertyNames(t).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,r.d(f,b),f},r.d=(e,a)=>{for(var d in a)r.o(a,d)&&!r.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,d)=>(r.f[d](e,a),a)),[])), -r.u=e=>1595===e?"__LANG__.1595.ed5e66ea75fe7cba898c.js":8370===e?"__LANG__.8370.66124aa6a34f78ec9296.js":1962===e?"__LANG__.1962.06a12ee4dc9c57172030.js":877===e?"__LANG__.877.587bafd928ddad2f966a.js":2646===e?"__LANG__.2646.4c273cf476cee8769a9f.js":2238===e?"__LANG__.2238.d638344d73126d8add4d.js":2530===e?"__LANG__.2530.92a80ead64dfba712aee.js":711===e?"__LANG__.711.d3421dced32340eeb9f4.js":6822===e?"__LANG__.6822.2544321c5d68460201d9.js":2257===e?"__LANG__.2257.eb08e43667e8fa70ab7c.js":4040===e?"__LANG__.4040.c27ab6c1c6d57ffb7a98.js":6703===e?"__LANG__.6703.1743a792578849679683.js":1184===e?"__LANG__.1184.3c10520fb59f82b9730e.js":2870===e?"__LANG__.2870.c88d71d02331aa0654ac.js":8697===e?"__LANG__.8697.152c4ad863f30d749c6a.js":9321===e?"__LANG__.9321.5ffeb3c5034b2563d2e4.js":2364===e?"__LANG__.2364.26e8b776a77b5171378c.js":6342===e?"__LANG__.6342.d3b2be85f6d4610dcbff.js":359===e?"__LANG__.359.0c687d4250a6e817ca07.js":3796===e?"__LANG__.3796.a2ed46eec565ebc7e47c.js":4703===e?"__LANG__.4703.5b413cecd3b370a528a4.js":6150===e?"__LANG__.6150.106e94ed53021dc4c472.js":5757===e?"__LANG__.5757.95d725830862fe7f95a6.js":4109===e?"__LANG__.4109.ada5f6827b7fbbf84f78.js":9093===e?"__LANG__.9093.65a8647d45d3cdb6a6b3.js":8622===e?"__LANG__.8622.758c5b471bafe0d546d0.js":6778===e?"__LANG__.6778.f6bc65abbb1f0505c763.js":5683===e?"__LANG__.5683.fd49037b1d9f1aedc42b.js":8066===e?"__LANG__.8066.ed291360c7ac5d0968e2.js":4166===e?"__LANG__.4166.370b248aa3a4216cb655.js":6302===e?"__LANG__.6302.80747463bb3e8bcc2c72.js":101===e?"__LANG__.101.4517d8dd1585d66847fa.js":({92:"chart-screenshot-hint",139:"get-error-card",507:"study-pane-views",607:"study-property-pages-with-definitions",731:"add-compare-dialog",1583:"lt-pane-views",1584:"context-menu-renderer",1702:"manage-drawings-dialog",1754:"symbol-search-dialog",1859:"go-to-date-dialog-impl",1890:"line-tools-icons",2077:"change-interval-dialog",2183:"study-inputs-pane-views",2306:"floating-toolbars",2377:"hammerjs",2413:"custom-themes-api",2704:"currency-label-menu",2878:"drawing-toolbar",3005:"header-toolbar",3030:"new-confirm-inputs-dialog",3596:"general-property-page",4013:"custom-intervals-add-dialog",4079:"series-pane-views",4389:"take-chart-image-impl",4665:"share-chart-to-social-utils",4862:"object-tree-dialog",5009:"load-chart-dialog",5093:"chart-widget-gui",5516:"restricted-toolset",5551:"favorite-drawings-api",5565:"ichart-storage",5592:"chart-text-editor-renderer",5598:"lt-stickers-atlas",6124:"chart-storage-library-http",6166:"chart-event-hint",6265:"new-edit-object-dialog",6456:"study-market",6631:"study-template-dialog",6780:"source-properties-editor",7078:"general-chart-properties-dialog",7129:"line-tools-synchronizer",7260:"chart-bottom-toolbar",7271:"compare-model",7539:"studies",7648:"show-theme-save-dialog",7987:"lt-icons-atlas",8020:"user-defined-bars-marks-tooltip",8313:"chart-storage-external-adapter",8537:"lt-property-pages-with-definitions",8643:"full-tooltips-popup",8890:"simple-dialog",9039:"lollipop-tooltip-renderer",9374:"symbol-info-dialog-impl",9498:"export-data", -9685:"series-icons-map",9754:"global-search-dialog",9790:"favorite-indicators"}[e]||e)+"."+{55:"41afb164a8e5f55e7480",61:"0c09688ef5e03295e673",71:"ed546ba07068c1a9ffe9",92:"b3f237e44d9bf442a7f7",139:"60b010a94494ccdc034c",223:"80c94a3f7764f0e58305",291:"af4415871c7b1bceedc1",302:"a6088fa39b9c050b42d4",361:"0b7d3fd5d9c0b7234428",412:"3f1b49f0b44d2a9178b1",507:"430ecb3d50d053b6e7fa",607:"dbe10d449ea5420c3f0d",731:"2cc982d9b1e8e99945fe",889:"074200253cb34012d014",1227:"fa99eeb5b3e9100173d9",1259:"5e10be76035d11ec1c03",1298:"964a6ddc1be806b16fb3",1335:"6f8fa8a19d18095448b6",1398:"08828eaf3ddece13f3dd",1538:"5b5d70d92dec443af271",1553:"c076714f5e24887f0b94",1583:"f10108f2dceea9f775c0",1584:"675c5481bf59e3dd2e1b",1702:"8170358663062d76c1d5",1729:"3ac3e67dcb991de0067d",1754:"c1573b04ce801649f4ce",1782:"b393c882d21166a0d6b7",1859:"f3ff6bac72a955836a78",1890:"0be276f665ef833ced55",2038:"bc4ce921b1d03f7c81d7",2077:"daec8d3a7b6905b9234b",2079:"f2a9f3dd7d4f8cb9f2fc",2106:"c9a9f76ee985a4d1a7c2",2153:"25721c121ca93bf17bd6",2157:"d1cab62b805a1a6282a1",2183:"f5305fce3617de1a0299",2198:"bd387fff124b1890e093",2208:"bcd0cc1d8cf368f7df17",2227:"e46f1f2d53203e1fb152",2248:"9cd7afef97765d71525b",2264:"1e73b010b4ad6956c0d3",2306:"227af68729a87ca33204",2377:"6e30e0c48af40bf2f6c0",2413:"04a666b53959a4b9f24c",2417:"194a6099f108f235d188",2603:"a0ee1f7aa9156006153c",2704:"166b921e55fcd514b26b",2751:"afbce9c409b45fa8e482",2841:"25354932144dcc6561ea",2878:"f6410fe587830ab66caf",2950:"3b99045bc3db0888d40f",3005:"509c33f5e1dd207b3f2a",3030:"75020f7929f7774b9c4e",3060:"166c8a452efccb685b37",3098:"e317e819fbead3a8b108",3114:"1bde90b28a7928b3185d",3204:"5e0e7142b491336f724f",3443:"937a37795af03888d64a",3504:"6d6bf3e942233dfe76b7",3538:"c73e931c88c1a909b20e",3547:"deff9f0d114515ce9ff5",3596:"3e3e8b688dc182e921e7",3645:"8bc5d6a81040fc652ee5",3762:"d2196cec4d0ac100ea97",3925:"2d21beb40a7c356e5414",4013:"c6b5b8efd68510b58e58",4079:"3ef313cda7877ec9c336",4389:"d04906fb9a536ff5aedf",4392:"6125e60ca44590d5be28",4447:"4dbc78299d8e085de606",4482:"16271fb05e3810665417",4632:"03be51b2c01d5e70a222",4665:"e6a25f4006607ca48421",4774:"94117311dcd036db8fc3",4804:"9c7c6cdbdae147cda6aa",4814:"9e708bb64983eeb784ae",4862:"2447088c66b4ccee845f",4959:"74cadd6f77c04d8aa1d0",5009:"3891627d68b6d6053f24",5075:"8b3ee5b294c55402c5c7",5093:"548802a1463886c486d5",5446:"2f9b8decb48af60e997f",5450:"707e20d380c5cdb04626",5458:"edadd109ac346d6a4117",5514:"28c76a0c443e80758ba6",5516:"3623b9d6786b259391e1",5546:"14c721ec6c84ef160481",5551:"ec1abe78f54ce91e86da",5565:"1144e5a1b4f8503ee572",5592:"8e4cca2d8edbaa930b6a",5598:"94f0c0b09e739934e586",5622:"d5d50915005f94dec8bd",5666:"b328abb4cb258b889425",5715:"5f6b9b0b26b050b9aaaf",5877:"71abbc8d9c828d1f04a8",5883:"cd13f90d76b06fa81026",5922:"45f999f8afe16fb89e03",6014:"2fec107692917fa3b96b",6085:"3be02570f11f0c5f9169",6107:"0b9db0a46f5dd121d3f2",6124:"30c4bc9701c3b3a3f587",6166:"316fbf4876a37053079b",6220:"0e62d411f5022e590e7a",6246:"5f2778f557308df7a7d4",6265:"e3500b8a8d5efb4ee4c9",6408:"53f95c8edf441cf41f5e",6456:"b0c00a922d5c55371012", +r.u=e=>1595===e?"__LANG__.1595.5af7cac5f9beb6209b28.js":8370===e?"__LANG__.8370.27448531d54b88e152ec.js":1962===e?"__LANG__.1962.e5692070aa1cd0f04ce3.js":877===e?"__LANG__.877.5e88b7d3683c91bd81e8.js":2646===e?"__LANG__.2646.6d4337fd3d77bed4cd79.js":2238===e?"__LANG__.2238.d6b7f80851483fc0e28a.js":2530===e?"__LANG__.2530.adc265598cdcdb54de60.js":711===e?"__LANG__.711.382d355b9d621474ad0c.js":6822===e?"__LANG__.6822.dc35accbb7718f87443e.js":2257===e?"__LANG__.2257.d6bd39830cbe7577fe2e.js":4040===e?"__LANG__.4040.e7e117800dcdd26646f0.js":6703===e?"__LANG__.6703.fb8e84aef31e28d9d3a5.js":1184===e?"__LANG__.1184.31f15426028027b1489d.js":2870===e?"__LANG__.2870.94eec294c5a8f0610249.js":8697===e?"__LANG__.8697.8775a7191ab3c8155460.js":9321===e?"__LANG__.9321.7a432fdf26ec4e6555c4.js":2364===e?"__LANG__.2364.0512844d92ec568be1c1.js":6342===e?"__LANG__.6342.98849a5d0efe1079a157.js":359===e?"__LANG__.359.db67c54d050dcf386a2b.js":3796===e?"__LANG__.3796.83c778227bf8017ea9cf.js":4703===e?"__LANG__.4703.56cf74984f3c0c091270.js":6150===e?"__LANG__.6150.a11d291ee03946014bc0.js":5757===e?"__LANG__.5757.3f945d17f3d4e46d524e.js":4109===e?"__LANG__.4109.fb5805530255b4d350dd.js":9093===e?"__LANG__.9093.c8b0300134e591e923fc.js":8622===e?"__LANG__.8622.1c50c41ea462dc532246.js":6778===e?"__LANG__.6778.11c8f175819c2a9585e8.js":5683===e?"__LANG__.5683.fe97bc110a09f7a85bf1.js":8066===e?"__LANG__.8066.a8f5a3dc8bd34ea86495.js":4166===e?"__LANG__.4166.2b61ec36252115d9d6f5.js":6302===e?"__LANG__.6302.50eaa484246d9138be47.js":101===e?"__LANG__.101.9a36a61f7eb7b2afa18a.js":({92:"chart-screenshot-hint",139:"get-error-card",507:"study-pane-views",607:"study-property-pages-with-definitions",731:"add-compare-dialog",1583:"lt-pane-views",1584:"context-menu-renderer",1702:"manage-drawings-dialog",1754:"symbol-search-dialog",1859:"go-to-date-dialog-impl",1890:"line-tools-icons",2077:"change-interval-dialog",2183:"study-inputs-pane-views",2306:"floating-toolbars",2377:"hammerjs",2413:"custom-themes-api",2704:"currency-label-menu",2878:"drawing-toolbar",3005:"header-toolbar",3030:"new-confirm-inputs-dialog",3596:"general-property-page",4013:"custom-intervals-add-dialog",4079:"series-pane-views",4389:"take-chart-image-impl",4665:"share-chart-to-social-utils",4862:"object-tree-dialog",5009:"load-chart-dialog",5093:"chart-widget-gui",5516:"restricted-toolset",5551:"favorite-drawings-api",5565:"ichart-storage",5592:"chart-text-editor-renderer",5598:"lt-stickers-atlas",6124:"chart-storage-library-http",6166:"chart-event-hint",6265:"new-edit-object-dialog",6456:"study-market",6631:"study-template-dialog",6780:"source-properties-editor",7078:"general-chart-properties-dialog",7129:"line-tools-synchronizer",7260:"chart-bottom-toolbar",7271:"compare-model",7539:"studies",7648:"show-theme-save-dialog",7987:"lt-icons-atlas",8020:"user-defined-bars-marks-tooltip",8313:"chart-storage-external-adapter",8537:"lt-property-pages-with-definitions",8643:"full-tooltips-popup",8890:"simple-dialog",9039:"lollipop-tooltip-renderer",9374:"symbol-info-dialog-impl",9498:"export-data", +9685:"series-icons-map",9754:"global-search-dialog",9790:"favorite-indicators"}[e]||e)+"."+{55:"41afb164a8e5f55e7480",61:"0c09688ef5e03295e673",71:"ed546ba07068c1a9ffe9",92:"b3f237e44d9bf442a7f7",139:"60b010a94494ccdc034c",223:"80c94a3f7764f0e58305",291:"af4415871c7b1bceedc1",302:"a6088fa39b9c050b42d4",361:"0b7d3fd5d9c0b7234428",412:"3f1b49f0b44d2a9178b1",507:"430ecb3d50d053b6e7fa",607:"dbe10d449ea5420c3f0d",731:"2cc982d9b1e8e99945fe",889:"074200253cb34012d014",1227:"fa99eeb5b3e9100173d9",1259:"5e10be76035d11ec1c03",1298:"964a6ddc1be806b16fb3",1335:"6f8fa8a19d18095448b6",1398:"08828eaf3ddece13f3dd",1538:"5b5d70d92dec443af271",1553:"c076714f5e24887f0b94",1583:"f10108f2dceea9f775c0",1584:"675c5481bf59e3dd2e1b",1702:"8170358663062d76c1d5",1729:"3ac3e67dcb991de0067d",1754:"c1573b04ce801649f4ce",1782:"b393c882d21166a0d6b7",1859:"f3ff6bac72a955836a78",1890:"0be276f665ef833ced55",2038:"bc4ce921b1d03f7c81d7",2077:"daec8d3a7b6905b9234b",2079:"f2a9f3dd7d4f8cb9f2fc",2106:"c9a9f76ee985a4d1a7c2",2153:"25721c121ca93bf17bd6",2157:"d1cab62b805a1a6282a1",2183:"f5305fce3617de1a0299",2198:"bd387fff124b1890e093",2208:"bcd0cc1d8cf368f7df17",2227:"e46f1f2d53203e1fb152",2248:"9cd7afef97765d71525b",2264:"1e73b010b4ad6956c0d3",2306:"227af68729a87ca33204",2377:"6e30e0c48af40bf2f6c0",2413:"3ea1bb3833f8ce690a7f",2417:"194a6099f108f235d188",2603:"a0ee1f7aa9156006153c",2704:"166b921e55fcd514b26b",2751:"afbce9c409b45fa8e482",2841:"25354932144dcc6561ea",2878:"f6410fe587830ab66caf",2950:"3b99045bc3db0888d40f",3005:"509c33f5e1dd207b3f2a",3030:"75020f7929f7774b9c4e",3060:"166c8a452efccb685b37",3098:"e317e819fbead3a8b108",3114:"1bde90b28a7928b3185d",3204:"5e0e7142b491336f724f",3443:"937a37795af03888d64a",3504:"6d6bf3e942233dfe76b7",3538:"c73e931c88c1a909b20e",3547:"deff9f0d114515ce9ff5",3596:"3e3e8b688dc182e921e7",3645:"8bc5d6a81040fc652ee5",3762:"d2196cec4d0ac100ea97",3925:"2d21beb40a7c356e5414",4013:"c6b5b8efd68510b58e58",4079:"3ef313cda7877ec9c336",4389:"d04906fb9a536ff5aedf",4392:"6125e60ca44590d5be28",4447:"4dbc78299d8e085de606",4482:"16271fb05e3810665417",4632:"03be51b2c01d5e70a222",4665:"e6a25f4006607ca48421",4774:"94117311dcd036db8fc3",4804:"9c7c6cdbdae147cda6aa",4814:"9e708bb64983eeb784ae",4862:"2447088c66b4ccee845f",4959:"74cadd6f77c04d8aa1d0",5009:"3891627d68b6d6053f24",5075:"8b3ee5b294c55402c5c7",5093:"548802a1463886c486d5",5446:"2f9b8decb48af60e997f",5450:"707e20d380c5cdb04626",5458:"edadd109ac346d6a4117",5514:"28c76a0c443e80758ba6",5516:"3623b9d6786b259391e1",5546:"14c721ec6c84ef160481",5551:"ec1abe78f54ce91e86da",5565:"1144e5a1b4f8503ee572",5592:"8e4cca2d8edbaa930b6a",5598:"94f0c0b09e739934e586",5622:"d5d50915005f94dec8bd",5666:"b328abb4cb258b889425",5715:"5f6b9b0b26b050b9aaaf",5877:"71abbc8d9c828d1f04a8",5883:"cd13f90d76b06fa81026",5922:"45f999f8afe16fb89e03",6014:"2fec107692917fa3b96b",6085:"3be02570f11f0c5f9169",6107:"0b9db0a46f5dd121d3f2",6124:"30c4bc9701c3b3a3f587",6166:"316fbf4876a37053079b",6220:"0e62d411f5022e590e7a",6246:"5f2778f557308df7a7d4",6265:"e3500b8a8d5efb4ee4c9",6408:"53f95c8edf441cf41f5e",6456:"b0c00a922d5c55371012", 6625:"87616ccbe98a53944595",6631:"78491209cf586d0ba30d",6665:"c2e31b82380ab935b7b6",6780:"4e5fadabafe1e6fac4dc",6955:"8a48ea19caaa2245515e",7078:"2b6e034faa8dc0c889a2",7092:"2249bba583e3b4ce292a",7125:"73760946362ea76791aa",7129:"a3d57451eacd53dd89da",7223:"a5a98f21c4a7b2ef69f7",7241:"71d6bffb339768b93b78",7260:"44c5ff5339e5cebbbf16",7271:"fed2af92643b5038a181",7353:"fcd0decb2c42590338b4",7399:"8929657931282b3a7b13",7528:"6a10e4f9b4c5d5b056ff",7530:"d32759b481dc1b5b2cf4",7539:"137042b318030eec091b",7648:"2efb90ef53bd11686325",7727:"7f5268ae4f76cb479546",7746:"8c7ce523e0bf413e28f8",7769:"e703512a0eebacefba41",7811:"48b0557afc1d05a1543e",7844:"d4862a455689ef5825bb",7902:"fa27c791fa084bda6c66",7987:"7a0e90bf720e0bf71add",8020:"77d8dc2f2d5b3ab9e50a",8065:"2684e341e6e77ac7f004",8073:"465b479f6dbd2ff7a478",8077:"252d94c53f5a454a6c80",8278:"d3762b4f1a1711abe319",8313:"9c1267d07e48b8d8f53f",8316:"2eb467cae54b4921c63e",8432:"5aff4901eb21541f4f2c",8467:"27da836b24b170fb2cef",8537:"5898ddf05e03da7d53c4",8596:"bf6b42f0294b8202136e",8643:"96374cb0845bdd0f57fc",8722:"961ac50570f1560c4d92",8732:"d2dec99bae48c33c136e",8775:"ee9f16fd1470c240e56f",8843:"0b1b0f4304739145b270",8890:"caf1cb0bd206c046c24b",9039:"db9f0c622f0771359aa9",9259:"4f09a6dcb445187991bb",9275:"eeac27139018718b3d51",9370:"112f4e73192a88ff71b8",9374:"f6c021746c3c9456cadc",9476:"d65e33ce5d965db2d629",9486:"df302712d821b705377f",9498:"5e936e4fc17fcb46df55",9685:"8c0383b52d89ca46a1b8",9754:"800a3d3c9ba00c410736",9790:"8b28c68ab9b75bd4cffc",9796:"235b61e03acc0eee6040",9978:"ad8fef9d0a81c1e1dcda"}[e]+".js",r.miniCssF=e=>e+"."+{55:"fbe45f08e8a580b70f48",61:"6420f5b2ff091a8d8a5f",71:"cfe59e9cc92d04ef185d",223:"103e68709eae15d3109a",291:"cdb1f8bec5b9d4688794",302:"f0da356af4ffe12ac66d",412:"c71231d81b196034eefa",889:"21219e9cb2ac6cf1923e",1227:"68542dac293294290d44",1259:"b80c727a6df944a103fe",1298:"d597f50113da0645dcf5",1335:"5f0edd452b4452a9eaf4",1398:"d778724528a9b5665050",1538:"b6bc85c0060285eaeced",1729:"0f1e7f0f19efe1232ab6",1782:"637b414d2efcd03840f5",2038:"9fc99258845013ecf959",2106:"407cb827c0acab444e09",2153:"302cc6392cc9f067008b",2198:"2762b6c7b8aaa0156d33",2208:"2c33dcc3a2ea34861c2c",2248:"362fa6a7ab1f3e3b06c4",2417:"7835cfcd422c2f0478a4",2603:"67a756e92dbe51a30f72",2841:"9384677f17d8e3fe6f1e",2950:"f052bbea83b78b27ffba",3060:"fbb750fd312778403036",3114:"74916a9532052e2cfa84",3204:"bd0eb51c8ff7ca736c6b",3538:"7894b0f2ada5563099b2",3547:"2cd7133d1e05f50985a5",3645:"ca58330494e035ef62ab",3762:"2ec6c50ea553cf1e0197",3925:"ef38c420d36b7b1a83af",4392:"f247c8bc262c51d15d8e",4447:"f947855b7ae01dfb68f8",4632:"c0ade5e298b9c20b0703",4814:"8f9f36a0b818caadd4c6",4959:"bbafa4b076f2c64bd203",5446:"24be1f27837a64b8646b",5458:"0ad67886dc6df4a03094",5514:"81333b83f4e18e9cde99",5546:"681a9e7b91dfc741f79f",5622:"b8f2257b27ac82b2d12e",5666:"234fdce3b58e2b7f4b38",5877:"e211c1f134e8a786af4f",5883:"86db8dd61a862770480d",5922:"fbf362211645ecd654fa",6085:"7b1bd95c4ea1c9f8ad7a",6107:"b8b526751e7230cd2e69",6220:"b02054ace78f1bbd7ab4",6246:"3ecbd24f95eff1b7dd4f",6625:"8ead11e183058d3b8778", 6665:"0c4a6582bd484370f525",6955:"d365d11fe6e348cae0ec",7092:"505a377d19e2d0f1294f",7125:"ee8a75f271c0eade9d69",7241:"6134620811847ea8ea05",7353:"3aff08076e0bff7df116",7399:"bdaaf55cfdf2cf1aca38",7528:"79eb8932f26b90cc0746",7530:"fd97c91a6994393f8c34",7727:"51511f925000b99093e3",7769:"687807fe02a928ff5a51",7811:"bc4bc25228d45f97e53e",7844:"459b24d0a3ebd19f4872",7902:"bd66a7acb8da83298887",8065:"3a61b8e1d0959436a7ef",8073:"4e8847f52f692b35ff45",8077:"abb400ed43eea3166fbf",8316:"7f1805a45329003b0966",8432:"c18381bc85b04ca9ccc7",8467:"683a2458d61cd83980b6",8596:"b84315f4350430cdb348",8722:"38f718c32ecc5d2a148c",8732:"c64d758dad3d1c98dd39",8775:"2071de405f3a4c584501",8843:"79dc7cad0f9ac7a07eb5",9259:"dbe21dc892e62e500e95",9275:"5f5074179a4a1a2fbab9",9476:"61e084db0b1f1178a85a",9486:"8577632fdab29ee53ddf",9796:"0efc740bbb6e80b6cee1",9978:"48bdee1c05feaec65062"}[e]+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},f="tradingview:",r.l=(e,a,d,b)=>{if(c[e])c[e].push(a);else{var t,n;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l{t.onerror=t.onload=null,clearTimeout(u);var f=c[e];if(delete c[e],t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach((e=>e(d))),a)return a(d)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),n&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var a=r.g.document;if(!e&&a&&(a.currentScript&&(e=a.currentScript.src),!e)){var d=a.getElementsByTagName("script");d.length&&(e=d[d.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.g.location&&r.p.startsWith(r.g.location.origin)&&(r.p=r.p.slice(r.g.location.origin.length)),(()=>{const e=r.u;r.u=a=>e(a).replace("__LANG__",r.g.language)})(),r.p=r.g.WEBPACK_PUBLIC_PATH||r.p;var n=r.e,o=Object.create(null);function l(e,a){return n(e).catch((function(){return new Promise((function(d){var c=function(){ self.removeEventListener("online",c,!1),!1===navigator.onLine?self.addEventListener("online",c,!1):d(a<2?l(e,a+1):n(e))};setTimeout(c,a*a*1e3)}))}))}r.e=function(e){if(!o[e]){o[e]=l(e,0);var a=function(){delete o[e]};o[e].then(a,a)}return o[e]},(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((a,d)=>{var c=r.miniCssF(e),f=r.p+c;if(((e,a)=>{for(var d=document.getElementsByTagName("link"),c=0;c{var b=document.createElement("link");b.rel="stylesheet",b.type="text/css",b.onerror=b.onload=d=>{if(b.onerror=b.onload=null,"load"===d.type)c();else{var t=d&&("load"===d.type?"missing":d.type),r=d&&d.target&&d.target.href||a,n=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");n.code="CSS_CHUNK_LOAD_FAILED",n.type=t,n.request=r,b.parentNode&&b.parentNode.removeChild(b),f(n)}},b.href=a,0!==b.href.indexOf(window.location.origin+"/")&&(b.crossOrigin="anonymous"),d?d.parentNode.insertBefore(b,d.nextSibling):document.head.appendChild(b)})(e,f,null,a,d)})),a={3666:0};r.f.miniCss=(d,c)=>{a[d]?c.push(a[d]):0!==a[d]&&{55:1,61:1,71:1,223:1,291:1,302:1,412:1,889:1,1227:1,1259:1,1298:1,1335:1,1398:1,1538:1,1729:1,1782:1,2038:1,2106:1,2153:1,2198:1,2208:1,2248:1,2417:1,2603:1,2841:1,2950:1,3060:1,3114:1,3204:1,3538:1,3547:1,3645:1,3762:1,3925:1,4392:1,4447:1,4632:1,4814:1,4959:1,5446:1,5458:1,5514:1,5546:1,5622:1,5666:1,5877:1,5883:1,5922:1,6085:1,6107:1,6220:1,6246:1,6625:1,6665:1,6955:1,7092:1,7125:1,7241:1,7353:1,7399:1,7528:1,7530:1,7727:1,7769:1,7811:1,7844:1,7902:1,8065:1,8073:1,8077:1,8316:1,8432:1,8467:1,8596:1,8722:1,8732:1,8775:1,8843:1,9259:1,9275:1,9476:1,9486:1,9796:1,9978:1}[d]&&c.push(a[d]=e(d).then((()=>{a[d]=0}),(e=>{throw delete a[d],e})))}}})(),r.i18next=(e,a={},d,c=r.g.language)=>{if(null===e){if(Array.isArray(d))return d[void 0===a.count?0:r._plural[c](a.count)].replace(/{(\w+)}/g,((e,d)=>void 0!==(a.replace||a)[d]?(a.replace||a)[d]:e));if("object"==typeof d){if(r.g.customTranslateFunction){const e=r.g.customTranslateFunction(d.en[r._plural.en(a.count)],d.en[0],d[r.g.language]?d[r.g.language][r._plural[r.g.language](a.count)]:void 0);if(null!==e)return e.replace(/{(\w+)}/g,((e,d)=>void 0!==(a.replace||a)[d]?(a.replace||a)[d]:e))}return d[r.g.language]?r.i18next(null,a,d[r.g.language]):r.i18next(null,a,d.en,"en")}}else if(d&&e){const c=`${e}${a.context?`_${a.context}`:""}`;if(d[c])return r.i18next(null,a,d[c])}return"number"==typeof e?e.toString():"string"!=typeof e?"":e},(()=>{var e={3666:0,9662:0};r.f.j=(a,d)=>{var c=r.o(e,a)?e[a]:void 0 diff --git a/charting_library/bundles/sv.101.4517d8dd1585d66847fa.js b/charting_library/bundles/sv.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/sv.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/sv.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/sv.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/sv.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/sv.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/sv.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/sv.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/sv.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/sv.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/sv.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/sv.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/sv.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/sv.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/sv.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/sv.2238.d638344d73126d8add4d.js b/charting_library/bundles/sv.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/sv.2238.d638344d73126d8add4d.js rename to charting_library/bundles/sv.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/sv.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/sv.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/sv.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/sv.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/sv.2364.26e8b776a77b5171378c.js b/charting_library/bundles/sv.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/sv.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/sv.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/sv.2530.92a80ead64dfba712aee.js b/charting_library/bundles/sv.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/sv.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/sv.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/sv.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/sv.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/sv.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/sv.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/sv.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/sv.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/sv.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/sv.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/sv.359.0c687d4250a6e817ca07.js b/charting_library/bundles/sv.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/sv.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/sv.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/sv.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/sv.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/sv.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/sv.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/sv.4026.7fd0f0d599a897631492.js b/charting_library/bundles/sv.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/sv.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/sv.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/sv.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/sv.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/sv.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/sv.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/sv.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/sv.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/sv.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/sv.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/sv.4166.370b248aa3a4216cb655.js b/charting_library/bundles/sv.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/sv.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/sv.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/sv.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/sv.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/sv.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/sv.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/sv.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/sv.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/sv.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/sv.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/sv.5757.95d725830862fe7f95a6.js b/charting_library/bundles/sv.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/sv.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/sv.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/sv.6150.106e94ed53021dc4c472.js b/charting_library/bundles/sv.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/sv.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/sv.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/sv.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/sv.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/sv.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/sv.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/sv.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/sv.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/sv.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/sv.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/sv.6703.1743a792578849679683.js b/charting_library/bundles/sv.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/sv.6703.1743a792578849679683.js rename to charting_library/bundles/sv.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/sv.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/sv.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/sv.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/sv.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/sv.6822.2544321c5d68460201d9.js b/charting_library/bundles/sv.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/sv.6822.2544321c5d68460201d9.js rename to charting_library/bundles/sv.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/sv.711.d3421dced32340eeb9f4.js b/charting_library/bundles/sv.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/sv.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/sv.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/sv.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/sv.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/sv.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/sv.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/sv.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/sv.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/sv.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/sv.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/sv.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/sv.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/sv.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/sv.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/sv.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/sv.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/sv.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/sv.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/sv.877.587bafd928ddad2f966a.js b/charting_library/bundles/sv.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/sv.877.587bafd928ddad2f966a.js rename to charting_library/bundles/sv.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/sv.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/sv.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/sv.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/sv.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/sv.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/sv.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/sv.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/sv.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/th.101.4517d8dd1585d66847fa.js b/charting_library/bundles/th.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/th.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/th.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/th.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/th.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/th.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/th.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/th.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/th.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/th.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/th.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/th.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/th.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/th.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/th.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/th.2238.d638344d73126d8add4d.js b/charting_library/bundles/th.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/th.2238.d638344d73126d8add4d.js rename to charting_library/bundles/th.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/th.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/th.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/th.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/th.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/th.2364.26e8b776a77b5171378c.js b/charting_library/bundles/th.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/th.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/th.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/th.2530.92a80ead64dfba712aee.js b/charting_library/bundles/th.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/th.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/th.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/th.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/th.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/th.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/th.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/th.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/th.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/th.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/th.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/th.359.0c687d4250a6e817ca07.js b/charting_library/bundles/th.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/th.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/th.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/th.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/th.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/th.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/th.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/th.4026.7fd0f0d599a897631492.js b/charting_library/bundles/th.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/th.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/th.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/th.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/th.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/th.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/th.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/th.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/th.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/th.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/th.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/th.4166.370b248aa3a4216cb655.js b/charting_library/bundles/th.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/th.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/th.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/th.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/th.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/th.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/th.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/th.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/th.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/th.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/th.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/th.5757.95d725830862fe7f95a6.js b/charting_library/bundles/th.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/th.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/th.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/th.6150.106e94ed53021dc4c472.js b/charting_library/bundles/th.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/th.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/th.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/th.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/th.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/th.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/th.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/th.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/th.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/th.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/th.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/th.6703.1743a792578849679683.js b/charting_library/bundles/th.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/th.6703.1743a792578849679683.js rename to charting_library/bundles/th.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/th.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/th.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/th.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/th.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/th.6822.2544321c5d68460201d9.js b/charting_library/bundles/th.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/th.6822.2544321c5d68460201d9.js rename to charting_library/bundles/th.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/th.711.d3421dced32340eeb9f4.js b/charting_library/bundles/th.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/th.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/th.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/th.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/th.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/th.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/th.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/th.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/th.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/th.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/th.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/th.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/th.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/th.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/th.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/th.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/th.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/th.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/th.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/th.877.587bafd928ddad2f966a.js b/charting_library/bundles/th.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/th.877.587bafd928ddad2f966a.js rename to charting_library/bundles/th.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/th.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/th.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/th.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/th.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/th.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/th.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/th.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/th.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/tr.101.4517d8dd1585d66847fa.js b/charting_library/bundles/tr.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/tr.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/tr.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/tr.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/tr.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/tr.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/tr.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/tr.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/tr.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/tr.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/tr.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/tr.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/tr.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/tr.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/tr.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/tr.2238.d638344d73126d8add4d.js b/charting_library/bundles/tr.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/tr.2238.d638344d73126d8add4d.js rename to charting_library/bundles/tr.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/tr.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/tr.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/tr.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/tr.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/tr.2364.26e8b776a77b5171378c.js b/charting_library/bundles/tr.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/tr.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/tr.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/tr.2530.92a80ead64dfba712aee.js b/charting_library/bundles/tr.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/tr.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/tr.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/tr.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/tr.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/tr.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/tr.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/tr.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/tr.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/tr.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/tr.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/tr.359.0c687d4250a6e817ca07.js b/charting_library/bundles/tr.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/tr.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/tr.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/tr.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/tr.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/tr.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/tr.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/tr.4026.7fd0f0d599a897631492.js b/charting_library/bundles/tr.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/tr.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/tr.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/tr.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/tr.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/tr.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/tr.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/tr.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/tr.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/tr.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/tr.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/tr.4166.370b248aa3a4216cb655.js b/charting_library/bundles/tr.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/tr.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/tr.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/tr.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/tr.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/tr.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/tr.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/tr.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/tr.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/tr.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/tr.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/tr.5757.95d725830862fe7f95a6.js b/charting_library/bundles/tr.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/tr.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/tr.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/tr.6150.106e94ed53021dc4c472.js b/charting_library/bundles/tr.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/tr.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/tr.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/tr.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/tr.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/tr.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/tr.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/tr.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/tr.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/tr.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/tr.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/tr.6703.1743a792578849679683.js b/charting_library/bundles/tr.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/tr.6703.1743a792578849679683.js rename to charting_library/bundles/tr.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/tr.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/tr.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/tr.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/tr.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/tr.6822.2544321c5d68460201d9.js b/charting_library/bundles/tr.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/tr.6822.2544321c5d68460201d9.js rename to charting_library/bundles/tr.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/tr.711.d3421dced32340eeb9f4.js b/charting_library/bundles/tr.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/tr.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/tr.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/tr.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/tr.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/tr.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/tr.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/tr.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/tr.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/tr.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/tr.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/tr.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/tr.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/tr.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/tr.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/tr.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/tr.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/tr.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/tr.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/tr.877.587bafd928ddad2f966a.js b/charting_library/bundles/tr.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/tr.877.587bafd928ddad2f966a.js rename to charting_library/bundles/tr.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/tr.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/tr.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/tr.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/tr.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/tr.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/tr.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/tr.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/tr.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/vi.101.4517d8dd1585d66847fa.js b/charting_library/bundles/vi.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/vi.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/vi.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/vi.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/vi.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/vi.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/vi.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/vi.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/vi.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/vi.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/vi.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/vi.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/vi.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/vi.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/vi.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/vi.2238.d638344d73126d8add4d.js b/charting_library/bundles/vi.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/vi.2238.d638344d73126d8add4d.js rename to charting_library/bundles/vi.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/vi.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/vi.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/vi.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/vi.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/vi.2364.26e8b776a77b5171378c.js b/charting_library/bundles/vi.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/vi.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/vi.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/vi.2530.92a80ead64dfba712aee.js b/charting_library/bundles/vi.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/vi.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/vi.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/vi.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/vi.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/vi.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/vi.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/vi.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/vi.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/vi.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/vi.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/vi.359.0c687d4250a6e817ca07.js b/charting_library/bundles/vi.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/vi.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/vi.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/vi.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/vi.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/vi.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/vi.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/vi.4026.7fd0f0d599a897631492.js b/charting_library/bundles/vi.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/vi.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/vi.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/vi.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/vi.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/vi.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/vi.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/vi.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/vi.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/vi.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/vi.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/vi.4166.370b248aa3a4216cb655.js b/charting_library/bundles/vi.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/vi.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/vi.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/vi.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/vi.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/vi.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/vi.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/vi.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/vi.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/vi.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/vi.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/vi.5757.95d725830862fe7f95a6.js b/charting_library/bundles/vi.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/vi.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/vi.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/vi.6150.106e94ed53021dc4c472.js b/charting_library/bundles/vi.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/vi.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/vi.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/vi.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/vi.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/vi.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/vi.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/vi.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/vi.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/vi.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/vi.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/vi.6703.1743a792578849679683.js b/charting_library/bundles/vi.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/vi.6703.1743a792578849679683.js rename to charting_library/bundles/vi.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/vi.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/vi.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/vi.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/vi.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/vi.6822.2544321c5d68460201d9.js b/charting_library/bundles/vi.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/vi.6822.2544321c5d68460201d9.js rename to charting_library/bundles/vi.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/vi.711.d3421dced32340eeb9f4.js b/charting_library/bundles/vi.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/vi.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/vi.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/vi.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/vi.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/vi.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/vi.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/vi.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/vi.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/vi.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/vi.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/vi.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/vi.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/vi.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/vi.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/vi.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/vi.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/vi.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/vi.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/vi.877.587bafd928ddad2f966a.js b/charting_library/bundles/vi.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/vi.877.587bafd928ddad2f966a.js rename to charting_library/bundles/vi.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/vi.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/vi.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/vi.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/vi.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/vi.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/vi.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/vi.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/vi.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/zh.101.4517d8dd1585d66847fa.js b/charting_library/bundles/zh.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/zh.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/zh.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/zh.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/zh.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/zh.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/zh.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/zh.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/zh.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/zh.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/zh.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/zh.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/zh.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/zh.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/zh.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/zh.2238.d638344d73126d8add4d.js b/charting_library/bundles/zh.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/zh.2238.d638344d73126d8add4d.js rename to charting_library/bundles/zh.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/zh.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/zh.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/zh.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/zh.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/zh.2364.26e8b776a77b5171378c.js b/charting_library/bundles/zh.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/zh.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/zh.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/zh.2530.92a80ead64dfba712aee.js b/charting_library/bundles/zh.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/zh.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/zh.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/zh.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/zh.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/zh.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/zh.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/zh.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/zh.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/zh.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/zh.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/zh.359.0c687d4250a6e817ca07.js b/charting_library/bundles/zh.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/zh.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/zh.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/zh.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/zh.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/zh.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/zh.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/zh.4026.7fd0f0d599a897631492.js b/charting_library/bundles/zh.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/zh.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/zh.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/zh.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/zh.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/zh.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/zh.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/zh.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/zh.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/zh.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/zh.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/zh.4166.370b248aa3a4216cb655.js b/charting_library/bundles/zh.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/zh.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/zh.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/zh.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/zh.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/zh.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/zh.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/zh.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/zh.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/zh.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/zh.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/zh.5757.95d725830862fe7f95a6.js b/charting_library/bundles/zh.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/zh.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/zh.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/zh.6150.106e94ed53021dc4c472.js b/charting_library/bundles/zh.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/zh.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/zh.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/zh.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/zh.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/zh.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/zh.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/zh.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/zh.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/zh.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/zh.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/zh.6703.1743a792578849679683.js b/charting_library/bundles/zh.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/zh.6703.1743a792578849679683.js rename to charting_library/bundles/zh.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/zh.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/zh.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/zh.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/zh.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/zh.6822.2544321c5d68460201d9.js b/charting_library/bundles/zh.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/zh.6822.2544321c5d68460201d9.js rename to charting_library/bundles/zh.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/zh.711.d3421dced32340eeb9f4.js b/charting_library/bundles/zh.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/zh.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/zh.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/zh.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/zh.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/zh.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/zh.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/zh.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/zh.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/zh.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/zh.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/zh.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/zh.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/zh.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/zh.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/zh.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/zh.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/zh.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/zh.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/zh.877.587bafd928ddad2f966a.js b/charting_library/bundles/zh.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/zh.877.587bafd928ddad2f966a.js rename to charting_library/bundles/zh.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/zh.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/zh.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/zh.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/zh.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/zh.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/zh.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/zh.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/zh.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/bundles/zh_TW.101.4517d8dd1585d66847fa.js b/charting_library/bundles/zh_TW.101.9a36a61f7eb7b2afa18a.js similarity index 100% rename from charting_library/bundles/zh_TW.101.4517d8dd1585d66847fa.js rename to charting_library/bundles/zh_TW.101.9a36a61f7eb7b2afa18a.js diff --git a/charting_library/bundles/zh_TW.1184.3c10520fb59f82b9730e.js b/charting_library/bundles/zh_TW.1184.31f15426028027b1489d.js similarity index 100% rename from charting_library/bundles/zh_TW.1184.3c10520fb59f82b9730e.js rename to charting_library/bundles/zh_TW.1184.31f15426028027b1489d.js diff --git a/charting_library/bundles/zh_TW.1595.ed5e66ea75fe7cba898c.js b/charting_library/bundles/zh_TW.1595.5af7cac5f9beb6209b28.js similarity index 100% rename from charting_library/bundles/zh_TW.1595.ed5e66ea75fe7cba898c.js rename to charting_library/bundles/zh_TW.1595.5af7cac5f9beb6209b28.js diff --git a/charting_library/bundles/zh_TW.1962.06a12ee4dc9c57172030.js b/charting_library/bundles/zh_TW.1962.e5692070aa1cd0f04ce3.js similarity index 100% rename from charting_library/bundles/zh_TW.1962.06a12ee4dc9c57172030.js rename to charting_library/bundles/zh_TW.1962.e5692070aa1cd0f04ce3.js diff --git a/charting_library/bundles/zh_TW.2238.d638344d73126d8add4d.js b/charting_library/bundles/zh_TW.2238.d6b7f80851483fc0e28a.js similarity index 100% rename from charting_library/bundles/zh_TW.2238.d638344d73126d8add4d.js rename to charting_library/bundles/zh_TW.2238.d6b7f80851483fc0e28a.js diff --git a/charting_library/bundles/zh_TW.2257.eb08e43667e8fa70ab7c.js b/charting_library/bundles/zh_TW.2257.d6bd39830cbe7577fe2e.js similarity index 100% rename from charting_library/bundles/zh_TW.2257.eb08e43667e8fa70ab7c.js rename to charting_library/bundles/zh_TW.2257.d6bd39830cbe7577fe2e.js diff --git a/charting_library/bundles/zh_TW.2364.26e8b776a77b5171378c.js b/charting_library/bundles/zh_TW.2364.0512844d92ec568be1c1.js similarity index 100% rename from charting_library/bundles/zh_TW.2364.26e8b776a77b5171378c.js rename to charting_library/bundles/zh_TW.2364.0512844d92ec568be1c1.js diff --git a/charting_library/bundles/zh_TW.2530.92a80ead64dfba712aee.js b/charting_library/bundles/zh_TW.2530.adc265598cdcdb54de60.js similarity index 100% rename from charting_library/bundles/zh_TW.2530.92a80ead64dfba712aee.js rename to charting_library/bundles/zh_TW.2530.adc265598cdcdb54de60.js diff --git a/charting_library/bundles/zh_TW.2646.4c273cf476cee8769a9f.js b/charting_library/bundles/zh_TW.2646.6d4337fd3d77bed4cd79.js similarity index 100% rename from charting_library/bundles/zh_TW.2646.4c273cf476cee8769a9f.js rename to charting_library/bundles/zh_TW.2646.6d4337fd3d77bed4cd79.js diff --git a/charting_library/bundles/zh_TW.2870.c88d71d02331aa0654ac.js b/charting_library/bundles/zh_TW.2870.94eec294c5a8f0610249.js similarity index 100% rename from charting_library/bundles/zh_TW.2870.c88d71d02331aa0654ac.js rename to charting_library/bundles/zh_TW.2870.94eec294c5a8f0610249.js diff --git a/charting_library/bundles/zh_TW.359.0c687d4250a6e817ca07.js b/charting_library/bundles/zh_TW.359.db67c54d050dcf386a2b.js similarity index 100% rename from charting_library/bundles/zh_TW.359.0c687d4250a6e817ca07.js rename to charting_library/bundles/zh_TW.359.db67c54d050dcf386a2b.js diff --git a/charting_library/bundles/zh_TW.3796.a2ed46eec565ebc7e47c.js b/charting_library/bundles/zh_TW.3796.83c778227bf8017ea9cf.js similarity index 100% rename from charting_library/bundles/zh_TW.3796.a2ed46eec565ebc7e47c.js rename to charting_library/bundles/zh_TW.3796.83c778227bf8017ea9cf.js diff --git a/charting_library/bundles/zh_TW.4026.7fd0f0d599a897631492.js b/charting_library/bundles/zh_TW.4026.45ee1092b1b9fbf8f257.js similarity index 100% rename from charting_library/bundles/zh_TW.4026.7fd0f0d599a897631492.js rename to charting_library/bundles/zh_TW.4026.45ee1092b1b9fbf8f257.js diff --git a/charting_library/bundles/zh_TW.4040.c27ab6c1c6d57ffb7a98.js b/charting_library/bundles/zh_TW.4040.e7e117800dcdd26646f0.js similarity index 100% rename from charting_library/bundles/zh_TW.4040.c27ab6c1c6d57ffb7a98.js rename to charting_library/bundles/zh_TW.4040.e7e117800dcdd26646f0.js diff --git a/charting_library/bundles/zh_TW.4109.ada5f6827b7fbbf84f78.js b/charting_library/bundles/zh_TW.4109.fb5805530255b4d350dd.js similarity index 100% rename from charting_library/bundles/zh_TW.4109.ada5f6827b7fbbf84f78.js rename to charting_library/bundles/zh_TW.4109.fb5805530255b4d350dd.js diff --git a/charting_library/bundles/zh_TW.4166.370b248aa3a4216cb655.js b/charting_library/bundles/zh_TW.4166.2b61ec36252115d9d6f5.js similarity index 100% rename from charting_library/bundles/zh_TW.4166.370b248aa3a4216cb655.js rename to charting_library/bundles/zh_TW.4166.2b61ec36252115d9d6f5.js diff --git a/charting_library/bundles/zh_TW.4703.5b413cecd3b370a528a4.js b/charting_library/bundles/zh_TW.4703.56cf74984f3c0c091270.js similarity index 100% rename from charting_library/bundles/zh_TW.4703.5b413cecd3b370a528a4.js rename to charting_library/bundles/zh_TW.4703.56cf74984f3c0c091270.js diff --git a/charting_library/bundles/zh_TW.5683.fd49037b1d9f1aedc42b.js b/charting_library/bundles/zh_TW.5683.fe97bc110a09f7a85bf1.js similarity index 100% rename from charting_library/bundles/zh_TW.5683.fd49037b1d9f1aedc42b.js rename to charting_library/bundles/zh_TW.5683.fe97bc110a09f7a85bf1.js diff --git a/charting_library/bundles/zh_TW.5757.95d725830862fe7f95a6.js b/charting_library/bundles/zh_TW.5757.3f945d17f3d4e46d524e.js similarity index 100% rename from charting_library/bundles/zh_TW.5757.95d725830862fe7f95a6.js rename to charting_library/bundles/zh_TW.5757.3f945d17f3d4e46d524e.js diff --git a/charting_library/bundles/zh_TW.6150.106e94ed53021dc4c472.js b/charting_library/bundles/zh_TW.6150.a11d291ee03946014bc0.js similarity index 100% rename from charting_library/bundles/zh_TW.6150.106e94ed53021dc4c472.js rename to charting_library/bundles/zh_TW.6150.a11d291ee03946014bc0.js diff --git a/charting_library/bundles/zh_TW.6302.80747463bb3e8bcc2c72.js b/charting_library/bundles/zh_TW.6302.50eaa484246d9138be47.js similarity index 100% rename from charting_library/bundles/zh_TW.6302.80747463bb3e8bcc2c72.js rename to charting_library/bundles/zh_TW.6302.50eaa484246d9138be47.js diff --git a/charting_library/bundles/zh_TW.6342.d3b2be85f6d4610dcbff.js b/charting_library/bundles/zh_TW.6342.98849a5d0efe1079a157.js similarity index 100% rename from charting_library/bundles/zh_TW.6342.d3b2be85f6d4610dcbff.js rename to charting_library/bundles/zh_TW.6342.98849a5d0efe1079a157.js diff --git a/charting_library/bundles/zh_TW.6703.1743a792578849679683.js b/charting_library/bundles/zh_TW.6703.fb8e84aef31e28d9d3a5.js similarity index 100% rename from charting_library/bundles/zh_TW.6703.1743a792578849679683.js rename to charting_library/bundles/zh_TW.6703.fb8e84aef31e28d9d3a5.js diff --git a/charting_library/bundles/zh_TW.6778.f6bc65abbb1f0505c763.js b/charting_library/bundles/zh_TW.6778.11c8f175819c2a9585e8.js similarity index 100% rename from charting_library/bundles/zh_TW.6778.f6bc65abbb1f0505c763.js rename to charting_library/bundles/zh_TW.6778.11c8f175819c2a9585e8.js diff --git a/charting_library/bundles/zh_TW.6822.2544321c5d68460201d9.js b/charting_library/bundles/zh_TW.6822.dc35accbb7718f87443e.js similarity index 100% rename from charting_library/bundles/zh_TW.6822.2544321c5d68460201d9.js rename to charting_library/bundles/zh_TW.6822.dc35accbb7718f87443e.js diff --git a/charting_library/bundles/zh_TW.711.d3421dced32340eeb9f4.js b/charting_library/bundles/zh_TW.711.382d355b9d621474ad0c.js similarity index 100% rename from charting_library/bundles/zh_TW.711.d3421dced32340eeb9f4.js rename to charting_library/bundles/zh_TW.711.382d355b9d621474ad0c.js diff --git a/charting_library/bundles/zh_TW.8066.ed291360c7ac5d0968e2.js b/charting_library/bundles/zh_TW.8066.a8f5a3dc8bd34ea86495.js similarity index 100% rename from charting_library/bundles/zh_TW.8066.ed291360c7ac5d0968e2.js rename to charting_library/bundles/zh_TW.8066.a8f5a3dc8bd34ea86495.js diff --git a/charting_library/bundles/zh_TW.8370.66124aa6a34f78ec9296.js b/charting_library/bundles/zh_TW.8370.27448531d54b88e152ec.js similarity index 100% rename from charting_library/bundles/zh_TW.8370.66124aa6a34f78ec9296.js rename to charting_library/bundles/zh_TW.8370.27448531d54b88e152ec.js diff --git a/charting_library/bundles/zh_TW.8622.758c5b471bafe0d546d0.js b/charting_library/bundles/zh_TW.8622.1c50c41ea462dc532246.js similarity index 100% rename from charting_library/bundles/zh_TW.8622.758c5b471bafe0d546d0.js rename to charting_library/bundles/zh_TW.8622.1c50c41ea462dc532246.js diff --git a/charting_library/bundles/zh_TW.8697.152c4ad863f30d749c6a.js b/charting_library/bundles/zh_TW.8697.8775a7191ab3c8155460.js similarity index 100% rename from charting_library/bundles/zh_TW.8697.152c4ad863f30d749c6a.js rename to charting_library/bundles/zh_TW.8697.8775a7191ab3c8155460.js diff --git a/charting_library/bundles/zh_TW.877.587bafd928ddad2f966a.js b/charting_library/bundles/zh_TW.877.5e88b7d3683c91bd81e8.js similarity index 100% rename from charting_library/bundles/zh_TW.877.587bafd928ddad2f966a.js rename to charting_library/bundles/zh_TW.877.5e88b7d3683c91bd81e8.js diff --git a/charting_library/bundles/zh_TW.9093.65a8647d45d3cdb6a6b3.js b/charting_library/bundles/zh_TW.9093.c8b0300134e591e923fc.js similarity index 100% rename from charting_library/bundles/zh_TW.9093.65a8647d45d3cdb6a6b3.js rename to charting_library/bundles/zh_TW.9093.c8b0300134e591e923fc.js diff --git a/charting_library/bundles/zh_TW.9321.5ffeb3c5034b2563d2e4.js b/charting_library/bundles/zh_TW.9321.7a432fdf26ec4e6555c4.js similarity index 100% rename from charting_library/bundles/zh_TW.9321.5ffeb3c5034b2563d2e4.js rename to charting_library/bundles/zh_TW.9321.7a432fdf26ec4e6555c4.js diff --git a/charting_library/charting_library.cjs.js b/charting_library/charting_library.cjs.js index fec3b17b..7b1853c4 100644 --- a/charting_library/charting_library.cjs.js +++ b/charting_library/charting_library.cjs.js @@ -1 +1 @@ -"use strict";var e,t,i,o,r,n,a,s,l,d,c,h,g,u,C,p,S,m,y,_,T,b,P,L,A,w,f,v,I,O,R,D,V,k,E,F,W,x,M,B,N,U,H,j,z,G,$,J,q,K,Z,Q,Y,X,ee,te,ie,oe,re,ne,ae,se,le,de,ce;Object.defineProperty(exports,"__esModule",{value:!0}),(e=exports.ActionId||(exports.ActionId={})).UnknownAction="UnknownAction",e.Spinner="Spinner",e.Loading="Loading",e.AlertAdd="Alert.Add",e.AlertEdit="Alert.Edit",e.AlertsClone="Alerts.Clone",e.AlertsRemove="Alerts.Remove",e.AlertsRemoveAll="Alerts.RemoveAll",e.AlertsRemoveFiltered="Alerts.RemoveFiltered",e.AlertsRemoveAllInactive="Alerts.RemoveAllInactive",e.AlertsRemoveFires="Alerts.RemoveFires",e.AlertsRestart="Alerts.Restart",e.AlertsRestartAllInactive="Alerts.RestartAllInactive",e.AlertsRestartFilteredInactive="Alerts.RestartFilteredInactive",e.AlertsStop="Alerts.Stop",e.AlertsStopAll="Alerts.StopAll",e.AlertsStopFilteredActive="Alerts.StopFilteredActive",e.AlertsExportFiresToCSV="Alerts.ExportFiresToCSV",e.AlertsLogClear="AlertsLog.Clear",e.ChartAddIndicatorToAllCharts="Chart.AddIndicatorToAllCharts",e.ChartAddSymbolToWatchList="Chart.AddSymbolToWatchList",e.ChartAlertLabelToggleExtendLines="Chart.AlertLabel.ToggleExtendLines",e.ChartApplyIndicatorsToAllCharts="Chart.ApplyIndicatorsToAllCharts",e.ChartIndicatorApplyChildIndicator="Chart.Indicator.ApplyChildIndicator",e.ChartIndicatorApplyFinancials="Chart.Indicator.ApplyFinancials",e.ChartIndicatorAbout="Chart.Indicator.About",e.ChartIndicatorPineLogs="Chart.Indicator.PineLogs",e.ChartIndicatorPineSource="Chart.Indicator.PineSource",e.ChartIndicatorAddFavorites="Chart.Indicator.AddFavorites",e.ChartChangeTimeZone="Chart.ChangeTimeZone",e.ChartClipboardCopyPrice="Chart.Clipboard.CopyPrice",e.ChartClipboardCopyLineTools="Chart.Clipboard.CopyLineTools",e.ChartClipboardCopySource="Chart.Clipboard.CopySource",e.ChartClipboardPasteSource="Chart.Clipboard.PasteSource",e.ChartCrosshairLockVerticalCursor="Chart.Crosshair.LockVerticalCursor",e.ChartCrosshairPlusButtonDrawHorizontalLine="Chart.Crosshair.PlusButton.DrawHorizontalLine",e.ChartCustomActionId="Chart.CustomActionId",e.ChartDialogsShowChangeInterval="Chart.Dialogs.ShowChangeInterval",e.ChartDialogsShowChangeSymbol="Chart.Dialogs.ShowChangeSymbol",e.ChartDialogsShowCompareOrAddSymbol="Chart.Dialogs.ShowCompareOrAddSymbol",e.ChartDialogsShowGeneralSettings="Chart.Dialogs.ShowGeneralSettings",e.ChartDialogsShowGeneralSettingsLegendTab="Chart.Dialogs.ShowGeneralSettings.LegendTab",e.ChartDialogsShowGeneralSettingsSymbolTab="Chart.Dialogs.ShowGeneralSettings.SymbolTab",e.ChartDialogsShowGeneralScalesTab="Chart.Dialogs.ShowGeneralSettings.ScalesTab",e.ChartDialogsShowGeneralSettingsEventsAndAlertsTab="Chart.Dialogs.ShowGeneralSettings.EventsAndAlertsTab",e.ChartDialogsShowGoToDate="Chart.Dialogs.ShowGoToDate",e.ChartDialogsShowInsertIndicators="Chart.Dialogs.ShowInsertIndicators",e.ChartDialogsShowInsertFinancials="Chart.Dialogs.ShowInsertFinancials",e.ChartDialogsShowSymbolInfo="Chart.Dialogs.ShowSymbolInfo",e.ChartDrawingToolbarToggleVisibility="Chart.DrawingToolbar.ToggleVisibility",e.ChartExternalActionId="Chart.ExternalActionId",e.ChartFavoriteDrawingToolsToolbarHide="Chart.FavoriteDrawingToolsToolbar.Hide",e.ChartIndicatorShowSettingsDialog="Chart.Indicator.ShowSettingsDialog",e.ChartLegendToggleLastDayChangeValuesVisibility="Chart.Legend.ToggleLastDayChangeValuesVisibility",e.ChartLinkingGroupSync="Chart.LinkingGroupSync",e.ChartLinkingGroupSyncChangeGroup="Chart.LinkingGroupSync.ChangeGroup",e.ChartLegendToggleBarChangeValuesVisibility="Chart.Legend.ToggleBarChangeValuesVisibility",e.ChartLegendTogglePriceSourceVisibility="Chart.Legend.TogglePriceSourceVisibility",e.ChartLegendToggleIndicatorArgumentsVisibility="Chart.Legend.ToggleIndicatorArgumentsVisibility",e.ChartLegendToggleIndicatorTitlesVisibility="Chart.Legend.ToggleIndicatorTitlesVisibility",e.ChartLegendToggleIndicatorValuesVisibility="Chart.Legend.ToggleIndicatorValuesVisibility",e.ChartLegendToggleOhlcValuesVisibility="Chart.Legend.ToggleOhlcValuesVisibility",e.ChartLegendToggleOpenMarketStatusVisibility="Chart.Legend.ToggleOpenMarketStatusVisibility",e.ChartLegendToggleSymbolVisibility="Chart.Legend.ToggleSymbolVisibility",e.ChartLegendToggleVolumeVisibility="Chart.Legend.ToggleVolumeVisibility",e.ChartLines="Chart.Lines",e.ChartLinesToggleBidAskLinesVisibility="Chart.Lines.ToggleBidAskLinesVisibility",e.ChartLinesToggleHighLowLinesVisibility="Chart.Lines.ToggleHighLowLinesVisibility",e.ChartLinesToggleAverageLineVisibility="Chart.Lines.ToggleAverageLineVisibility",e.ChartLinesTogglePrePostMarketLineVisibility="Chart.Lines.TogglePrePostMarketLineVisibility",e.ChartLinesTogglePrePostMarketPriceLineVisibility="Chart.Lines.TogglePrePostMarketPriceLineVisibility",e.ChartLinesToggleSeriesPrevCloseLineVisibility="Chart.Lines.ToggleSeriesPrevCloseLineVisibility",e.ChartLinesToggleSeriesPriceLineVisibility="Chart.Lines.ToggleSeriesPriceLineVisibility",e.ChartLineToolBarsPatternToggleFlipped="Chart.LineTool.BarsPattern.ToggleFlipped",e.ChartLineToolBarsPatternToggleMirrored="Chart.LineTool.BarsPattern.ToggleMirrored",e.ChartLineToolClone="Chart.LineTool.Clone",e.ChartLineToolCreateLimitOrderFromState="Chart.LineTool.CreateLimitOrderFromState",e.ChartLineToolElliotChangeDegreeProperty="Chart.LineTool.Elliot.ChangeDegreeProperty",e.ChartLineToolNoSync="Chart.LineTool.NoSync",e.ChartLineToolPitchforkChangeTypeToInside="Chart.LineTool.Pitchfork.ChangeTypeToInside",e.ChartLineToolPitchforkChangeTypeToModifiedSchiff="Chart.LineTool.Pitchfork.ChangeTypeToModifiedSchiff",e.ChartLineToolPitchforkChangeTypeToOriginal="Chart.LineTool.Pitchfork.ChangeTypeToOriginal",e.ChartLineToolPitchforkChangeTypeToSchiff="Chart.LineTool.Pitchfork.ChangeTypeToSchiff",e.ChartLineToolSyncInLayout="Chart.LineTool.SyncInLayout",e.ChartLineToolSyncGlobally="Chart.LineTool.SyncGlobally",e.ChartLineToolTemplates="Chart.LineTool.Templates",e.ChartLineToolTemplatesApply="Chart.LineTool.Templates.Apply",e.ChartLineToolTemplatesApplyDefaults="Chart.LineTool.Templates.ApplyDefaults",e.ChartLineToolTemplatesSaveAs="Chart.LineTool.Templates.SaveAs",e.ChartLineToolToolbarChangeFontSizeProperty="Chart.LineTool.Toolbar.ChangeFontSizeProperty",e.ChartLineToolToolbarChangeLineStyleToDashed="Chart.LineTool.Toolbar.ChangeLineStyleToDashed",e.ChartLineToolToolbarChangeLineStyleToDotted="Chart.LineTool.Toolbar.ChangeLineStyleToDotted",e.ChartLineToolToolbarChangeLineStyleToSolid="Chart.LineTool.Toolbar.ChangeLineStyleToSolid",e.ChartMarksToggleVisibility="Chart.Marks.ToggleVisibility",e.ChartMoveChartInLayout="Chart.MoveChartInLayout",e.ChartMoveChartInLayoutBack="Chart.MoveChartInLayout.Back",e.ChartMoveChartInLayoutForward="Chart.MoveChartInLayout.Forward",e.ChartTpoResetAllMergesAndSplits="Chart.TPO.ResetAllMergesAndSplits",e.ChartTpoSplitBlock="Chart.TPO.SplitBlock",e.ChartTpoMergeBlock="Chart.TPO.MergeBlock",e.ChartObjectTreeShow="Chart.ObjectTree.Show",e.ChartDataWindowShow="Chart.DataWindow.Show",e.ChartPaneControlsDeletePane="Chart.PaneControls.DeletePane",e.ChartPaneControlsMaximizePane="Chart.PaneControls.MaximizePane",e.ChartPaneControlsMinimizePane="Chart.PaneControls.MinimizePane",e.ChartPaneControlsMovePaneDown="Chart.PaneControls.MovePaneDown",e.ChartPaneControlsMovePaneUp="Chart.PaneControls.MovePaneUp",e.ChartPaneControlsCollapsePane="Chart.PaneControls.CollapsePane",e.ChartPaneControlsRestorePane="Chart.PaneControls.RestorePane",e.ChartPriceScaleLabels="Chart.PriceScale.Labels",e.ChartPriceScaleLabelsToggleBidAskLabelsVisibility="Chart.PriceScale.Labels.ToggleBidAskLabelsVisibility",e.ChartPriceScaleLabelsToggleHighLowPriceLabelsVisibility="Chart.PriceScale.Labels.ToggleHighLowPriceLabelsVisibility",e.ChartPriceScaleLabelsToggleAveragePriceLabelVisibility="Chart.PriceScale.Labels.ToggleAveragePriceLabelVisibility",e.ChartPriceScaleLabelsToggleIndicatorsNameLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsNameLabelsVisibility",e.ChartPriceScaleLabelsToggleIndicatorsValueLabelsVisibility="Chart.PriceScale.Labels.ToggleIndicatorsValueLabelsVisibility",e.ChartPriceScaleLabelsTogglePrePostMarketLabelsVisibility="Chart.PriceScale.Labels.TogglePrePostMarketLabelsVisibility",e.ChartPriceScaleLabelsToggleNoOverlappingLabelsVisibility="Chart.PriceScale.Labels.ToggleNoOverlappingLabelsVisibility",e.ChartPriceScaleLabelsToggleSeriesLastValueVisibility="Chart.PriceScale.Labels.ToggleSeriesLastValueVisibility",e.ChartPriceScaleLabelsToggleSymbolNameLabelsVisibility="Chart.PriceScale.Labels.ToggleSymbolNameLabelsVisibility",e.ChartPriceScaleLabelsToggleSymbolPrevCloseValueVisibility="Chart.PriceScale.Labels.ToggleSymbolPrevCloseValueVisibility",e.ChartPriceScaleMergeAllScales="Chart.PriceScale.MergeAllScales",e.ChartPriceScaleMergeAllScalesToLeft="Chart.PriceScale.MergeAllScalesToLeft",e.ChartPriceScaleMergeAllScalesToRight="Chart.PriceScale.MergeAllScalesToRight",e.ChartPriceScaleMoveToLeft="Chart.PriceScale.MoveToLeft",e.ChartPriceScaleMoveToRight="Chart.PriceScale.MoveToRight",e.ChartPriceScaleReset="Chart.PriceScale.Reset",e.ChartPriceScaleToggleAddOrderPlusButtonVisibility="Chart.PriceScale.ToggleAddOrderPlusButtonVisibility",e.ChartPriceScaleToggleAutoScale="Chart.PriceScale.ToggleAutoScale",e.ChartPriceScaleToggleAutoScaleSeriesOnly="Chart.PriceScale.ToggleAutoScaleSeriesOnly",e.ChartPriceScaleToggleCountdownToBarCloseVisibility="Chart.PriceScale.ToggleCountdownToBarCloseVisibility",e.ChartPriceScaleToggleIndexedTo100="Chart.PriceScale.ToggleIndexedTo100",e.ChartPriceScaleToggleInvertScale="Chart.PriceScale.ToggleInvertScale",e.ChartPriceScaleToggleLogarithmic="Chart.PriceScale.ToggleLogarithmic",e.ChartPriceScaleTogglePercentage="Chart.PriceScale.TogglePercentage",e.ChartPriceScaleToggleRegular="Chart.PriceScale.ToggleRegular",e.ChartRedo="Chart.Redo",e.ChartRemoveAllIndicators="Chart.RemoveAllIndicators",e.ChartRemoveAllIndicatorsAndLineTools="Chart.RemoveAllIndicatorsAndLineTools",e.ChartRemoveAllLineTools="Chart.RemoveAllLineTools",e.ChartScalesReset="Chart.Scales.Reset",e.ChartScalesToggleLockPriceToBarRatio="Chart.Scales.ToggleLockPriceToBarRatio",e.ChartScrollToLineTool="Chart.ScrollToLineTool",e.ChartSelectedObjectHide="Chart.SelectedObject.Hide",e.ChartSelectedObjectRemove="Chart.SelectedObject.Remove",e.ChartSelectedObjectShow="Chart.SelectedObject.Show",e.ChartSelectedObjectShowSettingsDialog="Chart.SelectedObject.ShowSettingsDialog",e.ChartSelectedObjectToggleLocked="Chart.SelectedObject.ToggleLocked",e.ChartSeriesPriceScaleToggleAutoScale="Chart.Series.PriceScale.ToggleAutoScale",e.ChartSeriesPriceScaleToggleIndexedTo100="Chart.Series.PriceScale.ToggleIndexedTo100",e.ChartSeriesPriceScaleToggleInvertPriceScale="Chart.Series.PriceScale.ToggleInvertPriceScale",e.ChartSeriesPriceScaleToggleLogarithmic="Chart.Series.PriceScale.ToggleLogarithmic",e.ChartSeriesPriceScaleTogglePercentage="Chart.Series.PriceScale.TogglePercentage",e.ChartSeriesPriceScaleToggleRegular="Chart.Series.PriceScale.ToggleRegular",e.ChartSessionBreaksToggleVisibility="Chart.SessionBreaks.ToggleVisibility",e.ChartSetSession="Chart.SetSession",e.ChartSourceChangePriceScale="Chart.Source.ChangePriceScale",e.ChartSourceMergeDown="Chart.Source.MergeDown",e.ChartSourceMergeUp="Chart.Source.MergeUp",e.ChartSourceMoveToNoScale="Chart.Source.MoveToNoScale",e.ChartSourceMoveToOtherScale="Chart.Source.MoveToOtherScale",e.ChartSourceMoveToPane="Chart.Source.MoveToPane",e.ChartSourceUnmergeDown="Chart.Source.UnmergeDown",e.ChartSourceUnmergeUp="Chart.Source.UnmergeUp",e.ChartSourceVisualOrder="Chart.Source.VisualOrder",e.ChartSourceVisualOrderBringForward="Chart.Source.VisualOrder.BringForward",e.ChartSourceVisualOrderBringToFront="Chart.Source.VisualOrder.BringToFront",e.ChartSourceVisualOrderSendBackward="Chart.Source.VisualOrder.SendBackward",e.ChartSourceVisualOrderSendToBack="Chart.Source.VisualOrder.SendToBack",e.ChartSourceResetInputPoints="Chart.Source.ResetInputPoints",e.ChartThemeApply="Chart.Theme.Apply",e.ChartThemeApplyCustom="Chart.Theme.Apply.Custom",e.ChartThemeSaveAs="Chart.Theme.SaveAs",e.ChartTimeScaleReset="Chart.TimeScale.Reset",e.ChartUndo="Chart.Undo",e.ChartShowAllIdeas="Chart.ShowAllIdeas",e.ChartShowIdeasOfFollowedUsers="Chart.ShowIdeasOfFollowedUsers",e.ChartShowMyIdeasOnly="Chart.ShowMyIdeasOnly",e.ChartToggleVisibilityAllLineTools="Chart.ToggleVisibility.AllLineTools",e.ChartToggleVisibilityContinuousContractSwitch="Chart.ToggleVisibility.ContinuousContractSwitch",e.ChartToggleVisibilityContractExpiration="Chart.ToggleVisibility.ContractExpiration",e.ChartToggleVisibilityDividends="Chart.ToggleVisibility.Dividends",e.ChartToggleVisibilityEarnings="Chart.ToggleVisibility.Earnings",e.ChartToggleVisibilityEconomicEvents="Chart.ToggleVisibility.EconomicEvents",e.ChartToggleVisibilitySplits="Chart.ToggleVisibility.Splits",e.ChartToggleVisibilityLatestNewsAndMinds="Chart.ToggleVisibility.LatestNewsAndMinds",e.ChartSourceIntervalsVisibility="Chart.Source.IntervalsVisibility",e.ChartSourceIntervalsVisibilityCurrentAndAbove="Chart.Source.IntervalsVisibility.CurrentAndAbove",e.ChartSourceIntervalsVisibilityCurrentAndBelow="Chart.Source.IntervalsVisibility.CurrentAndBelow",e.ChartSourceIntervalsVisibilityOnlyCurrent="Chart.Source.IntervalsVisibility.Current",e.ChartSourceIntervalsVisibilityAll="Chart.Source.IntervalsVisibility.All",e.NoteCreate="Note.Create",e.NoteEdit="Note.Edit",e.NoteRemove="Note.Remove",e.ObjectsTreeCreateGroup="ObjectsTree.CreateGroup",e.ObjectsTreeRemoveItem="ObjectsTree.RemoveItem",e.ObjectsTreeRenameItem="ObjectsTree.RenameItem",e.ObjectsTreeToggleItemLocked="ObjectsTree.ToggleItemLocked",e.ObjectsTreeToggleItemVisibility="ObjectsTree.ToggleItemVisibility",e.PineEditorConsoleCopyMessage="PineEditor.Console.CopyMessage",e.PineEditorConsoleToggleVisibility="PineEditor.Console.ToggleVisibility",e.PineEditorConsoleClear="PineEditor.Console.Clear",e.ScreenerAddSymbolToCompare="Screener.AddSymbolToCompare",e.ScreenerColumnRemove="Screener.Column.Remove",e.ScreenerFilterChange="Screener.Filter.Change",e.ScreenerFilterReset="Screener.Filter.Reset",e.ScreenerOpenSymbolChart="Screener.OpenSymbolChart",e.ScreenerOpenSymbolOverview="Screener.OpenSymbolOverview",e.ScreenerToggleVisibilityCurrency="Screener.ToggleVisibility.Currency",e.ScreenerToggleVisibilityDescription="Screener.ToggleVisibility.Description",e.ScreenerToggleVisibilityRating="Screener.ToggleVisibility.Rating",e.ScreenerToggleVisibilitySymbolType="Screener.ToggleVisibility.SymbolType",e.TradingCancelOrder="Trading.CancelOrder",e.TradingClosePosition="Trading.ClosePosition",e.TradingCustomActionId="Trading.CustomActionId",e.TradingDOMPlaceLimitOrder="Trading.DOMPlaceLimitOrder",e.TradingDOMPlaceMarketOrder="Trading.DOMPlaceMarketOrder",e.TradingDOMPlaceStopLimitOrder="Trading.DOMPlaceStopLimitOrder",e.TradingDOMPlaceStopOrder="Trading.DOMPlaceStopOrder",e.TradingEditOrder="Trading.EditOrder",e.TradingModifyPosition="Trading.ModifyPosition",e.TradingReversePosition="Trading.ReversePosition",e.TradingSellBuyButtonsToggleVisibility="Trading.SellBuyButtonsToggleVisibility",e.TradingTradeFromChart="Trading.TradeFromChart",e.TradingNoOverlapMode="Trading.NoOverlapMode",e.TradingShowSelectBrokerPanel="Trading.ShowSelectBrokerPanel",e.TradingOrderTitle="Trading.OrderTitle",e.TradingPositionTitle="Trading.PositionTitle",e.WatchlistActions="Watchlist.Actions",e.WatchlistAddSelectedSymbolsToCompare="Watchlist.AddSelectedSymbolsToCompare ",e.WatchlistAddSymbolToCompare="Watchlist.AddSymbolToCompare",e.WatchlistAddSymbolToSection="Watchlist.AddSymbolToSection",e.WatchlistChangeFlaggedGroupColor="Watchlist.ChangeFlaggedGroupColor",e.WatchlistAddSymbol="Watchlist.AddSymbol",e.WatchlistCreate="Watchlist.Create",e.WatchlistAddSelectedSymbols="Watchlist.AddSelectedSymbols",e.WatchlistAddSelectedSymbolsLists="Watchlist.AddSelectedSymbols.Lists",e.WatchlistGetDisplayedTickerDescription="Watchlist.GetDisplayedTickerDescription",e.WatchlistCreateSection="Watchlist.CreateSection",e.WatchlistFlagSelectedSymbols="Watchlist.FlagSelectedSymbols",e.WatchlistFlagSymbol="Watchlist.FlagSymbol",e.WatchlistOpenSymbolChart="Watchlist.OpenSymbolChart",e.WatchlistOpenSymbolOverview="Watchlist.OpenSymbolOverview",e.WatchlistRemoveSection="Watchlist.RemoveSection",e.WatchlistRemoveSymbol="Watchlist.RemoveSymbol",e.WatchlistRenameSection="Watchlist.RenameSection",e.WatchlistUnflagAllSymbols="Watchlist.UnflagAllSymbols",e.WatchlistUnflagSelectedSymbols="Watchlist.UnflagSelectedSymbols",e.WatchlistUnflagSymbol="Watchlist.UnflagSymbol",function(e){e.extractErrorReason=function(e){return e.params[1]}}(t||(t={})),function(e){e.Default="default",e.FullSingleSession="full_single_session"}(i||(i={})),(o=exports.TimeFrameType||(exports.TimeFrameType={})).PeriodBack="period-back",o.TimeRange="time-range",function(e){e.PeriodBack="period-back",e.TimeRange="time-range"}(r||(r={})),(n=exports.MarketStatus||(exports.MarketStatus={})).Open="market",n.Pre="pre_market",n.Post="post_market",n.Close="out_of_session",n.Holiday="holiday",(a=exports.MenuItemType||(exports.MenuItemType={})).Separator="separator",a.Action="action",(s=exports.ClearMarksMode||(exports.ClearMarksMode={}))[s.All=0]="All",s[s.BarMarks=1]="BarMarks",s[s.TimeScaleMarks=2]="TimeScaleMarks",(l=exports.LineStudyPlotStyle||(exports.LineStudyPlotStyle={}))[l.Line=0]="Line",l[l.Histogram=1]="Histogram",l[l.Cross=3]="Cross",l[l.Area=4]="Area",l[l.Columns=5]="Columns",l[l.Circles=6]="Circles",l[l.LineWithBreaks=7]="LineWithBreaks",l[l.AreaWithBreaks=8]="AreaWithBreaks",l[l.StepLine=9]="StepLine",l[l.StepLineWithDiamonds=10]="StepLineWithDiamonds",l[l.StepLineWithBreaks=11]="StepLineWithBreaks",(d=exports.StudyPlotType||(exports.StudyPlotType={})).Line="line",d.Colorer="colorer",d.BarColorer="bar_colorer",d.BgColorer="bg_colorer",d.TextColorer="text_colorer",d.OhlcColorer="ohlc_colorer",d.CandleWickColorer="wick_colorer",d.CandleBorderColorer="border_colorer",d.UpColorer="up_colorer",d.DownColorer="down_colorer",d.Shapes="shapes",d.Chars="chars",d.Arrows="arrows",d.Data="data",d.DataOffset="dataoffset",d.OhlcOpen="ohlc_open",d.OhlcHigh="ohlc_high",d.OhlcLow="ohlc_low",d.OhlcClose="ohlc_close",function(e){e.AlertCondition="alertcondition"}(c||(c={})),(h=exports.StudyPlotDisplayTarget||(exports.StudyPlotDisplayTarget={}))[h.None=0]="None",h[h.Pane=1]="Pane",h[h.DataWindow=2]="DataWindow",h[h.PriceScale=4]="PriceScale",h[h.StatusLine=8]="StatusLine",h[h.All=15]="All",function(e){e[e.None=0]="None",e[e.Pane=1]="Pane",e[e.DataWindow=2]="DataWindow",e[e.PriceScale=4]="PriceScale",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(g||(g={})),(u=exports.OhlcStudyPlotStyle||(exports.OhlcStudyPlotStyle={})).OhlcBars="ohlc_bars",u.OhlcCandles="ohlc_candles",function(e){e.Auto="auto",e.Tiny="tiny",e.Small="small",e.Normal="normal",e.Large="large",e.Huge="huge"}(C||(C={})),(p=exports.StudyInputType||(exports.StudyInputType={})).Integer="integer",p.Float="float",p.Price="price",p.Bool="bool",p.Text="text",p.Symbol="symbol",p.Session="session",p.Source="source",p.Resolution="resolution",p.Time="time",p.BarTime="bar_time",p.Color="color",p.Textarea="text_area",function(e){e[e.None=0]="None",e[e.DataWindow=2]="DataWindow",e[e.StatusLine=8]="StatusLine",e[e.All=15]="All"}(S||(S={})),function(e){e.InitialCapital="initial_capital",e.Currency="currency",e.DefaultQTYValue="default_qty_value",e.DefaultQTYType="default_qty_type",e.Pyramiding="pyramiding",e.ComissionValue="commission_value",e.ComissionType="commission_type",e.BacktestFillLimitsAssumtion="backtest_fill_limits_assumption",e.Slippage="slippage",e.CalcOnOrderFills="calc_on_order_fills",e.CalcOnEveryTick="calc_on_every_tick",e.MarginLong="margin_long",e.MarginShort="margin_short",e.UseBarMagnifier="use_bar_magnifier",e.ProcessOrdersOnClose="process_orders_on_close",e.FillOrdersOnStandardOHLC="fill_orders_on_standard_ohlc"}(m||(m={})),function(e){e.Fixed="fixed",e.CashPerOrder="cash_per_order",e.PercentOfEquity="percent_of_equity"}(y||(y={})),function(e){e.Percent="percent",e.CashPerContract="cash_per_contract",e.CashPerOrder="cash_per_order"}(_||(_={})),function(e){e.FirstBar="first_visible_bar_time",e.LastBar="last_visible_bar_time",e.Realtime="subscribeRealtime"}(T||(T={})),function(e){e.FgColor="__chart_fgcolor",e.BgColor="__chart_bgcolor"}(b||(b={})),(P=exports.StudyTargetPriceScale||(exports.StudyTargetPriceScale={}))[P.Right=0]="Right",P[P.Left=1]="Left",P[P.NoScale=2]="NoScale",function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None"}(L||(L={})),(A=exports.FilledAreaType||(exports.FilledAreaType={})).TypePlots="plot_plot",A.TypeHlines="hline_hline",function(e){e[e.StopLoss=0]="StopLoss",e[e.TrailingStop=1]="TrailingStop",e[e.GuaranteedStop=2]="GuaranteedStop"}(w||(w={})),function(e){e.Symbol="symbol"}(f||(f={})),function(e){e[e.PopUp=0]="PopUp",e[e.Notification=1]="Notification"}(v||(v={})),function(e){e[e.CONNECTED=1]="CONNECTED",e[e.CONNECTING=2]="CONNECTING",e[e.DISCONNECTED=3]="DISCONNECTED",e[e.ERROR=4]="ERROR"}(I||(I={})),(O=exports.ConnectionStatus||(exports.ConnectionStatus={}))[O.Connected=1]="Connected",O[O.Connecting=2]="Connecting",O[O.Disconnected=3]="Disconnected",O[O.Error=4]="Error",function(e){e[e.LIMIT=1]="LIMIT",e[e.MARKET=2]="MARKET",e[e.STOP=3]="STOP",e[e.STOPLIMIT=4]="STOPLIMIT"}(R||(R={})),(D=exports.OrderType||(exports.OrderType={}))[D.Limit=1]="Limit",D[D.Market=2]="Market",D[D.Stop=3]="Stop",D[D.StopLimit=4]="StopLimit",function(e){e[e.BUY=1]="BUY",e[e.SELL=-1]="SELL"}(V||(V={})),(k=exports.Side||(exports.Side={}))[k.Buy=1]="Buy",k[k.Sell=-1]="Sell",function(e){e[e.CANCELED=1]="CANCELED",e[e.FILLED=2]="FILLED",e[e.INACTIVE=3]="INACTIVE",e[e.PLACING=4]="PLACING",e[e.REJECTED=5]="REJECTED",e[e.WORKING=6]="WORKING"}(E||(E={})),function(e){e[e.ALL=0]="ALL",e[e.CANCELED=1]="CANCELED",e[e.FILLED=2]="FILLED",e[e.INACTIVE=3]="INACTIVE",e[e.REJECTED=5]="REJECTED",e[e.WORKING=6]="WORKING"}(F||(F={})),(W=exports.OrderStatus||(exports.OrderStatus={}))[W.Canceled=1]="Canceled",W[W.Filled=2]="Filled",W[W.Inactive=3]="Inactive",W[W.Placing=4]="Placing",W[W.Rejected=5]="Rejected",W[W.Working=6]="Working",(x=exports.OrderStatusFilter||(exports.OrderStatusFilter={}))[x.All=0]="All",x[x.Canceled=1]="Canceled",x[x.Filled=2]="Filled",x[x.Inactive=3]="Inactive",x[x.Rejected=5]="Rejected",x[x.Working=6]="Working",function(e){e[e.Order=1]="Order",e[e.Position=2]="Position"}(M||(M={})),function(e){e[e.ORDER=1]="ORDER",e[e.POSITION=2]="POSITION"}(B||(B={})),(N=exports.ParentType||(exports.ParentType={}))[N.Order=1]="Order",N[N.Position=2]="Position",N[N.IndividualPosition=3]="IndividualPosition",function(e){e[e.StopLoss=0]="StopLoss",e[e.TakeProfit=1]="TakeProfit",e[e.TrailingStop=2]="TrailingStop",e[e.GuaranteedStop=3]="GuaranteedStop"}(U||(U={})),function(e){e[e.LIMITPRICE=1]="LIMITPRICE",e[e.STOPPRICE=2]="STOPPRICE",e[e.TAKEPROFIT=3]="TAKEPROFIT",e[e.STOPLOSS=4]="STOPLOSS"}(H||(H={})),(j=exports.OrderTicketFocusControl||(exports.OrderTicketFocusControl={}))[j.LimitPrice=1]="LimitPrice",j[j.StopPrice=2]="StopPrice",j[j.TakeProfit=3]="TakeProfit",j[j.StopLoss=4]="StopLoss",j[j.Quantity=5]="Quantity",function(e){e[e.ERROR=0]="ERROR",e[e.SUCCESS=1]="SUCCESS"}(z||(z={})),(G=exports.NotificationType||(exports.NotificationType={}))[G.Error=0]="Error",G[G.Success=1]="Success",function(e){e[e.Demo=1]="Demo",e[e.Real=0]="Real"}($||($={})),(J=exports.OrderOrPositionMessageType||(exports.OrderOrPositionMessageType={})).Information="information",J.Warning="warning",J.Error="error",function(e){e.Demo="demo",e.Live="live"}(q||(q={})),function(e){e[e.LogOut=0]="LogOut",e[e.FailedRestoring=1]="FailedRestoring",e[e.Offline=2]="Offline",e[e.APIError=3]="APIError",e[e.TwoFactorRequired=4]="TwoFactorRequired",e[e.CancelAuthorization=5]="CancelAuthorization",e[e.TimeOutForAuthorization=6]="TimeOutForAuthorization",e[e.OauthError=7]="OauthError",e[e.BrokenConnection=8]="BrokenConnection",e[e.FailedSignIn=9]="FailedSignIn"}(K||(K={})),function(e){e[e.None=0]="None",e[e.Pips=1]="Pips",e[e.Ticks=2]="Ticks"}(Z||(Z={})),function(e){e.Halted="HALTED",e.NotShortable="NOT-SHORTABLE",e.HardToBorrow="HARD-TO-BORROW"}(Q||(Q={})),function(e){e[e.Limit=1]="Limit",e[e.Stop=2]="Stop"}(Y||(Y={})),function(e){e.Disallowed="disallowed",e.Allowed="allowed",e.AllowedWithWarning="allowed_with_warning"}(X||(X={})),function(e){e.PlaceOrder="place_order",e.ModifyOrder="modify_order",e.CancelOrder="cancel_order",e.ModifyPosition="modify_position",e.ClosePosition="close_position",e.ModifyIndividualPosition="modify_individual_position",e.CloseIndividualPosition="close_individual_position",e.CloseNetPosition="close_net_position"}(ee||(ee={})),(te=exports.StandardFormatterName||(exports.StandardFormatterName={})).Date="date",te.DateOrDateTime="dateOrDateTime",te.Default="default",te.Fixed="fixed",te.FixedInCurrency="fixedInCurrency",te.VariablePrecision="variablePrecision",te.FormatQuantity="formatQuantity",te.FormatPrice="formatPrice",te.FormatPriceForexSup="formatPriceForexSup",te.FormatPriceInCurrency="formatPriceInCurrency",te.IntegerSeparated="integerSeparated",te.LocalDate="localDate",te.LocalDateOrDateTime="localDateOrDateTime",te.Percentage="percentage",te.Pips="pips",te.Profit="profit",te.ProfitInInstrumentCurrency="profitInInstrumentCurrency",te.Side="side",te.PositionSide="positionSide",te.Status="status",te.Symbol="symbol",te.Text="text",te.Type="type",te.MarginPercent="marginPercent",te.Empty="empty",(ie=exports.OverridePriceAxisLastValueMode||(exports.OverridePriceAxisLastValueMode={}))[ie.LastPriceAndPercentageValue=0]="LastPriceAndPercentageValue",ie[ie.LastValueAccordingToScale=1]="LastValueAccordingToScale",(oe=exports.OverrideLineStyle||(exports.OverrideLineStyle={}))[oe.Solid=0]="Solid",oe[oe.Dotted=1]="Dotted",oe[oe.Dashed=2]="Dashed",function(e){e[e.Offline=0]="Offline",e[e.Resolving=1]="Resolving",e[e.Loading=2]="Loading",e[e.Ready=3]="Ready",e[e.InvalidSymbol=4]="InvalidSymbol",e[e.Snapshot=5]="Snapshot",e[e.EOD=6]="EOD",e[e.Pulse=7]="Pulse",e[e.Delayed=8]="Delayed",e[e.DelayedSteaming=9]="DelayedSteaming",e[e.NoBars=10]="NoBars",e[e.Replay=11]="Replay",e[e.Error=12]="Error",e[e.CalculationError=13]="CalculationError",e[e.UnsupportedResolution=14]="UnsupportedResolution"}(re||(re={})),function(e){e[e.Markers=0]="Markers",e[e.Stepline=1]="Stepline",e[e.Simple=2]="Simple"}(ne||(ne={})),(ae=exports.ChartStyle||(exports.ChartStyle={}))[ae.Bar=0]="Bar",ae[ae.Candle=1]="Candle",ae[ae.Line=2]="Line",ae[ae.Area=3]="Area",ae[ae.Renko=4]="Renko",ae[ae.Kagi=5]="Kagi",ae[ae.PnF=6]="PnF",ae[ae.LineBreak=7]="LineBreak",ae[ae.HeikinAshi=8]="HeikinAshi",ae[ae.HollowCandle=9]="HollowCandle",ae[ae.Baseline=10]="Baseline",ae[ae.Range=11]="Range",ae[ae.HiLo=12]="HiLo",ae[ae.Column=13]="Column",ae[ae.LineWithMarkers=14]="LineWithMarkers",ae[ae.Stepline=15]="Stepline",ae[ae.HLCArea=16]="HLCArea",ae[ae.VolFootprint=17]="VolFootprint",ae[ae.TPO=18]="TPO",ae[ae.VolCandle=19]="VolCandle",ae[ae.SVP=20]="SVP",(se=exports.TimeHoursFormat||(exports.TimeHoursFormat={})).TwentyFourHours="24-hours",se.TwelveHours="12-hours",function(e){e[e.Initial=2]="Initial",e[e.SeriesZOrderIsAlwaysZero=3]="SeriesZOrderIsAlwaysZero",e[e.Current=3]="Current"}(le||(le={})),(de=exports.PlDisplay||(exports.PlDisplay={}))[de.Money=0]="Money",de[de.Pips=1]="Pips",de[de.Percentage=2]="Percentage",(ce=exports.TradedGroupHorizontalAlignment||(exports.TradedGroupHorizontalAlignment={}))[ce.Left=0]="Left",ce[ce.Center=1]="Center",ce[ce.Right=2]="Right";exports.PlDisplay.Money,exports.PlDisplay.Money,exports.TradedGroupHorizontalAlignment.Right;var he,ge,ue,Ce,pe,Se,me,ye,_e,Te,be,Pe,Le,Ae,we;function fe(e,t){const i={...e};for(const o in t)"object"!=typeof e[o]||null===e[o]||Array.isArray(e[o])?void 0!==t[o]&&(i[o]=t[o]):i[o]=fe(e[o],t[o]);return i}!function(e){e[e.Background=0]="Background",e[e.Foreground=1]="Foreground",e[e.Topmost=2]="Topmost"}(he||(he={})),function(e){e[e.Unavailable=0]="Unavailable",e[e.AvailableReadonlyAlwaysDisabled=1]="AvailableReadonlyAlwaysDisabled",e[e.AvailableReadonlyAlwaysEnabled=2]="AvailableReadonlyAlwaysEnabled",e[e.Available=3]="Available"}(ge||(ge={})),function(e){e[e.ViewportChangeUserAction=0]="ViewportChangeUserAction",e[e.DataUpdate=1]="DataUpdate",e[e.SeriesRestart=2]="SeriesRestart",e[e.SeriesCompleted=3]="SeriesCompleted",e[e.StudyCreation=4]="StudyCreation"}(ue||(ue={})),function(e){e[e.Chart=0]="Chart"}(Ce||(Ce={})),(pe=exports.VisibilityType||(exports.VisibilityType={})).AlwaysOn="alwaysOn",pe.VisibleOnMouseOver="visibleOnMouseOver",pe.AlwaysOff="alwaysOff",(Se=exports.PriceScaleMode||(exports.PriceScaleMode={}))[Se.Normal=0]="Normal",Se[Se.Log=1]="Log",Se[Se.Percentage=2]="Percentage",Se[Se.IndexedTo100=3]="IndexedTo100",(me=exports.SeriesType||(exports.SeriesType={}))[me.Bars=0]="Bars",me[me.Candles=1]="Candles",me[me.Line=2]="Line",me[me.Area=3]="Area",me[me.HeikenAshi=8]="HeikenAshi",me[me.HollowCandles=9]="HollowCandles",me[me.Baseline=10]="Baseline",me[me.HiLo=12]="HiLo",me[me.Column=13]="Column",me[me.LineWithMarkers=14]="LineWithMarkers",me[me.Stepline=15]="Stepline",me[me.HLCArea=16]="HLCArea",me[me.VolCandle=19]="VolCandle",me[me.Renko=4]="Renko",me[me.Kagi=5]="Kagi",me[me.PointAndFigure=6]="PointAndFigure",me[me.LineBreak=7]="LineBreak",function(e){e.Value="_seriesId"}(ye||(ye={})),(_e=exports.HHistDirection||(exports.HHistDirection={})).LeftToRight="left_to_right",_e.RightToLeft="right_to_left",function(e){e.Relative="relative",e.Absolute="absolute"}(Te||(Te={})),function(e){e.UpDown="Up/Down",e.Total="Total",e.Delta="Delta"}(be||(be={})),(Pe=exports.MarkLocation||(exports.MarkLocation={})).AboveBar="AboveBar",Pe.BelowBar="BelowBar",Pe.Top="Top",Pe.Bottom="Bottom",Pe.Right="Right",Pe.Left="Left",Pe.Absolute="Absolute",Pe.AbsoluteUp="AbsoluteUp",Pe.AbsoluteDown="AbsoluteDown",function(e){e.Left="left",e.Center="center",e.Right="right"}(Le||(Le={})),function(e){e.Top="top",e.Middle="middle",e.Bottom="bottom"}(Ae||(Ae={})),(we=exports.LineStyle||(exports.LineStyle={}))[we.Solid=0]="Solid",we[we.Dotted=1]="Dotted",we[we.Dashed=2]="Dashed";const ve={width:800,height:500,interval:"1D",timezone:"Etc/UTC",container:"",library_path:"",locale:"en",widgetbar:{details:!1,watchlist:!1,news:!1,datawindow:!1,watchlist_settings:{default_symbols:[]}},overrides:{"mainSeriesProperties.showCountdown":!1},studies_overrides:{},trading_customization:{position:{},order:{}},brokerConfig:{configFlags:{}},fullscreen:!1,autosize:!1,disabled_features:[],enabled_features:[],debug:!1,logo:{},time_frames:[{text:"5y",resolution:"1W"},{text:"1y",resolution:"1W"},{text:"6m",resolution:"120"},{text:"3m",resolution:"60"},{text:"1m",resolution:"30"},{text:"5d",resolution:"5"},{text:"1d",resolution:"1"}],client_id:"0",user_id:"0",charts_storage_api_version:"1.0",favorites:{intervals:[],chartTypes:[],indicators:[],drawingTools:[]}},Ie=JSON.parse('[{"iso":"ar","dir":"rtl","language":"ar"},{"iso":"pt","dir":"ltr","language":"pt"},{"iso":"ca","dir":"ltr","language":"ca_ES"},{"iso":"cs","dir":"ltr","language":"cs"},{"iso":"de","dir":"ltr","language":"de"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"es","dir":"ltr","language":"es"},{"iso":"fa","dir":"rtl","language":"fa"},{"iso":"fr","dir":"ltr","language":"fr"},{"iso":"he","dir":"rtl","language":"he_IL"},{"iso":"hu","dir":"ltr","language":"hu_HU"},{"iso":"id","dir":"ltr","language":"id_ID"},{"iso":"en","dir":"ltr","language":"en"},{"iso":"it","dir":"ltr","language":"it"},{"iso":"ja","dir":"ltr","language":"ja"},{"iso":"ko","dir":"ltr","language":"ko"},{"iso":"ms","dir":"ltr","language":"ms_MY"},{"iso":"pl","dir":"ltr","language":"pl"},{"iso":"ru","dir":"ltr","language":"ru"},{"iso":"sv","dir":"ltr","language":"sv"},{"iso":"th","dir":"ltr","language":"th"},{"iso":"tr","dir":"ltr","language":"tr"},{"iso":"vi","dir":"ltr","language":"vi"},{"iso":"zh-Hans","dir":"ltr","language":"zh"},{"iso":"zh-Hant","dir":"ltr","language":"zh_TW"},{"iso":"el","dir":"ltr","language":"el"},{"iso":"nl","dir":"ltr","language":"nl_NL"},{"iso":"ro","dir":"ltr","language":"ro"}]');let Oe=!1;function Re(){return"CL v28.1.0 (internal id 17df7cfa @ 2024-09-05T15:20:50.323Z)"}const De=class{constructor(e){var t,i;if(this._id=`tradingview_${(1048576*(1+Math.random())|0).toString(16).substring(1)}`,this._ready=!1,this._readyHandlers=[],this._onWindowResize=this._autoResizeChart.bind(this),!e.datafeed)throw new Error("Datafeed is not defined");(null===(t=e.overrides)||void 0===t?void 0:t["mainSeriesProperties.priceAxisProperties.lockScale"])&&(console.warn("mainSeriesProperties.priceAxisProperties.lockScale can not be set to true within the widget constructor"),delete e.overrides["mainSeriesProperties.priceAxisProperties.lockScale"]),this._options=fe(ve,e);"dark"===(null!==(i=this._options.theme)&&void 0!==i?i:"light").toLowerCase()&&void 0===this._options.loading_screen&&(this._options.loading_screen={backgroundColor:"#131722"}),(this._options.debug||this._options.debug_broker)&&(Oe||(Oe=!0,console.log("Using CL v28.1.0 (internal id 17df7cfa @ 2024-09-05T15:20:50.323Z)"))),this._create()}setDebugMode(e){this._innerAPI().setDebugMode(e)}onChartReady(e){this._ready?e.call(this):this._readyHandlers.push(e)}headerReady(){return this._innerWindowLoaded.then((()=>this._innerWindow().headerReady()))}onGrayedObjectClicked(e){this._doWhenInnerApiLoaded((t=>{t.onGrayedObjectClicked(e)}))}onShortcut(e,t){this._doWhenInnerWindowLoaded((i=>{i.createShortcutAction(e,t)}))}subscribe(e,t){this._doWhenInnerApiLoaded((i=>{i.subscribe(e,t)}))}unsubscribe(e,t){this._doWhenInnerApiLoaded((i=>{i.unsubscribe(e,t)}))}chart(e){return this._innerAPI().chart(e)}getLanguage(){return this._options.locale}setSymbol(e,t,i){this._innerAPI().changeSymbol(e,t,i)}remove(){window.removeEventListener("resize",this._onWindowResize),this._readyHandlers.splice(0,this._readyHandlers.length),delete window[this._id],this._iFrame.parentNode&&this._iFrame.parentNode.removeChild(this._iFrame)}closePopupsAndDialogs(){this._doWhenInnerApiLoaded((e=>{e.closePopupsAndDialogs()}))}selectLineTool(e,t){this._innerAPI().selectLineTool(e,t)}selectedLineTool(){return this._innerAPI().selectedLineTool()}save(e,t){this._innerAPI().saveChart(e,t)}load(e,t){this._innerAPI().loadChart({json:e,extendedData:t})}getSavedCharts(e){this._innerAPI().getSavedCharts(e)}loadChartFromServer(e){this._innerAPI().loadChartFromServer(e)}saveChartToServer(e,t,i){this._innerAPI().saveChartToServer(e,t,i)}removeChartFromServer(e,t){this._innerAPI().removeChartFromServer(e,t)}onContextMenu(e){this._doWhenInnerApiLoaded((t=>{t.onContextMenu(e)}))}createButton(e){return this._innerWindow().createButton(e)}createDropdown(e){return this._innerWindow().createDropdown(e)}showNoticeDialog(e){this._doWhenInnerApiLoaded((t=>{t.showNoticeDialog(e)}))}showConfirmDialog(e){this._doWhenInnerApiLoaded((t=>{t.showConfirmDialog(e)}))}showLoadChartDialog(){this._innerAPI().showLoadChartDialog()}showSaveAsChartDialog(){this._innerAPI().showSaveAsChartDialog()}symbolInterval(){return this._innerAPI().getSymbolInterval()}mainSeriesPriceFormatter(){return this._innerAPI().mainSeriesPriceFormatter()}getIntervals(){return this._innerAPI().getIntervals()}getStudiesList(){return this._innerAPI().getStudiesList()}getStudyInputs(e){return this._innerAPI().getStudyInputs(e)}getStudyStyles(e){return this._innerAPI().getStudyStyles(e)}addCustomCSSFile(e){this._innerWindow().addCustomCSSFile(e)}applyOverrides(e){this._options=fe(this._options,{overrides:e}),this._doWhenInnerWindowLoaded((t=>{t.applyOverrides(e)}))}applyStudiesOverrides(e){this._doWhenInnerWindowLoaded((t=>{t.applyStudiesOverrides(e)}))}watchList(){return this._innerAPI().watchlist()}news(){return this._innerAPI().news()}widgetbar(){return this._innerAPI().widgetbar()}activeChart(){return this._innerAPI().activeChart()}activeChartIndex(){return this._innerAPI().activeChartIndex()}setActiveChart(e){return this._innerAPI().setActiveChart(e)}chartsCount(){return this._innerAPI().chartsCount()}layout(){return this._innerAPI().layout()}setLayout(e){this._innerAPI().setLayout(e)}layoutName(){return this._innerAPI().layoutName()}resetLayoutSizes(e){this._innerAPI().resetLayoutSizes(e)}changeTheme(e,t){return this._innerWindow().changeTheme(e,t)}getTheme(){return this._innerWindow().getTheme()}takeScreenshot(){this._doWhenInnerApiLoaded((e=>{e.takeScreenshot()}))}lockAllDrawingTools(){return this._innerAPI().lockAllDrawingTools()}hideAllDrawingTools(){return this._innerAPI().hideAllDrawingTools()}drawOnAllChartsEnabled(){return this._innerAPI().drawOnAllChartsEnabled()}drawOnAllCharts(e){this._innerAPI().drawOnAllCharts(e)}magnetEnabled(){return this._innerAPI().magnetEnabled()}magnetMode(){return this._innerAPI().magnetMode()}undoRedoState(){return this._innerAPI().undoRedoState()}setIntervalLinkingEnabled(e){this._innerAPI().setIntervalLinkingEnabled(e)}setDateRangeLinkingEnabled(e){this._innerAPI().setDateRangeLinkingEnabled(e)}setTimeFrame(e){this._innerAPI().setTimeFrame(e)}symbolSync(){return this._innerAPI().symbolSync()}intervalSync(){return this._innerAPI().intervalSync()}crosshairSync(){return this._innerAPI().crosshairSync()}timeSync(){return this._innerAPI().timeSync()}dateRangeSync(){return this._innerAPI().dateRangeSync()}setFeatureEnabled(e,t){this._innerAPI().setFeatureEnabled(e,t)}getAllFeatures(){return this._innerWindow().getAllFeatures()}clearUndoHistory(){return this._innerAPI().clearUndoHistory()}undo(){return this._innerAPI().undo()}redo(){return this._innerAPI().redo()}startFullscreen(){this._innerAPI().startFullscreen()}exitFullscreen(){this._innerAPI().exitFullscreen()}takeClientScreenshot(e){return this._innerAPI().takeClientScreenshot(e)}navigationButtonsVisibility(){return this._innerWindow().getNavigationButtonsVisibility()}paneButtonsVisibility(){return this._innerWindow().getPaneButtonsVisibility()}dateFormat(){return this._innerWindow().getDateFormat()}timeHoursFormat(){return this._innerWindow().getTimeHoursFormat()}currencyAndUnitVisibility(){return this._innerWindow().getCurrencyAndUnitVisibility()}supportedChartTypes(){return this._innerAPI().supportedChartTypes()}watermark(){return this._innerAPI().watermark()}customSymbolStatus(){return this._innerWindow().customSymbolStatus()}setCSSCustomProperty(e,t){if(!1===e.startsWith("--"))throw new Error("customPropertyName should begin with a double hyphen");this._innerWindow().document.body.style.setProperty(e,t)}getCSSCustomPropertyValue(e){if(!1===e.startsWith("--"))throw new Error("customPropertyName should begin with a double hyphen");const t=this._innerWindow().document.body,i=t.style.getPropertyValue(e);if(i)return i;return getComputedStyle(t).getPropertyValue(e)}unloadUnusedCharts(){this._innerAPI().unloadUnusedCharts()}async customThemes(){return this._innerWindow().customThemes()}linking(){return this._innerAPI().linking}_innerAPI(){return this._innerWindow().tradingViewApi}_innerWindow(){return this._iFrame.contentWindow}_doWhenInnerWindowLoaded(e){this._ready?e(this._innerWindow()):this._innerWindowLoaded.then((()=>{e(this._innerWindow())}))}_doWhenInnerApiLoaded(e){this._doWhenInnerWindowLoaded((t=>{t.doWhenApiIsReady((()=>e(this._innerAPI())))}))}_autoResizeChart(){this._options.fullscreen&&(this._iFrame.style.height=window.innerHeight+"px",Ve&&setTimeout((()=>{this._iFrame.style.height=window.innerHeight+"px"}),30))}async _create(){var e,t,i,o;const r=null!==(t=null===(e=this._options.enabled_features)||void 0===e?void 0:e.includes("iframe_loading_same_origin"))&&void 0!==t&&t,n=r||null!==(o=null===(i=this._options.enabled_features)||void 0===i?void 0:i.includes("iframe_loading_compatibility_mode"))&&void 0!==o&&o,[a,s]=this._render(!n,r),l=this._options.container,d="string"==typeof l?document.getElementById(l):l;if(null===d)throw new Error(`There is no such element - #${this._options.container}`);d.innerHTML=a,this._iFrame=d.querySelector(`#${this._id}`);const c=this._iFrame;r&&await this._innerWindowEvent("sameOriginLoad"),n&&(c.contentWindow?(c.contentWindow.document.open(),c.contentWindow.document.write(s),c.contentWindow.document.close()):console.warn("Unable to locate contentWindow for the created iframe. Please try disabling the `iframe_loading_compatibility_mode` featureset.")),this._innerWindowLoaded=this._innerWindowEvent("innerWindowLoad"),(this._options.autosize||this._options.fullscreen)&&(c.style.width="100%",this._options.fullscreen||(c.style.height="100%")),window.addEventListener("resize",this._onWindowResize),this._onWindowResize(),this._innerWindowLoaded.then((()=>{try{this._innerWindow().widgetReady((()=>{this._ready=!0;for(const e of this._readyHandlers)try{e.call(this)}catch(e){console.error(e)}this._innerWindow().initializationFinished()}))}catch(e){if(e instanceof Error&&/widgetReady is not a function/.test(e.message))throw new Error(`There was an error when loading the library. Usually this error means the library failed to load its static files. Check that the library files are available at ${window.location.host}/${this._options.library_path||""} or correct the library_path option.`)}}))}_innerWindowEvent(e){return new Promise((t=>{const i=()=>{this._innerWindow().removeEventListener(e,i),t()};this._innerWindow().addEventListener(e,i)}))}_render(e,t){var i;const o=window;if(o[this._id]={datafeed:this._options.datafeed,customFormatters:this._options.custom_formatters,brokerFactory:this._options.broker_factory,overrides:this._options.overrides,studiesOverrides:this._options.studies_overrides,tradingCustomization:this._options.trading_customization,disabledFeatures:this._options.disabled_features,enabledFeatures:this._options.enabled_features,brokerConfig:this._options.broker_config||this._options.brokerConfig,restConfig:this._options.restConfig,favorites:this._options.favorites,logo:this._options.logo,numeric_formatting:this._options.numeric_formatting,rss_news_feed:this._options.rss_news_feed,rss_news_title:this._options.rss_news_title,newsProvider:this._options.news_provider,loadLastChart:this._options.load_last_chart,saveLoadAdapter:this._options.save_load_adapter,loading_screen:this._options.loading_screen,settingsAdapter:this._options.settings_adapter,getCustomIndicators:this._options.custom_indicators_getter,additionalSymbolInfoFields:this._options.additional_symbol_info_fields,headerWidgetButtonsMode:this._options.header_widget_buttons_mode,customTranslateFunction:this._options.custom_translate_function,symbolSearchComplete:this._options.symbol_search_complete,contextMenu:this._options.context_menu,settingsOverrides:this._options.settings_overrides,timeframe:this._options.timeframe,customTimezones:this._options.custom_timezones,customChartDescriptionFunction:this._options.custom_chart_description_function,customThemes:this._options.custom_themes},this._options.saved_data)o[this._id].chartContent={json:this._options.saved_data},this._options.saved_data_meta_info&&(o[this._id].chartContentExtendedData=this._options.saved_data_meta_info);else if(!this._options.load_last_chart&&!this._options.symbol)throw new Error("Symbol is not defined: either 'symbol' or 'load_last_chart' option must be set");if(this._options.library_path&&!this._options.library_path.endsWith("/")&&console.warn("library_path option should contain a trailing forward slash"),this._options.locale){const e=encodeURIComponent(this._options.locale);Ie.findIndex((t=>t.language===e))>=0||(console.warn("locale isn't supported. Using default of `en`."),this._options.locale="en")}const r=function(e,t){var i;const o=new URL(`${e||""}`,location.href).href,r=JSON.parse('["bundles/runtime.a78aa5d8cacc59cc758a.js","bundles/__LANG__.4026.7fd0f0d599a897631492.js","bundles/9662.03109f673cda5962c847.css","bundles/7346.b02c4b5d2d08b5be4162.js","bundles/library.a50e5cd0e299c98bc5fe.js"]'),n=encodeURIComponent(t),a=null!==(i=Ie.find((e=>e.language===n)))&&void 0!==i?i:{iso:"en",dir:"ltr"},s=`lang="${a.iso}" dir="${a.dir}"`,l=`\n${function(e,t,i){if(void 0===e)return"";const o=[],r=[];for(const n of e)n.endsWith(".js")?o.push(`