(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[27350,82869],{188746:e=>{e.exports={}},668403:e=>{e.exports={"common-tooltip":"common-tooltip-EJBD96zX","common-tooltip--hidden":"common-tooltip--hidden-EJBD96zX","common-tooltip--horizontal":"common-tooltip--horizontal-EJBD96zX","common-tooltip--farther":"common-tooltip--farther-EJBD96zX","common-tooltip--vertical":"common-tooltip--vertical-EJBD96zX","common-tooltip-farther":"common-tooltip-farther-EJBD96zX","common-tooltip--direction_normal":"common-tooltip--direction_normal-EJBD96zX","common-tooltip__body":"common-tooltip__body-EJBD96zX","common-tooltip__button-container":"common-tooltip__button-container-EJBD96zX","common-tooltip__body--no-buttons":"common-tooltip__body--no-buttons-EJBD96zX","common-tooltip__button":"common-tooltip__button-EJBD96zX","common-tooltip--direction_reversed":"common-tooltip--direction_reversed-EJBD96zX","common-tooltip__ear-holder":"common-tooltip__ear-holder-EJBD96zX","common-tooltip__ear-holder--below":"common-tooltip__ear-holder--below-EJBD96zX","common-tooltip__ear-holder--above":"common-tooltip__ear-holder--above-EJBD96zX","common-tooltip__ear-holder--before":"common-tooltip__ear-holder--before-EJBD96zX","common-tooltip__ear-holder--after":"common-tooltip__ear-holder--after-EJBD96zX","common-tooltip__body--with-hotkey":"common-tooltip__body--with-hotkey-EJBD96zX","common-tooltip__body--width_wide":"common-tooltip__body--width_wide-EJBD96zX","common-tooltip__body--width_narrow":"common-tooltip__body--width_narrow-EJBD96zX","common-tooltip__body--no-padding":"common-tooltip__body--no-padding-EJBD96zX","common-tooltip__hotkey-block":"common-tooltip__hotkey-block-EJBD96zX","common-tooltip__hotkey-block--divider":"common-tooltip__hotkey-block--divider-EJBD96zX","common-tooltip__hotkey-text":"common-tooltip__hotkey-text-EJBD96zX","common-tooltip__hotkey-button":"common-tooltip__hotkey-button-EJBD96zX","common-tooltip__plus-sign":"common-tooltip__plus-sign-EJBD96zX"}},764250:(e,t,o)=>{"use strict";o.d(t,{ActionGroup:()=>i});class r{constructor(e,t){this._group=e;const{hotkey:o,handler:r,desc:i,isDisabled:s,element:n=null,isRepeatAccepted:a=!1}=t;this.hotkey=o,this.handler=r,this.desc=i,this.element=n,this.isRepeatAccepted=a,this.isDisabled=s?"function"==typeof s?s:()=>!0:()=>!1}destroy(){this._group&&(this._group.remove(this),this._group=null)}}class i{constructor(e,t){this._actions=new Map,this._manager=e,this.modal=!(!t||!t.modal),t&&(this.desc=t.desc),t&&t.isDisabled?"function"==typeof t.isDisabled?this.isDisabled=t.isDisabled:this.isDisabled=()=>!0:this.isDisabled=()=>!1,this._manager.registerGroup(this)}add(e){let t=this._actions.get(e.hotkey);t||(t=[],this._actions.set(e.hotkey,t));const o=new r(this,e);return t.push(o),o}remove(e){const t=this._actions.get(e.hotkey);if(!t)return;const o=t.findIndex((t=>t===e));o>=0&&(1===t.length?this._actions.delete(e.hotkey):t.splice(o,1))}handleHotkey(e,t){const o=this._actions.get(e);if(!o)return!1 ;for(const r of o)if((!r.element||t.target&&r.element.contains(t.target))&&!r.isDisabled())return t.repeat&&!r.isRepeatAccepted||(r.handler(t),this._callMatchedHotkeyHandler(e)),t.preventDefault(),!0;return!1}promote(){this._manager.promoteGroup(this)}destroy(){for(const[,e]of this._actions)for(const t of e)t.destroy();this._actions.clear(),this._manager.unregisterGroup(this)}static setMatchedHotkeyHandler(e){i._matchedHotkeyHandler=e}_callMatchedHotkeyHandler(e){i._matchedHotkeyHandler&&i._matchedHotkeyHandler(e)}}},163586:(e,t,o)=>{"use strict";o.d(t,{ActionManager:()=>l});var r=o(91679),i=o(591800),s=o(607423);class n{constructor(e,t){this.modifiers=e,this.code=t}altOrOptionCode(){return"AltLeft"===this.code||"AltRight"===this.code}controlOrMetaCode(){return i.isMacKeyboard?"MetaLeft"===this.code||"MetaRight"===this.code||"OSLeft"===this.code||"OSRight"===this.code:"ControlLeft"===this.code||"ControlRight"===this.code}}class a extends r.WatchedValue{setValue(e,t){const o=this.value();(t||void 0===o||o.code!==e.code||o.modifiers!==e.modifiers)&&super.setValue(e)}}class l{constructor(){this._groups=[],this._pressedKeys=new r.WatchedValue(0),this._keyboardPressedKeysState=new a(new n(0)),this._keyDownListener=e=>{if(e.defaultPrevented)return;const t=(0,i.hashFromEvent)(e);if(this._pressedKeys.setValue(t),this._keyboardPressedKeysState.setValue(new n((0,i.modifiersFromEvent)(e),e.code)),!(0,s.isNativeUIInteraction)(t,e.target))for(let o=this._groups.length;o-- >0;){const r=this._groups[o];if(!r.isDisabled()){if(r.handleHotkey(t,e))return;if(r.modal)return}}},this._keyUpListener=e=>{const t=(0,i.hashFromEvent)(e);this._pressedKeys.setValue(t),this._keyboardPressedKeysState.setValue(new n((0,i.modifiersFromEvent)(e),""))},this._blurEvent=()=>{this._pressedKeys.setValue(0),this._keyboardPressedKeysState.setValue(new n(0,""))},this._mouseEvent=e=>{var t;const o=(0,i.modifiersFromEvent)(e),r=255&(null!==(t=this._pressedKeys.value())&&void 0!==t?t:0);this._pressedKeys.setValue(o|r)}}listen(e){e.addEventListener("keydown",this._keyDownListener),e.addEventListener("keyup",this._keyUpListener),e.addEventListener("blur",this._blurEvent),e.addEventListener("mousemove",this._mouseEvent)}unlisten(e){e.removeEventListener("keydown",this._keyDownListener),e.removeEventListener("keyup",this._keyUpListener),e.removeEventListener("blur",this._blurEvent),e.removeEventListener("mousemove",this._mouseEvent)}registerGroup(e){this._groups.push(e)}unregisterGroup(e){for(let t=this._groups.length;t--;)this._groups[t]===e&&this._groups.splice(t,1)}promoteGroup(e){let t=this._groups.length-1;for(let o=this._groups.length;o--;){if(this._groups[o]===e)return void(o!==t&&(this._groups.splice(o,1),this._groups.splice(t,0,e)));this._groups[o].modal&&(t=o-1)}}pressedKeys(){return this._pressedKeys.readonly()}keyboardPressedKeysState(){return this._keyboardPressedKeysState.readonly()}}},607423:(e,t,o)=>{"use strict";o.d(t,{isNativeUIInteraction:()=>s,isTextEditingField:()=>i});var r=o(591800);function i(e){if("INPUT"===e.tagName){const t=e.type ;return"text"===t||"email"===t||"number"===t||"password"===t||"search"===t||"tel"===t||"url"===t}return"TEXTAREA"===e.tagName||e.isContentEditable}function s(e,t){if(!t)return!1;const o=255&e;if(27===o||o>>>4==7)return!1;switch(e^o){case r.Modifiers.Alt:return(38===o||40===o)&&"SELECT"===t.tagName||i(t);case r.Modifiers.Alt+r.Modifiers.Shift:return i(t);case r.Modifiers.Mod:if(67===o||!r.isMacKeyboard&&45===o){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return i(t);case r.Modifiers.Mod+r.Modifiers.Shift:return o>=33&&o<=40&&i(t);case r.Modifiers.Shift:case 0:return 9===o?!(!t.ownerDocument||t===t.ownerDocument.body||t===t.ownerDocument.documentElement):(!function(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){const t=e.type;if("submit"===t||"button"===t||"reset"===t||"checkbox"===t||"radio"===t)return!0}return!1}(t)||13===o||32===o||9===o)&&("form"in t||t.isContentEditable)}return!1}},336748:(e,t,o)=>{"use strict";o.d(t,{colorsPalette:()=>_,findHexColorByName:()=>d,getHexColorByName:()=>h});var r=o(330120),i=o(559419),s=o(650151);const n={...r,...i},a={},l=Object.keys(n).length,c=/^#(([a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i;function d(e,t=[],o=n){const r=o[e];if(!r)return null;if(c.test(r))return r;const i=r;return t.push(e),-1!==t.indexOf(i)?(console.warn("Colors definitions cycled"),r):t.length>l?(console.warn("Too many variables-link in HEX-color search: "+t[0]),null):d(i,t,o)}Object.keys(n).forEach((e=>{const t=d(e);a[e]=(0,s.ensureNotNull)(t)}));const _=a;function h(e,t=_){const o=t[e];if(!o){if(c.test(e))return e;throw new Error("No such color "+e)}return o}},790188:(e,t,o)=>{"use strict";o.r(t),o.d(t,{colorsPalette:()=>r.colorsPalette,findHexColorByName:()=>r.findHexColorByName,getHexColorByName:()=>r.getHexColorByName});var r=o(336748)},132734:(e,t,o)=>{"use strict";o.d(t,{Icon:()=>i});var r=o(50959);const i=r.forwardRef(((e,t)=>{const{icon:o="",...i}=e;return r.createElement("span",{...i,ref:t,role:"img",dangerouslySetInnerHTML:{__html:o}})}))},79205:(e,t,o)=>{"use strict";o.d(t,{Icon:()=>r.Icon});var r=o(132734)},499994:(e,t,o)=>{"use strict";o.d(t,{getTooltipData:()=>i,setTooltipData:()=>s});const r=new WeakMap;function i(e,t){const o=r.get(e);return o instanceof Function?o(t):o&&o[t]}function s(e,t,o){if(o instanceof Function)return void r.set(e,o);const i=r.get(e),s=void 0===i||i instanceof Function?{}:i;s[t]=o,r.set(e,s)}},604286:(e,t,o)=>{"use strict";o.d(t,{hotKeyDeserialize:()=>s,hotKeySerialize:()=>i});var r=o(919476);function i(e){return(0,r.htmlEscape)(JSON.stringify(e))}function s(e){return JSON.parse((0,r.decodeHTMLEntities)(e))}},630112:(e,t,o)=>{"use strict";o.d(t,{empty:()=>n,setTooltip:()=>a});const r="tooltip-root-element";let i;function s(){const e=document.getElementById(r);e?i=e:(i=document.createElement("div"),i.id=r,document.body.appendChild(i))}function n(){i&&(i.innerHTML="")}function a(e){n(),i&&i.appendChild(e)}"interactive"===document.readyState?s():document.addEventListener("DOMContentLoaded",s)},112539:(e,t,o)=>{"use strict" ;o.d(t,{clearSchedule:()=>n,scheduleHide:()=>l,scheduleRemove:()=>a,scheduleRender:()=>c});let r=0,i=0,s=0;function n(){clearTimeout(r),clearTimeout(i),clearTimeout(s)}function a(e,t){s=setTimeout(e,t)}function l(e,t){i=setTimeout(e,t)}function c(e,t){r=setTimeout(e,t)}},529111:(e,t,o)=>{"use strict";o.d(t,{setTooltipColorTheme:()=>s});const r={default:"",white:"theme-white",chart:"theme-chart","round-shadow":"theme-round-shadow"},i=Object.keys(r);function s(e,t){const o=i.includes(t)?r[t]:"";e.classList.remove(...i.map((e=>r[e])).filter((e=>!!e))),o&&!e.classList.contains(o)&&e.classList.add(o)}},780792:(e,t,o)=>{"use strict";o.d(t,{AbstractIndicator:()=>a});var r=o(201089),i=o(541558),s=o(876332);o(673747);const n=(0,r.getLogger)("GUI.Blocks.AbstractIndicator");class a{constructor(e){this._classSuffix="",this._quoteSessionPrefix="abstract-indicator",this._shortMode=!1,this._showTooltip=!0,this._subscribed=!1,this._tooltipType="custom",this._lastTooltipText="",this._quoteSession=e.quoteSession}getValue(){return this._value}getTooltipText(){return this._labelMap[this._value]||""}getLabel(){return this._labelMap[this._value]||""}getElement(){return this._el}update(e,t){this._updateValue(e,t),this._render()}setTooltipEnabled(e=!1){this._showTooltip!==e&&(this._showTooltip=e,this._renderTooltip())}enableShortMode(){!0!==this._shortMode&&(this._shortMode=!0,this._render())}disableShortMode(){!1!==this._shortMode&&(this._shortMode=!1,this._render())}isShortModeEnabled(){return this._shortMode}start(){!this._subscribed&&this._symbolName&&(this._quoteSession||(this._quoteSession=(0,s.getQuoteSessionInstance)("simple")),this._quoteSession.subscribe(this._getQuoteSessionId(),this._symbolName,this.update.bind(this)),this._subscribed=!0)}stop(){this._subscribed&&this._quoteSession&&this._symbolName&&(this._quoteSession.unsubscribe(this._getQuoteSessionId(),this._symbolName),this._subscribed=!1)}setSessionStatusIcon(e){this._sessionStatusIcon!==e&&(this._sessionStatusIcon=e,this._render())}_init(e){this._el=e.el?e.el:document.createElement("span"),this._el.innerHTML="",this._classMap=e.classMap,this._iconClassMap=e.iconClassMap,this._labelMap=e.labelMap,this._showTooltip=e.showTooltip,this._classSuffix=e.classSuffix,this._symbolName=e.symbol,this._sessionStatusIcon=e.sessionStatusIcon,this._onValueChange=e.onValueChange,e.tooltipType&&(this._tooltipType=e.tooltipType),this._quoteSessionGUID=(0,i.guid)(),!0===e.short&&this.enableShortMode(),e.data&&this._updateValue(e.data)}_clearClasses(){Object.values(this._classMap).map((e=>{this._el.classList.remove(`${e}`),this._el.classList.remove(`${e}${this._classSuffix}`)}))}_render(){this._renderClasses(),this._renderTooltip(),this._renderLabel()}_renderLabel(){this._el.textContent=this.getLabel()}_updateValue(e,t){var o;const r=this._getValueFromData(e);(t||r!==this._value)&&(this._value=r,null===(o=this._onValueChange)||void 0===o||o.call(this,this._value))}_renderClasses(){const e=this._el.classList;e.add(this._componentClass,this._componentClass+this._classSuffix) ;const t=this._classMap[this._value];for(const o in this._classMap){const r=this._classMap[o];r&&(r===t?(e.add(r,r+this._classSuffix),this._sessionStatusIcon&&e.add(r+"__withIcon")):(e.remove(r,r+this._classSuffix),this._sessionStatusIcon&&e.remove(r+"__withIcon")))}!t&&this._value&&n.logWarn(`no className for status ${this._value}`)}_renderTooltip(){const e=this._showTooltip?this.getTooltipText():"";e!==this._lastTooltipText&&(this._lastTooltipText=e,this._el.setAttribute("title",e),"custom"===this._tooltipType&&this._el.classList.toggle("apply-common-tooltip",this._showTooltip))}_getQuoteSessionId(){return`${this._quoteSessionPrefix}.${this._quoteSessionGUID}`}}},719240:(e,t,o)=>{"use strict";o.d(t,{DataModeIndicator:()=>l});var r=o(444372),i=(o(586463),o(188746),o(780792));const s={connecting:"tv-data-mode--connecting",delayed:"tv-data-mode--delayed",delayed_streaming:"tv-data-mode--delayed",endofday:"tv-data-mode--endofday",forbidden:"tv-data-mode--forbidden",realtime:"tv-data-mode--realtime",snapshot:"tv-data-mode--snapshot",loading:"tv-data-mode--loading",replay:"tv-data-mode--replay"};function n(){return{connecting:r.t(null,{context:"data_mode_connecting_letter"},o(52587)),delayed:r.t(null,{context:"data_mode_delayed_letter"},o(469219)),delayed_streaming:r.t(null,{context:"data_mode_delayed_streaming_letter"},o(426211)),endofday:r.t(null,{context:"data_mode_end_of_day_letter"},o(960582)),forbidden:r.t(null,{context:"data_mode_forbidden_letter"},o(957357)),realtime:r.t(null,{context:"data_mode_realtime_letter"},o(647310)),snapshot:r.t(null,{context:"data_mode_snapshot_letter"},o(87817)),loading:"",replay:r.t(null,{context:"data_mode_replay_letter"},o(214485))}}const a={streaming:"realtime"};class l extends i.AbstractIndicator{constructor(e){super(e),this._quoteSessionPrefix="data-mode-indicator",this._componentClass="tv-data-mode",this._init(e)}getLabel(){return!0===this._shortMode?this._shortLabelMap[this._value]||"":super.getLabel()}setMode(e,t){this.update({values:{update_mode:e,update_mode_seconds:t}})}hide(){this._el.classList.add("i-hidden")}show(){this._el.classList.remove("i-hidden")}getTooltipText(){let e="";const t=this.getValue();if(""===t)return e;switch(t){case"delayed":e=r.t(null,void 0,o(728332));break;case"delayed_streaming":e=r.t(null,void 0,o(887267));break;default:e=this._labelMap[t]||e}return["delayed","delayed_streaming"].includes(t)&&(e=e.format({number:String(Math.round(this._modeInterval/60))})),e}_init(e={}){const t=Object.assign({},{classMap:s,classSuffix:"",data:{values:{update_mode:"connecting"}},labelMap:{connecting:r.t(null,void 0,o(413859)),delayed:r.t(null,void 0,o(78211)),delayed_streaming:r.t(null,void 0,o(78211)),endofday:r.t(null,void 0,o(132023)),forbidden:r.t(null,void 0,o(113439)),realtime:r.t(null,void 0,o(906530)),snapshot:r.t(null,void 0,o(502927)),loading:"",replay:r.t(null,void 0,o(688506))},modeInterval:600,short:!1,shortLabelMap:n(),showTooltip:!0,tooltipType:"custom"},e);this._modeInterval=t.modeInterval||600,this._shortLabelMap=t.shortLabelMap||n(),super._init(t), this._render()}_getValueFromData(e){let t;return t=void 0!==e.values&&void 0!==e.values.update_mode?e.values.update_mode:this.getValue(),a[t]||t}_updateValue(e,t){void 0!==e.values&&void 0!==e.values.update_mode_seconds&&(this._modeInterval=e.values.update_mode_seconds),super._updateValue(e,t)}}},583912:(e,t,o)=>{"use strict";o.d(t,{linking:()=>y});var r=o(12481),i=o(650151),s=o(401580),n=(o(244842),o(223699)),a=o(444331),l=o(201089),c=o(62802),d=o(588948),_=o(776734),h=o(707621),u=o(912445);const p=(0,l.getLogger)("Linking");class g{constructor(e,t,o){this.watchedSymbol=new s.WatchedValue,this.seriesShortSymbol=new s.WatchedValue,this.proSymbol=new s.WatchedValue,this.ensuredProSymbol=new s.WatchedValue,this.watchedInterval=new s.WatchedValue,this.watchedIntraday=new s.WatchedValue,this.watchedSeconds=new s.WatchedValue,this.watchedTicks=new s.WatchedValue,this.watchedDataFrequencyResolution=new s.WatchedValue,this.watchedRange=new s.WatchedValue,this.watchedSupportedResolutions=new s.WatchedValue,this.watchedSupportedChartStyles=new s.WatchedValue,this.symbolNamesList=new s.WatchedValue,this._chartWidgetCollection=null,this._chartWidgetBindingState=0,this._activeChartWidget=null,this._linkingGroupCharts=null,this._boundChartWidget=null,this._watchedSymbolListenerBound=this._watchedSymbolListener.bind(this),this._watchedIntervalListenerBound=this._watchedIntervalListener.bind(this),this._muted=!1,this.updateBoundChartWidget=()=>{const e=this._chartToBind();e!==this._boundChartWidget&&(null===e?this.unbindFromChartWidget():this.bindToChartWidget(e))},this._updateAllGroupChartWidgets=()=>{var e;null===(e=this._destroySymbolIntervalPropertySubscriptions)||void 0===e||e.call(this);const t=(0,i.ensureNotNull)(this._linkingGroupCharts).value(),o=[],r=[];for(const e of t){const t=e.symbolWV().spawn(),i=e.resolutionWV().spawn();t.subscribe(this._updateSymbolByProperty.bind(this,e)),i.subscribe(this._updateIntervalByProperty.bind(this,e)),o.push(t),r.push(i)}this._destroySymbolIntervalPropertySubscriptions=()=>{o.forEach((e=>e.destroy())),r.forEach((e=>e.destroy())),this._destroySymbolIntervalPropertySubscriptions=void 0};const s=this.watchedSymbol.value();t.length>1&&this._needApplySymbol(s)&&!this._muted&&this._setGroupSymbol(s);const n=this.watchedInterval.value();t.length>1&&this._needApplyInterval(n)&&!this._muted&&this._setGroupInterval(n),this.updateBoundChartWidget()},this._groupIndex=e;const r=(e,t)=>{e.subscribe((e=>{o()===this&&t.setValue(e)}),{callWithLast:!0})};r(this.watchedSymbol,t.watchedSymbol),r(this.seriesShortSymbol,t.seriesShortSymbol),r(this.proSymbol,t.proSymbol),r(this.ensuredProSymbol,t.ensuredProSymbol),r(this.watchedInterval,t.watchedInterval),r(this.watchedIntraday,t.watchedIntraday),r(this.watchedSeconds,t.watchedSeconds),r(this.watchedTicks,t.watchedTicks),r(this.watchedDataFrequencyResolution,t.watchedDataFrequencyResolution),r(this.watchedRange,t.watchedRange),r(this.watchedSupportedResolutions,t.watchedSupportedResolutions),r(this.watchedSupportedChartStyles,t.watchedSupportedChartStyles), r(this.symbolNamesList,t.symbolNamesList),this.watchedSymbol.subscribe((e=>{this._boundChartWidget&&this._boundChartWidget.hasModel()&&this._mainSeries().symbolSameAsCurrent(e)||this.proSymbol.setValue(e)}),{callWithLast:!0})}mute(e){this._muted=e}bindToChartWidgetCollection(e){this.unbindFromChartWidgetCollection(),this._chartWidgetCollection=e,this._activeChartWidget=e.activeChartWidget.spawn(),this._activeChartWidget.subscribe(this.updateBoundChartWidget),this._linkingGroupCharts=e.linkingGroupsCharts(this._groupIndex).spawn(),this._linkingGroupCharts.subscribe(this._updateAllGroupChartWidgets),this.updateBoundChartWidget(),this._updateAllGroupChartWidgets()}unbindFromChartWidgetCollection(){var e,t,o;this.unbindFromChartWidget(),this._chartWidgetCollection=null,null===(e=this._activeChartWidget)||void 0===e||e.destroy(),this._activeChartWidget=null,null===(t=this._linkingGroupCharts)||void 0===t||t.destroy(),this._linkingGroupCharts=null,null===(o=this._destroySymbolIntervalPropertySubscriptions)||void 0===o||o.call(this)}bindToChartWidget(e){if(this.unbindFromChartWidget(),this._boundChartWidget=e,e.hasModel())return void this._onChartModelCreated(e.model());e.modelCreated().subscribe(this,this._onChartModelCreated,!0),this._chartWidgetBindingState=1;const t=e.properties().childs().mainSeriesProperties.childs();this.watchedSymbol.setValue(t.symbol.value()),this.watchedInterval.setValue(t.interval.value()),this._boundChartWidget.linkingGroupIndex().subscribe(this.updateBoundChartWidget)}unbindFromChartWidget(){const e=this._boundChartWidget;if(null!==e){switch(this._chartWidgetBindingState){case 1:e.modelCreated().unsubscribeAll(this);break;case 2:this.watchedSymbol.unsubscribe(this._watchedSymbolListenerBound);const t=this._mainSeries().dataEvents();t.symbolResolved().unsubscribeAll(this),t.symbolError().unsubscribeAll(this),this.watchedInterval.unsubscribe(this._watchedIntervalListenerBound),delete this.watchedSymbol.writeLock}e.linkingGroupIndex().unsubscribe(this.updateBoundChartWidget),this._boundChartWidget=null,this._chartWidgetBindingState=0}}boundChartWidget(){return this._boundChartWidget}_mainSeries(){if(!this._boundChartWidget)throw new Error("ChartWidget is undefined");return this._boundChartWidget.model().mainSeries()}_watchedSymbolListener(e){this._needApplySymbol(e)&&!this._muted&&(this._setGroupSymbol(e),this._sendSnowplowAnalytics())}_updateSymbolByProperty(e,t){const o=this._symbolLock();o&&this._needApplySymbol(t)&&!this._muted&&this._setGroupSymbol(t),(o||e===this._boundChartWidget)&&this.watchedSymbol.setValue(t)}_watchedIntervalListener(e){const t=n.Interval.normalize(e);t&&this._needApplyInterval(t)&&!this._muted&&this._setGroupInterval(t)}_updateIntervalByProperty(e,t){const o=this._intervalLock(),r=n.Interval.normalize(t);o&&r&&this._needApplyInterval(r)&&!this._muted&&this._setGroupInterval(r),(o||e===this._boundChartWidget)&&this.watchedInterval.setValue(null!=r?r:t)}_sendSnowplowAnalytics(){if(window.user.do_not_track)return;const e=this._mainSeries(),t=()=>{ e.dataEvents().symbolResolved().unsubscribe(this,o)},o=o=>{(0,_.getTracker)().then((e=>{if(null===e)return;const t=(0,i.ensureNotNull)(this._chartWidgetCollection),r=t.layout.value(),s=t.metaInfo.uid.value()||"";e.trackChartSymbols(o.pro_name,o.type,r,s)})),e.dataEvents().symbolError().unsubscribe(this,t)};e.dataEvents().symbolResolved().subscribe(this,o,!0),e.dataEvents().symbolError().subscribe(this,t,!0)}_updateSeriesSymbolInfo(){this.seriesShortSymbol.setValue((0,i.ensureNotNull)(this._boundChartWidget).getSymbol(!0));const e=this._mainSeries().symbolInfo();if(e){const t=e.pro_name||!1;this.proSymbol.setValue(t||this.watchedSymbol.value()),this.ensuredProSymbol.setValue(this.proSymbol.value()),e.aliases&&this.symbolNamesList.setValue(e.aliases);let o=(0,h.allChartStyles)();(0,a.isCloseBasedSymbol)(e)&&(o=o.filter((e=>(0,a.isSingleValueBasedStyle)(e)))),this.watchedSupportedChartStyles.setValue(o),this.watchedIntraday.setValue(!!e.has_intraday),this.watchedSeconds.setValue(!!e.has_seconds),this.watchedTicks.setValue(!(0,a.isCloseBasedSymbol)(e)&&!!e["is-tickbars-available"]),this.watchedRange.setValue(!(0,a.isCloseBasedSymbol)(e));const r=e.data_frequency?e.data_frequency:void 0;this.watchedDataFrequencyResolution.setValue(r)}else this.watchedIntraday.setValue(!1),this.watchedSeconds.setValue(!1),this.watchedTicks.setValue(!1),this.watchedRange.setValue(!1),this._mainSeries().isFailed()&&this.ensuredProSymbol.setValue(this.proSymbol.value())}_onChartModelCreated(e){if(!this._boundChartWidget)throw new Error("ChartWidget is undefined");this._chartWidgetBindingState=2,this.watchedSymbol.setValue(this._boundChartWidget.symbolWV().value()),this.watchedSymbol.subscribe(this._watchedSymbolListenerBound);const t=e.mainSeries().dataEvents();t.symbolResolved().subscribe(this,this._updateSeriesSymbolInfo),t.symbolError().subscribe(this,this._updateSeriesSymbolInfo),this._updateSeriesSymbolInfo(),this.watchedInterval.setValue(this._boundChartWidget.resolutionWV().value()),this.watchedInterval.subscribe(this._watchedIntervalListenerBound),this._boundChartWidget.readOnly()&&(this.watchedSymbol.writeLock=!0)}_chartToBind(){var e;const t=this._chartWidgetCollection;return null===t?null:t.activeChartWidget.value().linkingGroupIndex().value()===this._groupIndex?t.activeChartWidget.value():null!==this._boundChartWidget&&this._boundChartWidget.linkingGroupIndex().value()===this._groupIndex?this._boundChartWidget:null!==(e=t.getAll().find((e=>e.linkingGroupIndex().value()===this._groupIndex)))&&void 0!==e?e:null}_symbolLock(){var e;return!!(null===(e=this._chartWidgetCollection)||void 0===e?void 0:e.lock.symbol.value())}_intervalLock(){var e;return!!(null===(e=this._chartWidgetCollection)||void 0===e?void 0:e.lock.interval.value())}_chartsForLock(e){return(0===e?this._symbolLock():this._intervalLock())?(0,i.ensureNotNull)(this._linkingGroupCharts).value():this._boundChartWidget?[this._boundChartWidget]:[]}_setGroupSymbol(e){this.mute(!0),this._symbolLock()?(0, i.ensureNotNull)(this._chartWidgetCollection).setSymbol(e,this._groupIndex):(0,i.ensureNotNull)(this._boundChartWidget).setSymbol(e),this.mute(!1)}_needApplySymbol(e){const t=this._chartsForLock(0),o=t.find((t=>t.hasModel()&&t.model().mainSeries().symbolInfo()&&t.model().mainSeries().symbolSameAsResolved(e)));if(o){const e=o.model().mainSeries();if(t.every((t=>e.symbolSameAsResolved(t.symbolWV().value()))))return!1}return t.some((t=>t.symbolWV().value()!==e))}_setGroupInterval(e){this.mute(!0),this._intervalLock()?(0,i.ensureNotNull)(this._chartWidgetCollection).setResolution(e,this._groupIndex):(0,i.ensureNotNull)(this._boundChartWidget).setResolution(e),this.mute(!1)}_needApplyInterval(e){return this._chartsForLock(1).some((t=>!n.Interval.isEqual(t.resolutionWV().value(),e)))}}const y=new class{constructor(){this._watchedSymbol=new s.WatchedValue,this._seriesShortSymbol=new s.WatchedValue,this._proSymbol=new s.WatchedValue,this._ensuredProSymbol=new s.WatchedValue,this._watchedInterval=new s.WatchedValue,this._watchedIntraday=new s.WatchedValue,this._watchedSeconds=new s.WatchedValue,this._watchedTicks=new s.WatchedValue,this._watchedDataFrequencyResolution=new s.WatchedValue,this._watchedRange=new s.WatchedValue,this._watchedSupportedResolutions=new s.WatchedValue,this._watchedSupportedChartStyles=new s.WatchedValue([]),this._symbolNamesList=new s.WatchedValue,this._chartWidgetCollection=null,this._onSymbolLinkBound=this._onSymbolLink.bind(this),this._searchCharts=null,this._searchChartsLoadDebounced=null,this._selfEmit=!1,this._preventFeedBySymbol=!1,this._feedBySymbolDebounceCounter=0,this._linkingGroups=new Map,this._activeLinkingGroup=new s.WatchedValue,this._activeLinkingGroupIndex=null,this._updateLinkingGroups=()=>{(0,i.ensureNotNull)(this._chartWidgetCollection).allLinkingGroups().value().forEach((e=>this._linkingGroup(e))),this._linkingGroups.forEach((e=>e.updateBoundChartWidget()))},this._activeLinkingGroup.setValue(this._linkingGroup(null));const e=(e,t)=>{e.subscribe((e=>t().setValue(e)),{callWithLast:!0})};e(this._watchedSymbol,(()=>this._activeLinkingGroup.value().watchedSymbol)),e(this._seriesShortSymbol,(()=>this._activeLinkingGroup.value().seriesShortSymbol)),e(this._proSymbol,(()=>this._activeLinkingGroup.value().proSymbol)),e(this._ensuredProSymbol,(()=>this._activeLinkingGroup.value().ensuredProSymbol)),e(this._watchedInterval,(()=>this._activeLinkingGroup.value().watchedInterval)),e(this._watchedIntraday,(()=>this._activeLinkingGroup.value().watchedIntraday)),e(this._watchedSeconds,(()=>this._activeLinkingGroup.value().watchedSeconds)),e(this._watchedTicks,(()=>this._activeLinkingGroup.value().watchedTicks)),e(this._watchedDataFrequencyResolution,(()=>this._activeLinkingGroup.value().watchedDataFrequencyResolution)),e(this._watchedRange,(()=>this._activeLinkingGroup.value().watchedRange)),e(this._watchedSupportedResolutions,(()=>this._activeLinkingGroup.value().watchedSupportedResolutions)),e(this._watchedSupportedChartStyles,(()=>this._activeLinkingGroup.value().watchedSupportedChartStyles)), e(this._symbolNamesList,(()=>this._activeLinkingGroup.value().symbolNamesList));const t=e=>{this._watchedSymbol.setValue(e.watchedSymbol.value()),this._seriesShortSymbol.setValue(e.seriesShortSymbol.value()),this._proSymbol.setValue(e.proSymbol.value()),this._ensuredProSymbol.setValue(e.ensuredProSymbol.value()),this._watchedInterval.setValue(e.watchedInterval.value()),this._watchedIntraday.setValue(e.watchedIntraday.value()),this._watchedSeconds.setValue(e.watchedSeconds.value()),this._watchedTicks.setValue(e.watchedTicks.value()),this._watchedDataFrequencyResolution.setValue(e.watchedDataFrequencyResolution.value()),this._watchedRange.setValue(e.watchedRange.value()),this._watchedSupportedResolutions.setValue(e.watchedSupportedResolutions.value()),this._watchedSupportedChartStyles.setValue(e.watchedSupportedChartStyles.value()),this._symbolNamesList.setValue(e.symbolNamesList.value())};this._activeLinkingGroup.subscribe(t),t(this._activeLinkingGroup.value()),(0,u.setMuteLinkingGroup)(((e,t)=>{this._linkingGroup(e).mute(t)}))}get symbol(){return this._watchedSymbol}get proSymbol(){return this._proSymbol.readonly()}get ensuredProSymbol(){return this._ensuredProSymbol.readonly()}get symbolNamesList(){return this._symbolNamesList.readonly()}get seriesShortSymbol(){return this._seriesShortSymbol.readonly()}get interval(){return this._watchedInterval}get intraday(){return this._watchedIntraday.readonly()}get seconds(){return this._watchedSeconds.readonly()}get ticks(){return this._watchedTicks.readonly()}get range(){return this._watchedRange.readonly()}get supportedResolutions(){return this._watchedSupportedResolutions.readonly()}get supportedChartStyles(){return this._watchedSupportedChartStyles.readonly()}get preventFeedBySymbol(){return this._preventFeedBySymbol}get dataFrequencyResolution(){return this._watchedDataFrequencyResolution.readonly()}activeLinkingGroup(){return this._activeLinkingGroup.readonly()}getChartWidget(){return this.activeLinkingGroup().value().boundChartWidget()}bindToChartWidgetCollection(e){var t;null===(t=this._chartWidgetCollection)||void 0===t||t.onAboutToBeDestroyed.unsubscribeAll(this),this._unbindFromChartWidgetCollection(),this._chartWidgetCollection=e,this._chartWidgetCollection.onAboutToBeDestroyed.subscribe(this,this._unbindFromChartWidgetCollection),this._chartWidgetCollection.allLinkingGroups().subscribe(this._updateLinkingGroups),this._updateLinkingGroups(),this._activeLinkingGroupIndex=e.activeLinkingGroup().spawn(),this._activeLinkingGroupIndex.subscribe((e=>{this._activeLinkingGroup.setValue(this._linkingGroup(e))}),{callWithLast:!0}),this._linkingGroups.forEach((t=>t.bindToChartWidgetCollection(e)))}bindToSearchCharts(e){this.unbindFromSearchCharts(),this._searchCharts=e,e.onSearchBySymbol.subscribe(this,this._onSearchBySymbol),e.loadingSymbol.subscribe((e=>{!1===e&&(this._feedBySymbolDebounceCounter=0)})),this._watchedSymbol.subscribe(this._onSymbolLinkBound)}unbindFromSearchCharts(){ this._searchCharts&&(this._searchCharts.onSearchBySymbol.unsubscribe(this,this._onSearchBySymbol),this._watchedSymbol.unsubscribe(this._onSymbolLinkBound),this._searchCharts=null)}setPreventFeedBySymbol(e){this._preventFeedBySymbol=e}setSymbolAndLogInitiator(e,t,o){(this.symbol.value()!==e||o)&&(p.logInfo(`Change linking symbol to ${e}, initiator: ${t}`),this.symbol.setValue(e,o))}_onSearchBySymbol(e){if(!e.resolved_symbol)throw new Error("no resolved_symbol");this._selfEmit=!0,this._watchedSymbol.setValue(e.resolved_symbol),this._selfEmit=!1}_onSymbolLink(e){if(!this._selfEmit){if(!this._searchCharts){const e="No search charts defined";throw p.logError(e),new Error(e)}this._preventFeedBySymbol||this._loadSearchCharts(e)}}_loadSearchCharts(e){if(!this._searchCharts){const e="No search charts defined";throw p.logError(e),new Error(e)}if(this._searchChartsLoadDebounced)return void(this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced(e)));const t=e=>this._searchCharts?(!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,r.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchChartsLoadDebounced=null,this._searchCharts.feedBySymbol.call(this._searchCharts,e)):()=>{};!0===this._searchCharts.loadingSymbol.value()?this._feedBySymbolDebounceCounter<100&&(this._feedBySymbolDebounceCounter++,this._searchChartsLoadDebounced=(0,r.default)(t,2e3),this._searchChartsLoadDebounced(e)):this._searchCharts.feedBySymbol(e)}_linkingGroup(e){let t=this._linkingGroups.get(e);if(void 0===t){const o={watchedSymbol:this._watchedSymbol,seriesShortSymbol:this._seriesShortSymbol,proSymbol:this._proSymbol,ensuredProSymbol:this._ensuredProSymbol,watchedInterval:this._watchedInterval,watchedIntraday:this._watchedIntraday,watchedSeconds:this._watchedSeconds,watchedTicks:this._watchedTicks,watchedDataFrequencyResolution:this._watchedDataFrequencyResolution,watchedRange:this._watchedRange,watchedSupportedResolutions:this._watchedSupportedResolutions,watchedSupportedChartStyles:this._watchedSupportedChartStyles,symbolNamesList:this._symbolNamesList};t=new g(e,o,(()=>this._activeLinkingGroup.value())),this._linkingGroups.set(e,t),this._chartWidgetCollection&&t.bindToChartWidgetCollection(this._chartWidgetCollection)}return t}_unbindFromChartWidgetCollection(){var e;null!==this._chartWidgetCollection&&(null===(e=this._activeLinkingGroupIndex)||void 0===e||e.destroy(),this._activeLinkingGroupIndex=null,this._linkingGroups.forEach((e=>e.unbindFromChartWidgetCollection())),this._chartWidgetCollection.allLinkingGroups().unsubscribe(this._updateLinkingGroups),this._chartWidgetCollection=null)}};{const e=(0,d.getFreshInitData)().symbolInfo,t=e?e.pro_symbol:c.getValue("editchart.model.symbol",window.DEFAULT_SYMBOL);y.setSymbolAndLogInitiator(t,"initial data")}window.TradingViewApi||(window.TradingViewApi={linking:y})},49437:(e,t,o)=>{"use strict" ;const{getLogger:r}=o(201089),i=r("TVLocalStorage");var s=function(){try{this.isAvailable=!0,this.localStorage=window.localStorage,this.localStorage.setItem("tvlocalstorage.available","true")}catch(e){delete this.isAvailable,delete this.localStorage}this._updateLength();try{this._report()}catch(e){}};s.prototype._report=function(){if(this.isAvailable){const e=10,t=[];for(let e=0;et.length-e.length));const o=t.slice(0,e);t.sort(((e,t)=>t.key.length-e.key.length));const r=t.slice(0,e);i.logNormal(`Total amount of keys in Local Storage: ${this.length}`),i.logNormal(`Top ${e} keys with longest values: ${JSON.stringify(o)}`),i.logNormal(`Top ${e} longest key names: ${JSON.stringify(r)}`);try{navigator.storage.estimate().then((e=>{i.logNormal(`Storage estimate: ${JSON.stringify(e)}`)}))}catch(e){}}},s.prototype.length=0,s.prototype.isAvailable=!1,s.prototype.localStorage={"tvlocalstorage.available":"false"},s.prototype._updateLength=function(){if(this.isAvailable)this.length=this.localStorage.length;else{var e,t=0;for(e in this.localStorage)this.localStorage.hasOwnProperty(e)&&t++;this.length=t}},s.prototype.key=function(e){return this.isAvailable?this.localStorage.key(e):Object.keys(this.localStorage)[e]},s.prototype.getItem=function(e){return this.isAvailable?this.localStorage.getItem(e):void 0===this.localStorage[e]?null:this.localStorage[e]},s.prototype.setItem=function(e,t){this.isAvailable?this.localStorage.setItem(e,t):this.localStorage[e]=t,this._updateLength()},s.prototype.removeItem=function(e){this.isAvailable?this.localStorage.removeItem(e):delete this.localStorage[e],this._updateLength()},s.prototype.clear=function(){this.isAvailable?this.localStorage.clear():this.localStorage={},this._updateLength()};var n=function(e){this.storage=e};n.prototype.getItem=function(e){return Promise.resolve(this.storage.getItem(e))},n.prototype.setItem=function(e,t){return Promise.resolve(this.storage.setItem(e,t))},window.TVLocalStorage=new s,window.TVLocalStorageAsync=new n(window.TVLocalStorage),e.exports={TVLocalStorage:window.TVLocalStorage,TVLocalStorageAsync:window.TVLocalStorageAsync}},659863:(e,t,o)=>{"use strict";o.r(t),o.d(t,{qaGlobals:()=>r});const r=new class{constructor(e,t){this._test=e[t]={}}provide(e,t){this._test[e]=t}}(window,"qaGlobals")},192784:(e,t,o)=>{"use strict";o.r(t),o.d(t,{flushDelegate:()=>r});const r=new(o(707957).Delegate)},62802:(e,t,o)=>{"use strict";e=o.nmd(e),o(638456);var r=o(120780).fetch,i=o(868073).regExpEscape,s=o(226722).TVXWindowEvents,n=o(49437).TVLocalStorage,a=o(707957).Delegate,l=o(244842),c=o(125226).isFeatureEnabled,{flushDelegate:d}=o(192784),_=o(201089).getLogger("Lib.TVSettings"),h=["s.tradingview.com","betacdn.tradingview.com"],u=(l.enabled("use_localstorage_for_settings"),window.TVSettings=function(){var e=!1,t=null,o=!1;function p(){return!(t||window.is_authenticated)}try{e=!TradingView.onWidget()&&parent&&parent!==window&&!!parent.IS_DEMO_PAGE}catch(e){} if(e){var g={"widgetbar.layout-settings":{widgets:{},settings:{minimized:!0}},notShowMainWizard:!0},y=function(e,t,o){var r=g[e];return null==r?t:r},m=function(){};return{loaded:!1,loadedModel:!1,getValue:y,getJSON:y,getBool:y,getFloat:y,getInt:y,setValue:m,setJSON:m,remove:m,keys:function(){return Object.keys(g)},keysMask:function(){return[]},sync:m,onSync:{subscribe:function(){}}}}var b=12e4;"local"===window.environment&&(b=5e3);var f,v,w,S=TradingView.onWidget()?"tradingview-widget":"tradingview",k=S+".",C={},x=[],F=[/^widgetbar\.widget\.watchlist.+/,/.+quicks$/,/^widgetbar\.layout-settings$/,/^ChartSideToolbarWidget\.visible$/,/^onwidget\.watchlist$/,/^chart\.favoriteDrawings$/,/^chart\.favoriteDrawingsPosition$/,/^chart\.favoriteLibraryIndicators$/,/^loadChartDialog.favorites$/,/^ChartFavoriteDrawingToolbarWidget\.visible/,/^trading\.chart\.proterty$/,/^trading_floating_toolbar\.position$/,/^trading\.orderWidgetMode\./,/^symbolWatermark$/,/^pinereference\.size$/,/^pinereference\.position$/,/^hint\.+/,/^ChartDrawingToolbarWidget\.visible/];function E(e){return k+e}function D(e){return e.substring(k.length)}function L(e,t){var o=C[e];return null==o?t:o}function q(e,t,o){o=o||{};var r=""+t;return C[e]!==r&&(C[e]=r,A(e)),o.forceFlush&&!v&&(v=setTimeout((function(){v=void 0,W()}),10)),u}function I(e,t){return t=t||{},null!=C[e]&&(delete C[e],A(e)),t.forceFlush&&W(),u}function B(){f=void 0,x.length&&W()}function A(e){if(t)null==C[e]?t.removeValue(e):t.setValue(e,C[e]);else if(p())try{null==C[e]?n.removeItem(E(e)):n.setItem(E(e),C[e])}catch(e){}else x.push(e),f||(f=setTimeout(B,b));s.emit("settings",JSON.stringify({key:e,value:C[e]}))}function W(e){if(!o&&!w)if(c("disable_save_settings"))_.logWarn("Settings flashing has been skipped because of disable_save_settings featuretoggle");else if(!l.enabled("widget")&&!p()&&0!==x.length){var t=x;x=[];for(var i={},s=t.length;s--;){var n=t[s],a=C[n];void 0===a&&(a=null),i[n]=a}var d=new FormData;d.append("delta",JSON.stringify(i)),e&&navigator.sendBeacon?navigator.sendBeacon("/savesettings/",d):r("/savesettings/",{method:"POST",credentials:"include",body:d}).then((function(o){if(o.ok||(x=x.concat(t)),[429,503].includes(o.status)){var r=1e3*+o.headers.get("retry-after")||3e5;w=setTimeout((()=>{w=void 0,W(e)}),r)}})).catch((function(){x=x.concat(t)}))}}function T(){return Object.keys(C)}function V(e){for(var t=0;t{W()})),{loaded:!1,loadedModel:!1,getValue:L,getJSON:function(e,t){var o=L(e,void 0);if(null==o)return t;try{return JSON.parse(o)}catch(o){return I(e),t}},getBool:function(e,t){var o=L(e);return null==o?t:!(!o||"false"===o||0==+o)},getFloat:function(e,t,o){var r=L(e,void 0);if(null==r)return t;var i=parseFloat(r);if(!isFinite(i))throw new TypeError('"'+r+'" is not float (key: "'+e+'")');return i},getInt:function(e,t,o){var r=L(e,void 0);if(null==r)return t;var i=parseInt(r,10);if(!isFinite(i))throw new TypeError('"'+r+'" is not int (key: "'+e+'")');return i},setValue:q,setJSON:function(e,t,o){return q(e,JSON.stringify(t),o),u},remove:I,keys:T,keysMask:function(e,t){for(var o=T(),r=[],s=(e=new RegExp("^"+i(e).replace(/\\\*\\\*/gi,".+").replace(/\\\*/gi,"[^.]+")+"$","gi"),o.length-1);s>=0;s--)e.test(o[s])&&r.push(o[s]),e.lastIndex=0;return r},sync:function(e){null!==e?(t?M(t.initialSettings||{}):p()?(function(){if(TradingView.onWidget()&&h.includes(window.location.host))for(var e="tradingview.",t=n.length;t--;){var o=n.key(t);if(0===o.indexOf(e)){var r=o.replace(e,S+".");n.setItem(r,n.getItem(o)),n.removeItem(o)}}}(),function(){C={};for(var e=!l.enabled("save_chart_properties_to_local_storage"),t=n.length;t--;){var o=n.key(t);if(o&&G(o)){var r=o.substring(k.length);e&&!V(r)||(C[r]=n.getItem(o))}}}()):M(e||{}),N.fire()):o=!0},onSync:N,setSettingsAdapter:function(e){t=e}}}());setTimeout((function(){o.e(30362).then(o.bind(o,276141)).then((e=>{e.clearOldSettings()}))}),3e4),e&&e.exports&&(e.exports=u)},776734:(e,t,o)=>{"use strict";async function r(){if(!window.user||window.user.do_not_track)return null;{const e=(await Promise.all([o.e(70056),o.e(8444),o.e(24081)]).then(o.bind(o,823623))).getTrackerInstance();return e||null}}o.d(t,{getTracker:()=>r})},345848:(e,t,o)=>{"use strict";o.d(t,{trackEvent:()=>l});var r=o(251954),i=o(244842);const s=(0,o(201089).getLogger)("Common.TrackEvent"),n=[/Study_(Drawing)_(.*)/,/(Study)_(.*)@tv-basicstudies/,/(Study)_(.*)/,/(Chart Style) (.*)/];let a=!1;const l=(e,t,o)=>{if(a)return;if(i.enabled("charting_library_base"))return void((e,t,o)=>{t=t||e||o||"";let i="";for(let e=0;e{"use strict";o.d(t,{globalCloseDelegate:()=>r,globalCloseMenu:()=>i});const r=new(o(707957).Delegate);function i(){r.fire()}},6613:(e,t,o)=>{"use strict";o.r(t),o.d(t,{QUOTE_FIELDS:()=>s,QUOTE_FIELDS_CACHE:()=>n,QuoteCache:()=>i});var r=o(650151);class i{constructor(e){this._cache=new Map,this._fields=[...e.fields]}update(e,t,o){const i=(0,r.ensureDefined)(e.symbolname);if(this._cache.has(i)||this._cache.set(i,{symbolname:i,status:e.status,values:{} }),"error"===e.status)return;const s=(0,r.ensureDefined)(this._cache.get(i));s.status=e.status;for(const r of this._fields)t.has(r)&&(o||void 0!==e.values[r])&&(s.values[r]=e.values[r])}get(e){var t;return null!==(t=this._cache.get(e))&&void 0!==t?t:null}fields(){return this._fields}} const s=new Set(["pro_name","base_name","logoid","currency-logoid","base-currency-logoid","source-logoid","short_name","web_site_url","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","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","earnings_release_next_time","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","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"]),n=new i({ fields:s})},433084:(e,t,o)=>{"use strict";o.d(t,{QuoteSession:()=>i});var r=o(541558);class i{constructor(e,t=(0,r.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=i},11228:(e,t,o)=>{"use strict";e=o.nmd(e);var r=o(343370).default,i=o(12481).default,s=o(624444).PriceFormatter;const{uniq:n}=o(337779);var a=o(541558);const{normalizeUpdateMode:l}=o(461909);var c=o(329806).deepExtend;const{QUOTE_FIELDS_CACHE:d,QUOTE_FIELDS:_}=o(6613);var h,u=o(707957).Delegate;function p(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 h(window.ChartApiInstance),this._type=e||"full",this._delayUpdateFastSymbols=i(this._updateFastSymbols,250),this._throttledSymbolData={},this._formatterValuesCache={},this._waitingForFormatters={},this._snapshotValuesCache={},this._waitingForSnapshot={},this.connect()}h=o(433084).QuoteSession,p.prototype.destroy=function(){this._quoteApi.destroy(),this._quoteApi=null,this._connected=!1,this.onDisconnect.fire()},p.prototype.typeFields={},p.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"],p.prototype.typeFields.simpleDetailed=[].concat(p.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"]),p.prototype.typeFields.full=[],p.prototype.typeFields.watchlist=[].concat(p.prototype.typeFields.simple,["rchp","rtc","country_code","provider_id"]), p.prototype.typeFields.portfolio=["pro_name","short_name","exchange","listed_exchange","description","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"],p.prototype.typeFields.notes=["short_name","pro_name","logoid","currency-logoid","base-currency-logoid","symbol-primaryname","type","typespecs"],p.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"],p.prototype.typeFields.economic=["reference-last-period","lp","currency_code","value_unit_id","unit_id","measure"],p.prototype.connect=function(e){this._quoteApi.connect(this.quoteHandler.bind(this))},p.prototype.quoteHandler=function(e){var t=e.method,o=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(o[0]);break;case"quote_completed":this._connected&&this.onSymbolData({symbolname:o[0],complete:performance.now(),values:{}});break;case"disconnected":this._connected&&(this._connected=!1,this.onDisconnect.fire())}},p.prototype.onConnected=function(){this.setFields();var e=Object.keys(this._symbol_data);e.length&&(this._quoteApi.quoteAddSymbols(e),this._delayUpdateFastSymbols()),this.onConnect.fire()},p.prototype.setFields=function(){var e=p.prototype.typeFields[this._type];e&&e.length&&this._quoteApi.quoteSetFields(e)},p.prototype.onSymbolData=function(e){try{e.status&&d.update(e,_,!1)}catch(e){}var t=e.symbolname,o=this._throttledSymbolData[t];o||(o=this._throttledSymbolData[t]={fnDispatch:r(this.dipatchSymbolData.bind(this),this.options.throttleTimeout)}),o.cache?c(o.cache,e):o.cache=e,o.fnDispatch(t)},p.prototype._parseUpdateMode=function(e){l(e)},p.prototype.dipatchSymbolData=function(e){var t=this._symbol_data[e],o=this._throttledSymbolData[e].cache;if(delete this._throttledSymbolData[e].cache,this._symbol_data[e])for(var r in c(t,o),t.values&&this._parseUpdateMode(t.values),this._subscriptions){var i=this._subscriptions[r];i.has(e)&&[...i.get(e)].forEach((function(e){e(t,o)}))}},p.prototype.subscribe=function(e,t,o){this._subscriptions[e]=this._subscriptions[e]||new Map;var r=this._subscriptions[e];t=[].concat(t);var i=[];t.forEach((function(e){this._symbol_data[e]?r&&r.has(e)||this._symbol_data[e].subscribers_count++:(this._symbol_data[e]={subscribers_count:1},i.push(e)),r.has(e)||r.set(e,[]),r.get(e).push(o),r.get(e).fast=!0, this._symbol_data[e]&&this._symbol_data[e].values&&o(this._symbol_data[e],this._symbol_data[e])}),this),i.length&&this._connected&&(this._quoteApi.quoteAddSymbols(i),this._delayUpdateFastSymbols())},p.prototype.unsubscribe=function(e,t,o){t=[].concat(t);for(var r=this._subscriptions[e],i=[],s=0;s{"use strict";o.d(t,{numOfDecimalPlaces:()=>i});var r=o(960521);function i(e){return(new r.Big(e).toFixed().split(".")[1]||"").length}},707621:(e,t,o)=>{"use strict";o.d(t,{allChartStyles:()=>s});var r=o(244842);const i=(0,o(638456).onWidget)();function s(){return function(){const e=[0,1,9,13,2,14,15,3,16,10];return e.push(12),i||e.push(17),i||e.push(18), i||e.push(19),e}().concat(function(){const e=[8];return r.enabled("japanese_chart_styles")&&(e.push(4,7,5,6),e.push(11)),e}())}},541346:(e,t,o)=>{"use strict";o.d(t,{PercentageFormatter:()=>s});var r=o(624444),i=o(31341);class s extends r.PriceFormatter{constructor(e,t,o,r,i,s){super(e,t,o,r,i,s),this.type="percentage"}state(){const e=r.PriceFormatter.prototype.state.call(this);return e.percent=!0,e}parse(e){return e=e.replace("%",""),super.parse(e)}format(e,t,o,r,s=!0){const n=super.format(e,t,o,r,!1)+"%";return s?(0,i.forceLTRStr)(n):n}static serialize(e){return e.state()}static deserialize(e){return new s(e.priceScale)}}},868073:(e,t,o)=>{"use strict";function r(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}o.d(t,{regExpEscape:()=>r})},746133:(e,t,o)=>{"use strict";var r;o.d(t,{BillingCycle:()=>r}),function(e){e.Monthly="m",e.ThreeMonths="3m",e.OneYear="y",e.TwoYears="2y"}(r||(r={}))},403009:(e,t,o)=>{"use strict";var r;function i(e){return!(!e||!Object.keys(e).length)}function s(e){return!!e.is_trial}function n(e){return!!(null==e?void 0:e.pro_plan)}function a(e){return n(e)&&!s(e)}function l(e){return e.type===r.ProPlan}function c(e){return e.type===r.Exchange}function d(e){return e.type===r.Coins}function _(e){var t,o,r;return e?c(e)||d(e)?null!==(t=e.text_id)&&void 0!==t?t:"":null!==(r=null!==(o=e.discount_text_id)&&void 0!==o?o:e.text_id)&&void 0!==r?r:"":""}o.d(t,{ProductType:()=>r,getProductId:()=>_,isCoinsProduct:()=>d,isExchange:()=>c,isPaidPro:()=>a,isPlan:()=>l,isPro:()=>n,isProductDefined:()=>i,isTrial:()=>s}),function(e){e[e.ProPlan=1]="ProPlan",e[e.NewsFeed=3]="NewsFeed",e[e.Exchange=4]="Exchange",e[e.Connection=6]="Connection",e[e.Coins=8]="Coins"}(r||(r={}))},960337:(e,t,o)=>{"use strict";o.d(t,{createGoProDialog:()=>n});const r=new Set,i=[],s=new Promise((e=>{window.addEventListener("load",(()=>{setTimeout((()=>{e()}),3e3)})),setTimeout((()=>{e()}),3e3)}));async function n(e){var t;if(await s,i.forEach((t=>{t(e.feature)})),r.has(e.feature))return;const n=await Promise.all([o.e(29303),o.e(55270),o.e(67681),o.e(38697),o.e(12742),o.e(18251),o.e(58742),o.e(26595),o.e(80278),o.e(93797),o.e(30855),o.e(64642),o.e(65621),o.e(76497),o.e(69494),o.e(84357),o.e(90385),o.e(53490),o.e(32605),o.e(72736),o.e(85860),o.e(5246)]).then(o.bind(o,877671));await(null===(t=window.pro)||void 0===t?void 0:t.ensureValidShopConf()),n.renderGoproDialog(e)}window.TradingView.createGoProDialog=n},392896:(e,t,o)=>{"use strict";o.d(t,{paidAccountCheck:()=>s});var r=o(49437);const i=(0,o(201089).getLogger)("PaidAccountCheck");async function s(e){const{onlyCheck:t,successButtonText:s,isNeedCancelButton:n}=e,a=window.user,l=r.TVLocalStorage.getItem("previous_username");if(a&&window.is_authenticated&&!a.is_pro&&l){const{getProfile:e}=await o.e(90254).then(o.bind(o,411858));try{const r=await e(l);if(Boolean(r.pro_plan)){if(t)return l;{const{showWrongAccountDialog:e}=await Promise.all([o.e(75899),o.e(12019)]).then(o.bind(o,984799));return e({userName:l,isNeedCancelButton:n,successButtonText:s})}}}catch(e){i.logError(e.message)}} return!1}},266325:(e,t,o)=>{"use strict";function r(e){let t=null;return(o,...r)=>(null==t||t.abort(),t=new AbortController,null==o||o.addEventListener("error",(()=>null==t?void 0:t.abort()),{once:!0}),e(t.signal,...r))}function i(e){if(!l(e))throw e}function s(e){if(l(e))throw e}function n(e){return(null==e?void 0:e.aborted)?Promise.reject(a()):new Promise(((t,o)=>{null==e||e.addEventListener("abort",(()=>o(a())),{once:!0})}))}function a(){return new DOMException("Aborted","AbortError")}function l(e){return e instanceof Error&&"AbortError"===e.name}function c(e,t){return Promise.race([n(e),t])}async function d(e,t){let o;try{await c(e,new Promise((e=>{o=setTimeout(e,t)})))}finally{clearTimeout(o)}}o.d(t,{createAbortError:()=>a,delay:()=>d,isAbortError:()=>l,respectAbort:()=>c,respectLatest:()=>r,rethrowAbortError:()=>s,skipAbortError:()=>i})},329806:(e,t,o)=>{"use strict";function r(e,...t){return e&&"object"==typeof e?(0===t.length||t.forEach((t=>{null!=t&&"object"==typeof t&&Object.keys(t).forEach((o=>{const s=e[o],n=t[o];if(n===e)return;const a=Array.isArray(n);if(n&&(i(n)||a)){let t;t=a?s&&Array.isArray(s)?s:[]:s&&i(s)?s:{},e[o]=r(t,n)}else void 0!==n&&(e[o]=n)}))})),e):e}function i(e){if(!e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(!t)return!0;const o=Object.hasOwnProperty.toString,r=t.hasOwnProperty("constructor")&&t.constructor;return"function"==typeof r&&o.call(r)===o.call(Object)}o.d(t,{deepExtend:()=>r})},571690:(e,t,o)=>{"use strict";o.d(t,{parseHtml:()=>i,parseHtmlElement:()=>s});const r=new WeakMap;function i(e,t){let o,i;return o=null==t?document.documentElement:9===t.nodeType?t.documentElement:t,r&&(i=r.get(o)),i||(i=o.ownerDocument.createRange(),i.selectNodeContents(o),r&&r.set(o,i)),i.createContextualFragment(e)}function s(e,t){const o=i(e,t),r=o.firstElementChild;return null!==r&&o.removeChild(r),r}},777466:(e,t,o)=>{"use strict";function r(e){e.preventDefault()}o.d(t,{preventDefault:()=>r,preventDefaultForContextMenu:()=>s});const i=["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 s(e){const t=e.target;t&&!t.closest(i.join(", "))&&e.preventDefault()}},337779:(e,t,o)=>{"use strict";function r(e){return e.reduce((function(e,t,o){return~e.indexOf(t)||e.push(t),e}),[])}o.r(t),o.d(t,{uniq:()=>r})},501437:(e,t,o)=>{"use strict";function r(e){return decodeURIComponent(e.replace(/\+/g," ")).replace(/<\/?[^>]+(>|$)/g,"")}function i(e){const t=/([^&=]+)=?([^&]*)/g,o={};if(!e)return o;let i=t.exec(e);for(;i;)o[r(i[1])]=r(i[2]),i=t.exec(e);return o}function s(){return i(window.location.search.substring(1))}function n(e){const t=[];for(const o in e)e.hasOwnProperty(o)&&null!=e[o]&&t.push({key:o,pair:encodeURIComponent(o)+"="+encodeURIComponent(e[o])});return t.sort(((e,t)=>e.key>t.key?1:e.keye.pair)).join("&")}o.d(t,{createUrlParams:()=>n, getUrlParams:()=>s})},490778:(e,t,o)=>{"use strict";e.exports=o.p+"desktop.48bb0acc31aeb2422416.webp"},901896:(e,t,o)=>{"use strict";e.exports=o.p+"tablet.5ed26c209de7e1b5845d.webp"},330120:e=>{"use strict" ;e.exports=JSON.parse('{"color-white":"#ffffff","color-black":"#000000","color-transparent":"#00000000","color-cold-gray-50":"#F8F9FD","color-cold-gray-100":"#F0F3FA","color-cold-gray-150":"#E0E3EB","color-cold-gray-200":"#D1D4DC","color-cold-gray-250":"#C1C4CD","color-cold-gray-300":"#B2B5BE","color-cold-gray-350":"#A3A6AF","color-cold-gray-400":"#9598A1","color-cold-gray-450":"#868993","color-cold-gray-500":"#787B86","color-cold-gray-550":"#6A6D78","color-cold-gray-600":"#5D606B","color-cold-gray-650":"#50535E","color-cold-gray-700":"#434651","color-cold-gray-750":"#363A45","color-cold-gray-800":"#2A2E39","color-cold-gray-850":"#1E222D","color-cold-gray-900":"#131722","color-cold-gray-950":"#0C0E15","color-ripe-red-50":"#FFEBEC","color-ripe-red-100":"#FCCBCD","color-ripe-red-200":"#FAA1A4","color-ripe-red-300":"#F77C80","color-ripe-red-400":"#F7525F","color-ripe-red-500":"#F23645","color-ripe-red-600":"#CC2F3C","color-ripe-red-700":"#B22833","color-ripe-red-800":"#991F29","color-ripe-red-900":"#801922","color-ripe-red-a100":"#FF8080","color-ripe-red-a200":"#FF5252","color-ripe-red-a400":"#FF3333","color-ripe-red-a600":"#CC2929","color-ripe-red-a700":"#802028","color-ripe-red-a800":"#4D191D","color-ripe-red-a900":"#331F20","color-tan-orange-50":"#FFF3E0","color-tan-orange-100":"#FFE0B2","color-tan-orange-200":"#FFCC80","color-tan-orange-300":"#ffb74d","color-tan-orange-400":"#FFA726","color-tan-orange-500":"#FF9800","color-tan-orange-600":"#FB8C00","color-tan-orange-700":"#F57C00","color-tan-orange-800":"#EF6C00","color-tan-orange-900":"#e65100","color-tan-orange-a200":"#ffab40","color-tan-orange-a400":"#FF9100","color-tan-orange-a600":"#CC7014","color-tan-orange-a700":"#8C541C","color-tan-orange-a800":"#593A1B","color-tan-orange-a900":"#33261A","color-iguana-green-100":"#C8E6C9","color-iguana-green-200":"#A5D6A7","color-iguana-green-300":"#81c784","color-iguana-green-400":"#66BB6A","color-iguana-green-500":"#4caf50","color-iguana-green-600":"#43a047","color-iguana-green-700":"#388e3c","color-iguana-green-800":"#2E7D32","color-iguana-green-900":"#1B5E20","color-iguana-green-a700":"#00c853","color-banana-yellow-100":"#FFF9C4","color-banana-yellow-200":"#FFF59D","color-banana-yellow-300":"#FFF176","color-banana-yellow-400":"#ffee58","color-banana-yellow-500":"#ffeb3b","color-banana-yellow-600":"#fdd835","color-banana-yellow-700":"#fbc02d","color-banana-yellow-800":"#f9a825","color-banana-yellow-900":"#F57F17","color-banana-yellow-a400":"#ffea00","color-banana-yellow-a700":"#EEDA01","color-tv-blue-50":"#E3EFFD","color-tv-blue-100":"#BBD9FB","color-tv-blue-200":"#90BFF9","color-tv-blue-300":"#5B9CF6","color-tv-blue-400":"#3179F5","color-tv-blue-500":"#2962FF","color-tv-blue-600":"#1E53E5","color-tv-blue-700":"#1848CC","color-tv-blue-800":"#143EB3","color-tv-blue-900":"#0C3299","color-tv-blue-a100":"#82b1ff","color-tv-blue-a200":"#448aff","color-tv-blue-a400":"#2979ff","color-tv-blue-a600":"#2962FF","color-tv-blue-a700":"#143A87","color-tv-blue-a800":"#142E61","color-tv-blue-a900":"#132042","color-deep-blue-50":"#EDE7F6","color-deep-blue-100":"#D1C4E9","color-deep-blue-200":"#B39DDB","color-deep-blue-300":"#9575cd","color-deep-blue-400":"#7e57c2","color-deep-blue-500":"#673ab7","color-deep-blue-700":"#512da8","color-deep-blue-800":"#4527A0","color-deep-blue-900":"#311B92","color-deep-blue-a100":"#b388ff","color-deep-blue-a200":"#7C4DFF","color-deep-blue-a400":"#651FFF","color-deep-blue-a700":"#6200EA","color-minty-green-50":"#DAF2EE","color-minty-green-100":"#ACE5DC","color-minty-green-200":"#70CCBD","color-minty-green-300":"#42BDA8","color-minty-green-400":"#22AB94","color-minty-green-500":"#089981","color-minty-green-600":"#06806B","color-minty-green-700":"#056656","color-minty-green-800":"#004D40","color-minty-green-900":"#00332A","color-minty-green-a400":"#2BD9BC","color-minty-green-a600":"#24B29B","color-minty-green-a700":"#1B7667","color-minty-green-a800":"#10443B","color-minty-green-a900":"#082621","color-grapes-purple-50":"#F3E5F5","color-grapes-purple-100":"#E1BEE7","color-grapes-purple-200":"#CE93D8","color-grapes-purple-300":"#ba68c8","color-grapes-purple-400":"#ab47bc","color-grapes-purple-500":"#9c27b0","color-grapes-purple-600":"#8e24aa","color-grapes-purple-700":"#7b1fa2","color-grapes-purple-800":"#6A1B9A","color-grapes-purple-900":"#4A148C","color-grapes-purple-a100":"#EA80FC","color-grapes-purple-a200":"#E040FB","color-grapes-purple-a400":"#D500F9","color-grapes-purple-a700":"#aa00ff","color-berry-pink-100":"#F8BBD0","color-berry-pink-200":"#f48fb1","color-berry-pink-300":"#f06292","color-berry-pink-400":"#ec407a","color-berry-pink-500":"#e91e63","color-berry-pink-600":"#D81B60","color-berry-pink-700":"#C2185B","color-berry-pink-800":"#AD1457","color-berry-pink-900":"#880E4F","color-berry-pink-a100":"#ff80ab","color-berry-pink-a200":"#ff4081","color-berry-pink-a400":"#f50057","color-sky-blue-50":"#E0F7FA","color-sky-blue-100":"#B2EBF2","color-sky-blue-200":"#80DEEA","color-sky-blue-300":"#4dd0e1","color-sky-blue-400":"#26c6da","color-sky-blue-500":"#00bcd4","color-sky-blue-600":"#00acc1","color-sky-blue-700":"#0097A7","color-sky-blue-800":"#00838F","color-sky-blue-900":"#006064","color-sky-blue-a400":"#00e5ff","color-sky-blue-a700":"#00B8D4","color-deep-blue-600":"#5E35B1","color-forest-green-50":"#DAF2E6","color-forest-green-100":"#ACE5C9","color-forest-green-200":"#70CC9E","color-forest-green-300":"#42BD7F","color-forest-green-400":"#22AB67","color-forest-green-500":"#089950","color-forest-green-600":"#068043","color-forest-green-700":"#056636","color-forest-green-800":"#004D27","color-forest-green-900":"#1A3326","color-facebook":"#1877F2","color-deep-facebook":"#1564CA","color-twitter":"#1DA1F2","color-deep-twitter":"#188CD3","color-youtube":"#FF0000","color-linkedin":"#007BB5","color-seeking-alpha-brand":"#ff7200"}') },559419:e=>{"use strict" ;e.exports=JSON.parse('{"color-header-bg":"color-white","color-body-bg":"color-white","color-body-secondary-bg":"color-cold-gray-100","color-bg-primary":"color-white","color-bg-primary-hover":"color-cold-gray-100","color-bg-secondary":"color-white","color-bg-highlight":"color-cold-gray-50","color-bg-scroll-buttons":"color-cold-gray-100","color-legacy-bg-scroll-buttons":"color-cold-gray-850","color-legacy-bg-widget":"color-white","color-text-primary":"color-cold-gray-900","color-text-secondary":"color-cold-gray-550","color-text-tertiary":"color-cold-gray-400","color-text-disabled":"color-cold-gray-300","color-accent-content":"color-cold-gray-900","color-box-shadow":"color-cold-gray-300","color-divider":"color-cold-gray-150","color-divider-hover":"color-cold-gray-100","color-divider-secondary":"color-cold-gray-100","color-active-hover-text":"color-cold-gray-900","color-alert-text":"color-cold-gray-900","color-border-table":"color-cold-gray-100","color-brand":"color-tv-blue-500","color-brand-active":"color-tv-blue-700","color-brand-hover":"color-tv-blue-600","color-chart-page-bg":"color-cold-gray-150","color-common-tooltip-bg":"color-cold-gray-800","color-danger":"color-ripe-red-400","color-danger-hover":"color-ripe-red-500","color-danger-active":"color-ripe-red-600","color-depthrenderer-stroke-style":"color-cold-gray-100","color-halal":"color-iguana-green-400","color-continuous":"color-cold-gray-500","color-highlight-new":"color-tan-orange-50","color-input-bg":"color-white","color-input-publish-bg":"color-white","color-link":"color-tv-blue-500","color-link-hover":"color-tv-blue-600","color-link-active":"color-tv-blue-700","color-list-nth-child-bg":"color-cold-gray-50","color-pane-bg":"color-white","color-pane-secondary-bg":"color-cold-gray-100","color-popup-menu-item-hover-bg":"color-cold-gray-100","color-popup-menu-separator":"color-cold-gray-150","color-primary-symbol":"color-sky-blue-500","color-screener-description":"color-cold-gray-650","color-success":"color-minty-green-500","color-success-hover":"color-minty-green-600","color-success-active":"color-minty-green-700","color-toolbar-button-text":"color-cold-gray-900","color-toolbar-button-text-hover":"color-cold-gray-900","color-toolbar-button-text-active":"color-tv-blue-500","color-toolbar-button-text-active-hover":"color-tv-blue-600","color-toolbar-button-background-hover":"color-cold-gray-100","color-toolbar-button-background-secondary-hover":"color-cold-gray-150","color-toolbar-button-background-active":"color-tv-blue-50","color-toolbar-button-background-active-hover":"color-tv-blue-100","color-toolbar-toggle-button-background-active":"color-tv-blue-500","color-toolbar-toggle-button-background-active-hover":"color-tv-blue-600","color-toolbar-toggle-button-icon":"color-cold-gray-200","color-toolbar-interactive-element-text-normal":"color-cold-gray-900","color-toolbar-opened-element-bg":"color-cold-gray-100","color-toolbar-divider-background":"color-cold-gray-150","color-popup-background":"color-white","color-popup-element-text":"color-cold-gray-900","color-popup-element-text-hover":"color-cold-gray-900","color-popup-element-background-hover":"color-cold-gray-100","color-popup-element-secondary-text":"color-cold-gray-500","color-popup-element-hint-text":"color-cold-gray-400","color-popup-element-text-active":"color-white","color-popup-element-background-active":"color-tv-blue-500","color-popup-element-toolbox-text":"color-cold-gray-500","color-popup-element-toolbox-text-hover":"color-cold-gray-900","color-popup-element-toolbox-text-active-hover":"color-tv-blue-200","color-popup-element-toolbox-background-hover":"color-cold-gray-150","color-popup-element-toolbox-background-active-hover":"color-tv-blue-700","color-tooltip-bg":"color-cold-gray-800","color-tv-dialog-caption":"color-cold-gray-650","color-tv-dropdown-item-hover-bg":"color-cold-gray-100","color-underlined-text":"color-cold-gray-550","color-widget-pages-bg":"color-white","color-warning":"color-tan-orange-500","color-growing":"color-minty-green-500","color-falling":"color-ripe-red-500","color-forex-icon":"color-cold-gray-750","color-list-item-active-bg":"color-tv-blue-400","color-list-item-hover-bg":"color-tv-blue-50","color-list-item-text":"color-cold-gray-800","color-price-axis-label-back":"color-cold-gray-150","color-price-axis-label-text":"color-cold-gray-650","color-price-axis-gear":"color-cold-gray-900","color-price-axis-gear-hover":"color-black","color-price-axis-highlight":"color-cold-gray-150","color-bid":"color-tv-blue-500","color-border":"color-cold-gray-150","color-border-chat-fields":"color-cold-gray-250","color-border-hover":"color-cold-gray-250","color-button-hover-bg":"color-cold-gray-150","color-depthrenderer-fill-style":"color-cold-gray-650","color-disabled-border-and-color":"color-cold-gray-150","color-disabled-input":"color-cold-gray-150","color-empty-container-message":"color-cold-gray-550","color-icons":"color-cold-gray-550","color-input-textarea-readonly":"color-cold-gray-650","color-input-placeholder-text":"color-cold-gray-350","color-item-active-blue":"color-tv-blue-50","color-item-hover-active-bg":"color-tv-blue-100","color-item-hover-bg":"color-tv-blue-100","color-item-hover-blue":"color-tv-blue-100","color-item-selected-blue":"color-tv-blue-50","color-item-active-text":"color-white","color-item-active-bg":"color-tv-blue-500","color-list-item":"color-cold-gray-550","color-news-highlight":"color-tv-blue-100","color-placeholder":"color-cold-gray-350","color-row-hover-active-bg":"color-cold-gray-100","color-sb-scrollbar-body-bg":"color-cold-gray-200","color-section-separator-border":"color-cold-gray-300","color-separator-table-chat":"color-cold-gray-150","color-tag-active-bg":"color-cold-gray-200","color-tag-hover-bg":"color-cold-gray-150","color-text-regular":"color-cold-gray-700","color-tv-button-checked":"color-cold-gray-550","color-scroll-bg":"color-cold-gray-400","color-scroll-border":"color-cold-gray-100","color-widget-border":"color-cold-gray-100","color-scroll-buttons-arrow":"color-white","color-control-intent-default":"color-cold-gray-200","color-control-intent-success":"color-minty-green-500","color-control-intent-primary":"color-tv-blue-500","color-control-intent-warning":"color-tan-orange-500","color-control-intent-danger":"color-ripe-red-500","color-goto-label-background":"color-cold-gray-800","color-pre-market":"color-tan-orange-600","color-pre-market-bg":"color-tan-orange-400","color-post-market":"color-tv-blue-500","color-post-market-bg":"color-tv-blue-400","color-market-open":"color-minty-green-500","color-market-open-bg":"color-minty-green-400","color-market-closed":"color-cold-gray-400","color-market-holiday":"color-cold-gray-400","color-market-expired":"color-ripe-red-500","color-invalid-symbol":"color-ripe-red-400","color-invalid-symbol-hover":"color-ripe-red-700","color-delisted-symbol":"color-ripe-red-600","color-delisted-symbol-hover":"color-ripe-red-800","color-replay-mode":"color-tv-blue-500","color-replay-mode-point-select":"color-cold-gray-350","color-replay-mode-icon":"color-white","color-replay-mode-hover":"color-tv-blue-600","color-notaccurate-mode":"color-berry-pink-600","color-delay-mode":"color-tan-orange-700","color-delay-mode-bg":"color-tan-orange-400","color-eod-mode":"color-grapes-purple-700","color-eod-mode-bg":"color-grapes-purple-400","color-data-problem":"color-ripe-red-600","color-data-problem-bg":"color-ripe-red-400","color-data-problem-hover":"color-ripe-red-700","color-list-item-bg-highlighted":"color-tv-blue-50","color-list-item-bg-selected":"color-tv-blue-100","color-list-item-bg-highlighted-hover":"color-tv-blue-100","color-list-item-bg-selected-hover":"color-tv-blue-200","color-screener-header-bg":"color-white","color-screener-header-bg-hover":"color-cold-gray-100","color-marker-flagged":"color-ripe-red-400","color-marker-flagged-hovered":"color-ripe-red-600","color-ask":"color-ripe-red-400","color-sell":"color-ripe-red-400","color-buy":"color-tv-blue-500","color-neutral":"color-cold-gray-550","color-pro":"color-minty-green-400","color-pro-hover":"color-minty-green-600","color-pro-plus":"color-tv-blue-500","color-pro-plus-hover":"color-tv-blue-600","color-pro-premium":"color-tan-orange-500","color-pro-premium-hover":"color-tan-orange-700","color-trial":"color-cold-gray-550","color-trial-hover":"color-cold-gray-550","color-mod":"color-ripe-red-400","color-mod-hover":"color-ripe-red-600","color-ad":"color-tan-orange-500","color-broker-featured":"color-minty-green-400","color-broker-featured-hover":"color-minty-green-600","color-alert-status-active":"color-minty-green-400","color-alert-status-stopped":"color-ripe-red-500","color-alert-status-triggered":"color-tan-orange-500","color-overlay":"color-cold-gray-400","color-search-button-hover":"color-cold-gray-150","color-boost-button-content-selected":"color-tv-blue-600","color-boost-button-content-hover":"color-cold-gray-900","color-boost-button-bg-hover":"color-cold-gray-150","color-boost-button-border-hover":"color-cold-gray-150","color-boost-button-border-default":"color-cold-gray-150","color-common-tooltip-text":"color-cold-gray-100","color-replay-data-mode":"color-ripe-red-400","color-legacy-success":"color-minty-green-300","color-collapse-tabs-border":"color-cold-gray-100","color-site-widget-hover":"color-cold-gray-50","color-attention":"color-banana-yellow-700","color-x-twitter-content":"color-cold-gray-900","color-card-border":"color-cold-gray-150","color-card-border-hover":"color-cold-gray-300","color-background-special-primary":"color-white","color-stroke-special-primary":"color-cold-gray-150","color-selection-bg":"color-tv-blue-100","color-default-gray":"color-cold-gray-550","color-featured-broker-badge-bg":"color-cold-gray-900","color-featured-broker-badge-bg-hover":"color-cold-gray-800","color-featured-broker-badge-text":"color-white"}') }}]);