(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[90202],{774172:e=>{e.exports={"css-value-copyright-transition-params":".6s 0s cubic-bezier(.4, .01, .22, 1)","css-value-copyright-transition-params-half-time":".3s 0s cubic-bezier(.4, .01, .22, 1)",label:"label-dzbd7lyV",logoWrap:"logoWrap-dzbd7lyV",expandedWithTransition:"expandedWithTransition-dzbd7lyV",expandedByClick:"expandedByClick-dzbd7lyV",start:"start-dzbd7lyV",end:"end-dzbd7lyV",snap:"snap-dzbd7lyV",top:"top-dzbd7lyV",bottom:"bottom-dzbd7lyV",large:"large-dzbd7lyV",expanded:"expanded-dzbd7lyV",label__link:"label__link-dzbd7lyV"}},852674:e=>{e.exports={"css-value-ticker-item-tape-padding":"16px","css-value-ticker-item-tape-height-normal":"44px","css-value-ticker-item-tape-height-compact":"72px","css-value-ticker-item-tape-skeleton-width-normal":"346px","css-value-ticker-item-tape-skeleton-width-compact":"125px"}},909025:e=>{e.exports={"css-value-ticker-item-tape-height-normal":"44px","css-value-ticker-item-tape-height-compact":"72px","css-value-ticker-item-tape-skeleton-width-normal":"346px","css-value-ticker-item-tape-skeleton-width-compact":"125px","css-value-ticker-item-tape-padding":"16px"}},62889:(e,t,s)=>{"use strict";s.d(t,{CopyrightPosition:()=>i,copyrightLabel:()=>l});var i,a=s(497754),n=s(995683),o=s(389137),r=s(774172);function l({svgText:e,icon:t,theme:s,url:l,mode:c,verticalPosition:d=i.Vertical.Bottom,horizontalPosition:h=i.Horizontal.End,snapToEdge:p=!0,isExpanded:m=!1,className:u}){let g;switch(c){case"new":case"with_border":case"large_trade":g=(0,o.clone)(s);break;default:g=(0,n.mergeThemes)((0,o.clone)(r),s)}const _=document.createElement("span");let v;l&&(v=document.createElement("a"),v.classList.add(...g.label__link.split(/\s/)),v.href=l,v.target="_blank",v.rel="noopener noreferrer",v.setAttribute("data-target-type","copyright"),_.append(v)),_.className=a(g.label,h===i.Horizontal.Start&&g.start,h===i.Horizontal.End&&g.end,d===i.Vertical.Top&&g.top,d===i.Vertical.Bottom&&g.bottom,p&&"large_trade"!==c&&g.snap,"large_old"===c&&g.large,(m||"large_trade"===c)&&g.expanded,u,"js-copyright-label"),_.addEventListener("click",(()=>{function e(){_.classList.remove(g.expandedByClick),_.removeEventListener("mouseleave",e)}_.classList.contains(g.expandedWithTransition)||_.classList.contains(g.expanded)||(_.classList.contains(g.expandedByClick)?l||e():(_.classList.add(g.expandedByClick),_.addEventListener("mouseleave",e)))}));const b=document.createElement("span");b.className=g.logoWrap,b.innerHTML=t;const y=document.createElement("span");return y.className=g.svgTextWrap,y.innerHTML=e,_.append(b,y),[_,g]}!function(e){let t,s;!function(e){e[e.Bottom=0]="Bottom",e[e.Top=1]="Top"}(t=e.Vertical||(e.Vertical={})),function(e){e[e.Start=0]="Start",e[e.End=1]="End"}(s=e.Horizontal||(e.Horizontal={}))}(i||(i={}))},351079:(e,t,s)=>{"use strict";s.d(t,{CopyrightPosition:()=>a.CopyrightPosition,createCopyrightLabel:()=>o});var i=s(497754),a=s(62889),n=s(952598);function o({sheriffOptions:e,...t}){const[s,o]=(0, a.copyrightLabel)(t),r=e&&e.includes(n.KnownAction.Expand),l=e&&e.includes(n.KnownAction.LargeTradeLogo);return s.className=i(s.className,(r||l)&&o.expandedWithTransition),s}},952598:(e,t,s)=>{"use strict";var i;s.d(t,{KnownAction:()=>i,widgetSheriffActions:()=>a}),function(e){e.Expand="expand-logo",e.LargeTradeLogo="large-trade-logo"}(i||(i={}));const a=new Set([i.Expand,i.LargeTradeLogo])},207678:(e,t,s)=>{"use strict";s.d(t,{breakpoints:()=>i,mobileFirstBreakpoints:()=>a,mobileFirstLegacyBreakpoints:()=>n});const i={desktop:1/0,desktopHd:1919,phone:767,"phone-vertical":479,tablet:1019},a={base:0,"media-mf-phone-vertical":320,"media-mf-phone-landscape":568,"media-mf-tablet-vertical":768,"media-mf-tablet-landscape":1024,"media-mf-laptop":1280,"media-mf-desktop-medium":1440,"media-mf-desktop-large":1920,"media-mf-desktop-extra-large":2560},n={"media-mf-legacy-phone-vertical":330,"media-mf-legacy-phone":480,"media-mf-legacy-notebook":1020,"media-mf-legacy-desktop-medium":1480,"media-mf-legacy-desktop":1531}},76107:(e,t,s)=>{"use strict";s.d(t,{getCSSProperty:()=>r,getCSSPropertyNumericValue:()=>l,getContentWidth:()=>n,getScrollbarWidth:()=>i,matchMediaMinMax:()=>a,setStyle:()=>o});const i=(()=>{let e;return()=>{var t;if(void 0===e){const s=document.createElement("div"),i=s.style;i.visibility="hidden",i.width="100px",i.msOverflowStyle="scrollbar",document.body.appendChild(s);const a=s.offsetWidth;s.style.overflow="scroll";const n=document.createElement("div");n.style.width="100%",s.appendChild(n);const o=n.offsetWidth;null===(t=s.parentNode)||void 0===t||t.removeChild(s),e=a-o}return e}})();function a(e,t){return t===1/0?window.matchMedia(`(min-width: ${e}px)`):window.matchMedia(`(min-width: ${e}px) and (max-width: ${t}px)`)}function n(e){return l(e,"width")-l(e,"padding-left")-l(e,"padding-right")}function o(e,t,s){null!==e&&e.style.setProperty(t,s)}function r(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function l(e,t){return parseInt(r(e,t))}},50178:e=>{e.exports={tickerTape:"tickerTape-N_kypjt9",noAutoScroll:"noAutoScroll-N_kypjt9",tape:"tape-N_kypjt9",head:"head-N_kypjt9",tail:"tail-N_kypjt9",skeleton:"skeleton-N_kypjt9"}},930134:(e,t,s)=>{"use strict";s(9757),s(730128);var i=s(12481),a=(s(909025),s(780237)),n=s(17966),o=s(607546),r=s(571690),l=s(919476),c=s(497754);class d extends a.TickerItemAbstract{constructor(e,t,s){super(e,t,s),this._options=s||{}}setWidth(e){this._el.style.setProperty("width",e+"px")}getWidth(){if(!document.body.contains(this._el))throw new Error("Cannot get ticker item width, because the element is not attached to DOM");return this._el.getBoundingClientRect().width}resetWidth(){this._el.style.removeProperty("width")}toggleCompactMode(e){this._el.classList.toggle(`${this._getClass()}--compact`,e)}toggleTransparency(e){this._el.classList.toggle(`${this._getClass()}--transparent`,e)}setView(e,t,s){this.setWidth(e),this.toggleCompactMode(t),this.toggleTransparency(s)}static getSkeletonElement(e,t){const s=`
`;return(0,r.parseHtmlElement)(s)}_getClass(){return"tv-ticker-item-tape"}_getView(){const e={borderWrapper:this._getElementClass("border-wrapper"),innerWrapper:this._getElementClass("inner-wrapper"),symbol:this._getElementClass("symbol"),iconWrapper:this._getElementClass("icon-wrapper"),shortNameWrapper:this._getElementClass("short-name-wrapper"),shortName:this._getElementClass("short-name"),lastWrapper:this._getElementClass("last-wrapper"),last:this._getElementClass("last"),changeWrapper:this._getElementClass("change-wrapper"),changeAbs:this._getElementClass("change-abs"),changePt:this._getElementClass("change-pt")},t=this._symbolData.title||this._symbolData.description,s=this._options.showSymbolLogo;return`
\n\t\t\t\t\t\t\t${s?(0,n.getCircleLogoAnyHtml)({logoUrls:[],size:this._options.isCompactMode?"xxxsmall":"xsmall",className:this._getElementClass("icon")}):""}\n\t\t\t\t\t\t
${(0,l.htmlEscape)(t||"")}
 
`}_getTickerOptions(){return{dontDyePrice:!0,signPositive:!0,signNegative:!0,changeInBrackets:!1,changePercentInBrackets:!0,changeDirectionUpClass:`${this._getElementClass("change-wrapper")}--up`,changeDirectionDownClass:`${this._getElementClass("change-wrapper")}--down`,lastGrowingClass:`${this._getElementClass("last")}--growing`,lastFallingClass:`${this._getElementClass("last")}--falling`,sessionStatusClassSuffix:"--for-ticker-tape",dataModeClassSuffix:"--for-ticker-tape",showInvalidSymbolStatus:!0,indicatorsTooltipType:"browser",setStateHook:this._options.showSymbolLogo?(0,o.getLogoUrlsHook)((e=>{const t=this._options.isCompactMode?"xxxsmall":"xsmall";this._renderSymbolLogo(e,t)})):void 0}}}var h=s(685459),p=s.n(h),m=s(49336),u=s(207678),g=s(76107);class _ extends(p()){constructor(){super(),this.width=0,this.height=0,this.device=null,this.breakpoints=u.breakpoints,this._checkDevice(),window.addEventListener("resize",this._checkDevice),Object.entries(u.breakpoints).sort((([e,t],[s,i])=>t-i)).forEach((([e,t],s,i)=>{let a;if(0!==s){const[,e]=i[s-1];a=e+1}else a=0;const n=(0,g.matchMediaMinMax)(a,t);n.matches&&this._setNewDevice(e),n.addListener((t=>{ t.matches&&(this._checkDevice(),this._setNewDevice(e))}))})),(0,m.whenDocumentReady)(this._checkDevice.bind(this)),this.isPhoneSizeDevice.bind(this)}isPhoneSizeDevice(){return"phone"===this.device||"phone-vertical"===this.device}_checkDevice(){this.width=window.innerWidth,this.height=window.innerHeight}_setNewDevice(e){const t=this.device;this.device=e,this.trigger("changeDevice",[e,t])}}const v=new _;var b,y,k,f=s(541558),w=s(31341);!function(e){e.Adaptive="adaptive",e.Regular="regular",e.Compact="compact"}(b||(b={})),function(e){e.AllSymbols="all_symbols",e.Market="market",e.Symbol="symbol"}(y||(y={})),function(e){e.Cryptocurrencies="crypto",e.Currencies="forex",e.Stocks="stock",e.Indices="index",e.Futures="futures",e.Bonds="cfd"}(k||(k={}));var E=s(401580),C=s(707957);const T=u.breakpoints.phone;function L(){return window.innerWidth<=T}function S(e){return e?72:44}class x extends Error{constructor(){super("CancelToken")}}var W=s(852674),M=s(50178);const I=parseInt(W["css-value-ticker-item-tape-skeleton-width-normal"]),V=parseInt(W["css-value-ticker-item-tape-skeleton-width-compact"]),D=parseInt(W["css-value-ticker-item-tape-padding"]);function N(e){const t=new Promise((t=>{const s=()=>t(!0);e.onInit.subscribe(null,(e=>{var t;e?s():(t=2e3,new Promise((e=>{setTimeout(e,t)}))).then(s)}),!0)})),s=new Promise((t=>{e.onError.subscribe(null,(()=>t(!1)),!0)}));return Promise.race([t,s])}var z=s(901107),$=s(185515),A=s(194058);var P,B,F=s(903972),R=s(331633);function j(e,t,s){const i={name:e,frameElementId:t,data:s};window.parent.postMessage(i,"*")}!function(e){let t;!function(e){e.SetSymbol="set-symbol",e.SetInterval="set-interval"}(t=e.Names||(e.Names={}))}(P||(P={})),function(e){let t;!function(e){e.SymbolClick="tv-widget-symbol-click",e.WidgetLoad="tv-widget-load",e.WidgetReady="tv-widget-ready",e.ResizeIframe="tv-widget-resize-iframe",e.NoData="tv-widget-no-data"}(t=e.Names||(e.Names={}))}(B||(B={}));const H=window.initData.hashSettings||{},O="string"==typeof H.frameElementId?H.frameElementId:null;var K=s(351079);const U=function(){const e=window;return{...e.initData.widgetDefaults,...e.initData.hashSettings,...e.initData.querySettings}}(),q=(0,$.filterUtmInfo)(U);let X=U.symbols;Array.isArray(X)&&X.every(F.validateSymbolData)||(console.error("Invalid symbols data, fall back to defaults"),X=window.initData.defaultSettings.symbols);const G=U.noLinks;U.noLinks||X.forEach((function(e){const t=e.proName||e.shortName;e.linkPage=(0,A.makeWidgetSymbolLink)({symbol:t,customUrl:U.largeChartUrl,utmInfo:q})}));const J=U.isTransparent,Q=U.showSymbolLogo,Y=U.displayMode,Z=U.colorTheme;Z&&(0,R.setTheme)(Z);const ee=document.querySelector("#widget-ticker-tape-container");(0,z.createEmbedWidgetWrapper)(ee,"ticker-tape",q,{isWhiteLabel:U.whitelabel,locale:U.locale,copyrightOptions:{verticalPosition:K.CopyrightPosition.Vertical.Top,mode:"small_old"}});const te=new class{constructor(e){this.height=new E.WatchedValue(0),this.onAllTickersFaulty=new C.Delegate,this._styleElement=document.createElement("style"), this._containerElement=document.createElement("div"),this._tapeElement=document.createElement("div"),this._headElement=document.createElement("div"),this._tailElement=document.createElement("div"),this._headTickerItems=[],this._tailTickerItems=[],this._tickerItemWidths=[],this._isCompactMode=new E.WatchedValue,this._turnKeyboardFocusOn=e=>{e.target.matches(":focus-visible")&&(this._containerElement.classList.add(M.noAutoScroll),this._containerElement.removeEventListener("focusin",this._turnKeyboardFocusOn),this._containerElement.addEventListener("focusout",this._turnKeyboardFocusOff))},this._turnKeyboardFocusOff=e=>{const t=e.relatedTarget;null!==t&&this._containerElement.contains(t)||(this._containerElement.scrollLeft=0,this._containerElement.classList.remove(M.noAutoScroll),this._containerElement.removeEventListener("focusout",this._turnKeyboardFocusOff),this._containerElement.addEventListener("focusin",this._turnKeyboardFocusOn))},this._cancelDebouncedResize=()=>{},this._onCompactModeChanged=()=>{this._updateTickerViewsAndStyles()},this._onVisibilityStateChanged=()=>{"visible"===document.visibilityState&&this._updateTickerViewsAndStyles()},this._updateTickerViewsAndStyles=()=>{this._updateTickerViews(),this._updateStyles()},this._onDeviceChanged=()=>{this._isCompactMode.setValue(L())},this._ensureSufficientTailWidth=()=>{if(0===this._symbols.length)return;const e=this._containerElement.getBoundingClientRect().width,t=this._tailElement.getBoundingClientRect().width,s=this._headTickerItems.length;let i=e-t;for(let e=this._tailTickerItems.length%s;i>0;e=++e%s){const t=this._tickerItemWidths[e];i-=t;const s=this._createTickerItemTape(this._symbols[e]);this._tailTickerItems.push(s),this._tailElement.appendChild(s.getElement()),s.setView(t,this._isCompactMode.value(),this._isTransparent)}},this._updateHeightValue=e=>{this.height.setValue(S(e))},this._symbols=e.symbols,this._speed=e.speed,this._isTransparent=!!e.isTransparent,this._displayMode=e.displayMode,this._isEmbedWidget=!!e.isEmbedWidget,this._showSymbolLogo=!!e.showSymbolLogo,this._noLinks=!!e.noLinks,this._isCompactMode.setValue(this._displayMode===b.Adaptive?L():this._displayMode===b.Compact),this._isCompactMode.subscribe(this._updateHeightValue,{callWithLast:!0}),e.container.appendChild(this._containerElement),this._containerElement.classList.add(M.tickerTape),this._containerElement.classList.toggle(M.noAutoScroll,!this._speed),this._speed&&this._containerElement.addEventListener("focusin",this._turnKeyboardFocusOn),this._tapeElement.classList.add(M.tape),this._headElement.classList.add(M.head),this._tailElement.classList.add(M.tail);const t=function(e,t,s){const i=t?V:I,a=document.createElement("div");a.classList.add(M.skeleton);const n=Math.ceil(e/i);for(let e=0;e{e.then((e=>t?i(new x):s(e))),e.catch((e=>i(t?new x:e)))})),cancel(){t=!0}}}(Promise.all(s)),this._waitForTickersCancelable.promise.then((e=>{e.every((e=>!e))&&this.onAllTickersFaulty.fire(),this._tapeElement.removeChild(t),this._tapeElement.appendChild(this._headElement),this._tapeElement.appendChild(this._tailElement),this._init()}),(e=>{if(!(e instanceof x))throw e}))}destroy(){this._containerElement.remove(),this._waitForTickersCancelable.cancel(),v.off("changeDevice",this._onDeviceChanged),this._cancelDebouncedResize(),document.removeEventListener("visibilitychange",this._onVisibilityStateChanged),this._headTickerItems.forEach((e=>{e.stop()})),this._tailTickerItems.forEach((e=>{e.stop()}))}_createTickerItemTape(e){const t=document.createElement(this._noLinks?"span":"a");return new d(e,t,{isEmbedWidget:this._isEmbedWidget,showSymbolLogo:this._showSymbolLogo,isCompactMode:this._isCompactMode.value()})}_init(){this._isCompactMode.subscribe(this._onCompactModeChanged,{callWithLast:!0}),this._ensureSufficientTailWidth(),this._displayMode===b.Adaptive&&v.on("changeDevice",this._onDeviceChanged),this._cancelDebouncedResize=function(e){const t=(0,i.default)(e,300);return window.addEventListener("resize",t),()=>{t.cancel(),window.removeEventListener("resize",t)}}(this._ensureSufficientTailWidth),document.addEventListener("visibilitychange",this._onVisibilityStateChanged);const e=(0,i.default)(this._updateTickerViewsAndStyles.bind(this),0);this._tailTickerItems.forEach((t=>{t.onInit.subscribe(null,e,!0),t.onComplete.subscribe(null,e,!0)}))}_updateTickerViews(){const e=this._headTickerItems.length;this._headTickerItems.forEach(((e,t)=>{e.resetWidth(),e.toggleCompactMode(this._isCompactMode.value());const s=e.getWidth()+D;e.setWidth(s),this._tickerItemWidths[t]=s})),this._tailTickerItems.forEach(((t,s)=>{t.toggleCompactMode(this._isCompactMode.value()),t.setWidth(this._tickerItemWidths[s%e])}))}_updateStyles(){const e=this._styleElement.sheet;if(!e||!this._speed)return;const t=this._headElement.getBoundingClientRect().width,s="ticker-tape-scroll"+"--"+(0,f.randomHashN)(4);for(;e.cssRules.length>0;)e.deleteRule(0);const i=[`@keyframes ${s} {\n\t\t\t\tfrom { transform: translateX(0); }\n\t\t\t\tto { transform: translateX(${(0,w.isRtl)()?"":"-"}${t}px); }\n\t\t\t}`,`.${M.tape} {\n\t\t\t\tanimation-duration: ${t/this._speed}s;\n\t\t\t\tanimation-name: ${s};\n\t\t\t}`];for(let t=0;t{j(B.Names.NoData,O,void 0)}),!0)} },e=>{e.O(0,[18562,14652,43630,47416,96187,86854,7884,546,30956,75084,88657,99943,28413,56071,40779,30128,80846,86902,97613,49497,39879,85778,24484],(()=>{return t=930134,e(e.s=t);var t}));e.O()}]);