"use strict";(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[97613],{66974:(e,t,_)=>{function i(e=location.host){return-1!==["i18n.tradingview.com","partial.tradingview.com","www.tradingview.com","wwwcn.tradingview.com"].indexOf(e)||-1!==["d33t3vvu2t2yu5.cloudfront.net","dwq4do82y8xi7.cloudfront.net","s.tradingview.com","s3.tradingview.com"].indexOf(e)||e.match(/^[a-z]{2}\.tradingview\.com/)||e.match(/prod-[^.]+.tradingview.com/)?"battle":e.includes("tradingview.com")||e.includes("staging")?"staging":e.match(/webcharts/)?"staging_local":(e.match(/^localhost(:\d+)?$/),"local")}function r(){return"local"===i()}function n(){return"battle"===i()}function a(){return!n()}_.r(t),_.d(t,{environment:()=>i,isDebug:()=>a,isLocal:()=>r,isProd:()=>n})},778016:(e,t,_)=>{_.d(t,{enabled:()=>s,getConfig:()=>c});_(650151);var i=_(409352),r=_(102710),n=_(833813),a=_(822122),o=_(255453);function s(e,t,_){let i=window.user;_&&(i=_);const r=c(e,t,i);return!!r&&!(r[n.ProductFeatures.DISABLE_ON_TRIAL]&&(!i||i.is_trial))}function l(e){const t=i[e];return t?t.extends?Object.assign({},l(t.extends),t):t:null}function c(e,t,_){var i;let n=l(t||function(e){let t=window.user;e&&(t=e);let _=(null==t?void 0:t.pro_plan)||a.ProPlans.Free;const i=_!==a.ProPlans.Free&&!(0,o.isTrialProduct)(_);return i||(_=(0,o.getProductForTrial)(_)),i&&t&&!t.new_pro_product_line&&(_=`__legacy_${_}`),_}(_));if(!n)return null;const s=null===(i=window.TradingView)||void 0===i?void 0:i.widgetCustomer;return s&&r[s]&&(n=Object.assign({},n,r[s])),n&&n[e]||null}},833813:(e,t,_)=>{var i;_.d(t,{ProductFeatures:()=>i}),function(e){e.DISABLE_ON_TRIAL="disable_on_trial",e.CUSTOM_INTERVALS="CUSTOM_INTERVALS",e.CHART_STORAGE="CHART_STORAGE",e.MULTIPLE_CHARTS="MULTIPLE_CHARTS",e.MULTIPLE_WATCHLISTS="MULTIPLE_WATCHLISTS",e.IMPORT_WATCHLISTS="IMPORT_WATCHLISTS",e.EXPORT_WATCHLISTS="EXPORT_WATCHLISTS",e.WATCHLIST_SYMBOLS="WATCHLIST_SYMBOLS",e.INDICATORS_ON_CHART="INDICATORS_ON_CHART",e.STUDY_ON_STUDY="STUDY_ON_STUDY",e.TICK_BY_TICK_PUSH_DATA="TICK_BY_TICK_PUSH_DATA",e.SERVER_SIDE_ALERTS="SERVER_SIDE_ALERTS",e.PUBLISH_INVITE_ONLY_SCRIPTS="PUBLISH_INVITE_ONLY_SCRIPTS",e.PUBLISH_PROTECTED_SCRIPTS="PUBLISH_PROTECTED_SCRIPTS",e.SCREENER_AUTO_REFRESH="SCREENER_AUTO_REFRESH",e.SCREENER_NEW_AUTO_REFRESH="SCREENER_NEW_AUTO_REFRESH",e.SCREENER_EXPORT_DATA="SCREENER_EXPORT_DATA",e.SCREENER_INTERVALS="SCREENER_INTERVALS",e.SCREENER_NEW_EXPORT_CSV_DATA="SCREENER_NEW_EXPORT_CSV_DATA",e.SIMULTANEOUS_CONNECTIONS="SIMULTANEOUS_CONNECTIONS",e.BACKEND_CONNECTIONS="BACKEND_CONNECTIONS",e.STUDY_TEMPLATES="STUDY_TEMPLATES",e.CAN_EDIT_PUBLIC_CHATS="CAN_EDIT_PUBLIC_CHATS",e.NO_SPONSORED_ADS="NO_SPONSORED_ADS",e.IDC_AVAILABLE_DELAY="IDC_AVAILABLE_DELAY",e.STATUS="STATUS",e.ALERTS_NO_EXPIRATION="ALERTS_NO_EXPIRATION",e.MULTIFLAGGED_SYMBOLS_LISTS="MULTIFLAGGED_SYMBOLS_LISTS",e.BAR_REPLAY_INTRADAY="BAR_REPLAY_INTRADAY",e.TV_VOLUMEBYPRICE="TV_VOLUMEBYPRICE",e.ALERTS_WEBHOOK="ALERTS_WEBHOOK",e.MARKET_DATA_LIMITS="MARKET_DATA_LIMITS",e.DEEP_FUNDAMENTALS_HISTORY="DEEP_FUNDAMENTALS_HISTORY", e.EXPORT_CHART_DATA="EXPORT_CHART_DATA",e.EXPORT_FINANCIALS_DATA="EXPORT_FINANCIALS_DATA",e.ALERTS_ON_SECONDS="ALERTS_ON_SECONDS",e.PERMANENT_STREAM_RECORDS="PERMANENT_STREAM_RECORDS",e.IDEA_SOCIAL_LINKS="IDEA_SOCIAL_LINKS",e.EXTENDED_SOCIAL_LINKS="EXTENDED_SOCIAL_LINKS",e.DEEP_HISTORY_BACKTEST="DEEP_HISTORY_BACKTEST",e.BACKTESTING_EXPORT="BACKTESTING_EXPORT",e.USE_BAR_MAGNIFIER="USE_BAR_MAGNIFIER",e.HISTORICAL_BARS="HISTORICAL_BARS",e.KAGI_RENKO="KAGI_RENKO",e.INTRADAY_SPREAD="INTRADAY_SPREAD",e.SECONDS_INTERVALS="SECONDS_INTERVALS",e.MULTICOLOR_FLAGGED_SYMBOLS="MULTICOLOR_FLAGGED_SYMBOLS",e.INTRADAY_EXCHANGE="INTRADAY_EXCHANGE",e.CUSTOM_CHATS="CUSTOM_CHATS",e.VOLUME_PROFILE="VOLUME_PROFILE",e.VOLUME_CANDLES="VOLUME_CANDLES",e.TPO_PERIODIC="TPO_PERIODIC",e.TPO_CHART_STYLE="TPO_CHART_STYLE",e.PRIMITIVE_ALERTS="PRIMITIVE_ALERTS",e.COMPLEX_ALERTS="COMPLEX_ALERTS",e.TV_PROSTUDIES="TV_PROSTUDIES",e.CHART_PATTERNS="CHART_PATTERNS",e.SMS_2FA_VERIFICATION="SMS_2FA_VERIFICATION",e.SOCIAL_ACTIVITY="SOCIAL_ACTIVITY",e.TICK_INTERVALS="TICK_INTERVALS",e.CUSTOM_FORMULAS="CUSTOM_FORMULAS",e.CUSTOM_RANGE_BARS="CUSTOM_RANGE_BARS",e.BUY_PRO_DATA="BUY_PRO_DATA",e.FASTEST_DATA_FLOW="FASTEST_DATA_FLOW",e.FIRST_PRIORITY_SUPPORT="FIRST_PRIORITY_SUPPORT",e.FUNDAMENTALS_ON_CHART="FUNDAMENTALS_ON_CHART",e.VIDEO_IDEAS_LENGTH="VIDEO_IDEAS_LENGTH",e.VOLUME_FOOTPRINT="VOLUME_FOOTPRINT"}(i||(i={}))},125226:(e,t,_)=>{var i=_(49437).TVLocalStorage,r=_(707957).Delegate,n=_(855385);_(638456);var a=new r;TradingView.FeatureToggle={force_prefix:"forcefeaturetoggle.",onChanged:new r,enableFeature:function(e){i.setItem(this.force_prefix+e,"true"),a.fire(e)},disableFeature:function(e){i.setItem(this.force_prefix+e,"false"),a.fire(e)},resetFeature:function(e){i.removeItem(this.force_prefix+e),a.fire(e)},onFeaturesStateChanged:function(){return a}},TradingView.isFeatureEnabled=function(e){var t="featuretoggle_seed";function r(e){try{var _=n(e+function(){if(window.user&&window.user.id)return window.user.id;var e=i.getItem(t);return null!==e||(e=Math.floor(1e6*Math.random()),i.setItem(t,e)),e}());return new DataView(_).getUint32(0,!0)/4294967296}catch(e){return.5}}function o(t){return!("local"!==window.environment||!function(e){ var t=["skip_navigation_on_chart","tick_intervals","broker_TRADESTATION","broker_TRADOVATE_dev","black_friday_mainpage","black_friday_popup","datawindow","trading-fast-renew-oauth-token","switching_year_to_month_disabled","default_year_billing_cycle_switcher","marketing-analytics","visible_address_fields_by_default","slow-support-warning","hide-trading-floating-toolbar","save-short-streams","details_disable_bid_ask","vat_disabled","disable_recaptcha_on_signup","braintree-gopro-in-order-dialog","braintree-apple-pay","braintree-google-pay","braintree-apple-pay-trial","braintree-google-pay-trial","braintree-3ds-enabled","remove_order_ticket_cancel_button","trial_increased_monthly_discounts","checkout-tvcoins","checkout-3ds","razorpay-card-tvcoins","razorpay-card-subscriptions","razorpay-upi-tvcoins","razorpay-upi-subscriptions","razorpay-use-recurring-billing-scheduler","dlocal-payments","hide_gopro_popup_upgrade_button","tradestation_use_sync_mapper","broker_id_session","modular_broker_use_sync_mapper","multichart_replay","oanda-european-accounts-warning","mobile_show_bottom_panel","disable_save_settings","ignore_mobile_apps_distinguish_pro_full_name","desktop_version_notification_enabled","favorites-in-broker-dropdown","enable_toggle_streams_rtmp_url","hide_ecomonic_events","mobile_trading_web","mobile_trading_ios","mobile_trading_android","hide_real_brokers_on_mobile","disable_tradestation_country_block","enable_trading_server_logger","hide_ranges_label_colors","disable_user_specific_encryption","minds_widget_enabled","self-replacing-advanced-chart-widget","disable-calendar-advanced-chart-widget","disable-lse-data-screener-heatmap-widgets","paper_competition_banner","paper_competition_started_dialog","disable_pushstream_connections_for_anonymous_users","use_staging_verifier","account_verifier_maintenance","ally_use_new_sso_url","ibkr_use_new_init_session_api","tradestation_account_data_streaming","enable_eventsource_pushstream_transport","enable_eventsource_pushstream_mobile","performance_test_mode","ftx_request_server_logger","ibkr_request_server_logger","disallow_concurrent_sessions","check_ibkr_side_maintenance","tradestation_request_server_logger","trading_request_server_logger","hide_tweet_drawingtool","RU_SF_disable","RU_VOR_disable","enable_diff_decorations","disable_pine_v4","enable_profiler","hide_find_in_header","enable_new_custom_public_chats","bottom_panel_track_events","ibkr_ws_account_summary","continuous_front_contract_trading","vertex-tax-included","enable_traded_context_linking","order_context_validation_in_instant_mode","show_data_problems_in_help_center","chart_storage_hibernation_delay_60min","chart_storage_hibernation_delay_10min","chart_storage_hibernation_delay_5min","force_disable_jsx_menu_items_rendering","hide_dom","enable_sign_in_popup_with_evercookie","start_replay_right_after_point_selection","switching_raf_toast","new_order_size_calculator","order_type_specific_settings_saving","hide_position_trade_value","paper_force_connect_pushstream","use_broker_logos_from_single_source","alerts-facade-use-permission-proxy","alerts-controller-use-permission-proxy","alerts-start-christmas","alerts-use-selected-source-context","alerts-labels-on-symbol-page","forexcom_session_v2","fxcm_server_logger","minds_comments_enable_for_free_users","fxcm_trailing_stop_bracket","mock_tweet_data_for_tests","replay_result_sharing","ibkr_ws_server_logger","options_strategy_analyzer_tab","options_details_widget","options_overlay","options_product_page","options_exchange_nse","options_exchange_cme","options_exchange_cbot","options_exchange_comex","options_exchange_nymex","options_exchange_bse","ibkr_subscribe_to_order_updates_first","rest_logout_on_429","amp_oauth_authorization","blueline_oauth_authorization","dorman_oauth_authorization","cqg_oauth_authorization","ironbeam_oauth_authorization","optimus_oauth_authorization","stonex_oauth_authorization","tickmill_oauth_authorization","ibkr_ws_account_ledger","force_max_allowed_pulling_intervals","fxcm_password_authorization_type","change_password_suggestion_popup","ibkr_disable_ws_connect_timeout","oanda_rest_api","launch-oanda-country-group-1","launch-oanda-country-group-2","launch-oanda-country-group-3","news_enable_streaming","news_screener_page","news_enable_streaming_hibernation","news_streaming_hibernation_delay_60min","news_streaming_hibernation_delay_10min","news_streaming_hibernation_delay_5min","news_enable_streaming_on_screener","replay_trading_brackets","cqg-realtime-bandwidth-limit","cityindex_spreadbetting","do_not_wait_meta_info","paper_use_new_auth","stack_trace_clickable","oauth2_code_flow_provider_server_logger","turn_off_ai","enable_binanceapis_base_url","unsibscribe_competition_for_participants","hide_field_last_release_date","enable_first_touch_is_selection","serialize_study_metainfo_to_layout_root","binance_disable_live_account_verification","enable_forced_email_confirmation","ylg_oauth_authorization","show_replay_trading_panel"],_="[A-Z]+[a-zA-Z0-9_]+",i=new RegExp(`broker_${_}_dev`,"g"),r=new RegExp(`hide_${_}_on_ios`,"g"),n=new RegExp(`hide_${_}_on_android`,"g"),a=new RegExp(`hide_${_}_on_mobile_web`,"g") ;return-1===t.indexOf(e)&&-1===e.indexOf("-maintenance")&&!1===i.test(e)&&!1===r.test(e)&&!1===n.test(e)&&!1===a.test(e)}(t))||(!e[t]||-1!==e[t])&&(!!("true"===i.getItem(TradingView.FeatureToggle.force_prefix+t)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"true"===user.settings[TradingView.FeatureToggle.force_prefix+t])||!("false"===i.getItem(TradingView.FeatureToggle.force_prefix+t)||window.is_authenticated&&"undefined"!=typeof user&&user.settings&&"false"===user.settings[TradingView.FeatureToggle.force_prefix+t])&&(!!e[t]&&(1===e[t]||r(t)<=e[t])))}return TradingView.onWidget()||Promise.all([_.e(5069),_.e(34604)]).then(_.bind(_,405069)).then((t=>{t.pushStreamMultiplexer.on("featuretoggle",(function(t){var _=o(t.name);e[t.name]=t.state,_!==o(t.name)&&a.fire(t.name)}))})),o}(window.featureToggleState||{}),TradingView.FeatureToggle,t.isFeatureEnabled=TradingView.isFeatureEnabled,TradingView.FeatureToggle.onFeaturesStateChanged.bind(TradingView.FeatureToggle)},659863:(e,t,_)=>{new class{constructor(e,t){this._test=e[t]={}}provide(e,t){this._test[e]=t}}(window,"qaGlobals")},667353:(e,t,_)=>{_.d(t,{numOfDecimalPlaces:()=>r});var i=_(960521);function r(e){return(new i.Big(e).toFixed().split(".")[1]||"").length}},624444:(e,t,_)=>{_.d(t,{PriceFormatter:()=>o});var i=_(389137),r=_(305138),n=_(998454),a=_(839878);class o{constructor(e,t,_,o,s,l){if(this.type="price",t&&!l||(t=1),(0,i.isNumber)(e)&&(0,i.isInteger)(e)||(e=100),e<0)throw new TypeError("invalid base");this._priceScale=e,this._minMove=t,this._minMove2=o,this._fractional=_,this._variableMinTick=s,this._ignoreMinMove=l,this._fractionalLength=(0,a.calculateDecimal)(this._priceScale,this._minMove,this._fractional,this._minMove2),this._implementation=_?new n.FractionalPriceFormatterImpl(e,t,o,s,l,this._fractionalLength):new r.DecimalPriceFormatterImpl(e,t,o,s,l,this._fractionalLength)}isFractional(){return!!this._fractional}state(){return{minMove:this._minMove,minMove2:this._minMove2,priceScale:this._priceScale,variableMinTick:this._variableMinTick,ignoreMinMove:this._ignoreMinMove,fractional:this._fractional,fractionalLength:this._fractionalLength}}formatChange(e,t,_){return this._implementation.formatImpl(e-t,_,void 0,void 0,void 0,void 0,Math.min(Math.abs(e),Math.abs(t)))}format(e,t,_,i=!0,r=!0,n=!1){return this._implementation.formatImpl(e,t,_,i,r,n)}parse(e){return this._implementation.parse(e)}hasForexAdditionalPrecision(){return this._implementation.hasForexAdditionalPrecision()}static serialize(e){return e.state()}static deserialize(e){return new o(e.priceScale,e.minMove,e.fractional,e.minMove2,e.variableMinTick,e.ignoreMinMove)}}},201089:(e,t,_)=>{_.r(t),_.d(t,{LOGLEVEL:()=>i.LOGLEVEL,getLogHistory:()=>i.getLogHistory,getLogLevel:()=>i.getLogLevel,getLogger:()=>i.getLogger,getRawLogHistory:()=>i.getRawLogHistory,isHighRateEnabled:()=>i.isHighRateEnabled,loggingOff:()=>i.loggingOff,loggingOn:()=>i.loggingOn,serializeLogHistoryEntry:()=>i.serializeLogHistoryEntry,setLogLevel:()=>i.setLogLevel});var i=_(194582)},746133:(e,t,_)=>{var i ;!function(e){e.Monthly="m",e.ThreeMonths="3m",e.OneYear="y",e.TwoYears="2y"}(i||(i={}))},822122:(e,t,_)=>{var i,r,n,a;_.d(t,{ProPlans:()=>i}),function(e){e.Free="free",e.Pro="pro",e.ProTrial="pro_trial",e.ProRealtime="pro_realtime",e.ProRealtimeTrial="pro_realtime_trial",e.ProPremium="pro_premium",e.ProPremiumTrial="pro_premium_trial"}(i||(i={})),function(e){e.ProExpert="pro_expert",e.ProRealtimeExpert="pro_realtime_expert",e.PremiumExpert="pro_premium_expert"}(r||(r={})),function(e){e.Platinum="platinum",e.Gold="gold",e.Silver="silver",e.Free="free"}(n||(n={})),function(e){e[e.Platinum=3]="Platinum",e[e.Gold=2]="Gold",e[e.Silver=1]="Silver",e[e.Free=0]="Free"}(a||(a={}))},239589:(e,t,_)=>{function i(e,t){const _=t||window.locale||"en";let i=e[_]?e[_]:e.en;return i="tradingview.com"===i?"www.tradingview.com":i,i?document.location.protocol+"//"+i:""}_.d(t,{determineBaseUrl:()=>i})},255453:(e,t,_)=>{_.d(t,{getProductForTrial:()=>n,isTrialProduct:()=>r});_(586463),_(444372),_(822122),_(746133);const i="_trial";function r(e){return new RegExp("_trial$").test(e)}function n(e){return e.split(i)[0]}},691239:(e,t,_)=>{function i(e){const t=new URL(e,document.baseURI);return n(t)&&r(t)}_.d(t,{isInternalHost:()=>a,isSafeUrl:()=>i});const r=e=>!e.username,n=e=>"http:"===e.protocol||"https:"===e.protocol;function a(e,t=window.location.hostname){const _="."===t.slice(-1)?3:2,i=t.toLowerCase().split(".").slice(-_),r=e.toLowerCase().split(".").slice(-i.length);return i.join(".")===r.join(".")}},42398:(e,t,_)=>{_.d(t,{addUtmToUrl:()=>r});var i=_(185515);function r(e,t){if(!/([a-zA-Z0-9.-]*tradingview.com)|localhost/.test(e))return e;const _=(0,i.buildUtmQueryString)(t);if(""===_)return e;const r=e.indexOf("?"),n=e.indexOf("#"),a=-1!==n;if(-1!==r&&(!a||r