(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[93579],{508520:e=>{e.exports={}},259503:e=>{e.exports={}},254073: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"}},775894:e=>{e.exports={}},62889:(e,t,s)=>{"use strict";s.d(t,{copyrightLabel:()=>r});var a,i=s(497754),n=s(995683),o=s(389137),l=s(254073);function r({svgText:e,icon:t,theme:s,url:r,mode:c,verticalPosition:d=a.Vertical.Bottom,horizontalPosition:h=a.Horizontal.End,snapToEdge:m=!0,isExpanded:p=!1,className:g}){let b;switch(c){case"new":case"with_border":case"large_trade":b=(0,o.clone)(s);break;default:b=(0,n.mergeThemes)((0,o.clone)(l),s)}const _=document.createElement("span");let u;r&&(u=document.createElement("a"),u.classList.add(...b.label__link.split(/\s/)),u.href=r,u.target="_blank",u.rel="noopener noreferrer",u.setAttribute("data-target-type","copyright"),_.append(u)),_.className=i(b.label,h===a.Horizontal.Start&&b.start,h===a.Horizontal.End&&b.end,d===a.Vertical.Top&&b.top,d===a.Vertical.Bottom&&b.bottom,m&&"large_trade"!==c&&b.snap,"large_old"===c&&b.large,(p||"large_trade"===c)&&b.expanded,g,"js-copyright-label"),_.addEventListener("click",(()=>{function e(){_.classList.remove(b.expandedByClick),_.removeEventListener("mouseleave",e)}_.classList.contains(b.expandedWithTransition)||_.classList.contains(b.expanded)||(_.classList.contains(b.expandedByClick)?r||e():(_.classList.add(b.expandedByClick),_.addEventListener("mouseleave",e)))}));const y=document.createElement("span");y.className=b.logoWrap,y.innerHTML=t;const w=document.createElement("span");return w.className=b.svgTextWrap,w.innerHTML=e,_.append(y,w),[_,b]}!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={}))}(a||(a={}))},351079:(e,t,s)=>{"use strict";s.d(t,{createCopyrightLabel:()=>o});var a=s(497754),i=s(62889),n=s(952598);function o({sheriffOptions:e,...t}){const[s,o]=(0,i.copyrightLabel)(t),l=e&&e.includes(n.KnownAction.Expand),r=e&&e.includes(n.KnownAction.LargeTradeLogo);return s.className=a(s.className,(l||r)&&o.expandedWithTransition),s}},952598:(e,t,s)=>{"use strict";var a;s.d(t,{KnownAction:()=>a,widgetSheriffActions:()=>i}),function(e){e.Expand="expand-logo",e.LargeTradeLogo="large-trade-logo"}(a||(a={}));const i=new Set([a.Expand,a.LargeTradeLogo])},837881:(e,t,s)=>{"use strict";s(9757),s(638456),s(730128);var a=s(331633),i=s(903972),n=s(185515);var o=s(194058),l=(s(259503),s(343370)),r=s(401580),c=(s(775894), s(780237)),d=s(919476),h=s(607546),m=s(17966),p=s(909627);class g extends c.TickerItemAbstract{_getClass(){return"tv-ticker-item-change"}_getView(){const e=this._symbolData.title||this._symbolData.description||"",t=this._symbolData.last||"",s=this._symbolData.change||"",a=this._symbolData.changePercent?`(${this._symbolData.changePercent})`:"",i=this._options.isEmbedWidget,n=this._options.showSymbolLogo,o={head:this._getElementClass("head"),icon:this._getElementClass("icon"),title:this._getElementClass("title"),sessionStatus:this._getElementClass("session-status"),last:this._getElementClass("last"),updateMode:this._getElementClass("update-mode"),body:this._getElementClass("body"),changeDirection:this._getElementClass("change-direction"),changePercent:this._getElementClass("change-percent"),change:this._getElementClass("change")};return`
\n\t\t\t\t\t${n?(0,m.getCircleLogoAnyHtml)({logoUrls:[],size:"xxxsmall",className:o.icon}):""}\n\t\t\t\t
${(0,d.htmlEscape)(t)}
${p}${(0,d.htmlEscape)(a)}${(0,d.htmlEscape)(s)}
`}_getTickerOptions(){return{dontDyePrice:!0,signPositive:!1,signNegative:!1,changeDirectionUpClass:`${this._getElementClass("body")}--up`,changeDirectionDownClass:`${this._getElementClass("body")}--down`,lastGrowingClass:`${this._getElementClass("last")}--growing`,lastFallingClass:`${this._getElementClass("last")}--falling`,setStateHook:this._options.showSymbolLogo?(0,h.getLogoUrlsHook)((e=>{const t=this._getElementClass("with-icon");this._el.classList.add(t),this._renderSymbolLogo(e,"xxxsmall")})):void 0}}}function b(e,t){const s=e.length;let a;return a=t<0?s+t%s:t%s,e[a]}var _=s(901107),u=s(702269),y=s(503344);s(508520);const w=window.initData.widgetDefaults,v=function(){const e=window;return{...e.initData.widgetDefaults,...e.initData.hashSettings,...e.initData.querySettings}}(),k=(0,n.filterUtmInfo)(v),f=function(e){if(!Array.isArray(e))return console.error("`settings.symbols` should be an array"),!1;if(!e.every(i.validateSymbolData))return console.warn("Every element of `settings.symbols` requires property `proName` or `shortName`"),!1;return!0}(v.symbols)?v.symbols:w.symbols;f.forEach((function(e){const t=e.proName||e.shortName;if(!e.linkPage)if(v.linkPageTemplate){const t=e.proName||"",s=e.shortName||"";e.linkPage=(0,y.makeTemplateSymbolUrl)((0,u.replaceOldPlaceholders)(v.linkPageTemplate),{proName:t,shortName:s})}else e.linkPage=(0,o.makeWidgetSymbolLink)({symbol:t,customUrl:v.largeChartUrl, utmInfo:k})}));const E=v.colorTheme;E&&(0,a.setTheme)(E);const C=v.isTransparent,L=v.showSymbolLogo,x=document.getElementById("widget-ticker-container"),T=(0,_.createEmbedWidgetWrapper)(x,"tickers",k,{locale:window.locale||"en",isWhiteLabel:v.whitelabel}),S={isEmbedWidget:!0,isTransparent:C,showSymbolLogo:L};new class{constructor(e,t,s){this._el=e,this._numberItemsCanBeShown=new r.WatchedValue(0),this._options=s||{},this._symbols=t,this._tickerItems=[],this._tickerItemsVisible=[],this._init()}onResize(){this._updateNumberItemsCanBeShown()}_init(){this._stopLoader(),this._numberItemsCanBeShown.subscribe(this._update.bind(this)),setTimeout(this._updateNumberItemsCanBeShown.bind(this),66),this._el.classList.toggle("tv-widget-ticker--transparent",Boolean(this._options.isTransparent));const e=(0,l.default)(this.onResize.bind(this),66,{leading:!1,trailing:!0});window.addEventListener("resize",e,!1)}_stopLoader(){const e=this._el.querySelector(".tv-widget-ticker__loader");e&&e.classList.remove("i-loading")}_updateNumberItemsCanBeShown(){let e=0,t=this._el.offsetWidth;if(t){const e=window.getComputedStyle(this._el);t=this._el.offsetWidth-parseFloat(e.getPropertyValue("padding-left"))-parseFloat(e.getPropertyValue("padding-right"))-parseFloat(e.getPropertyValue("border-left-width"))-parseFloat(e.getPropertyValue("border-right-width"))}t&&(e=Math.floor(t/200),e<1?e=1:e>this._symbols.length&&(e=this._symbols.length)),this._numberItemsCanBeShown.setValue(e)}_update(){const e=this._tickerItemsVisible.length,t=this._numberItemsCanBeShown.value();e{e.stop(),this._removeItemFromDOM(e)}))}_addItemToDOM(e){let t=this._el.querySelector(".tv-widget-ticker__row");t||(t=document.createElement("div"),t.classList.add("tv-widget-ticker__row"),this._el.appendChild(t));const s=e.getElement();s.classList.add("tv-widget-ticker__item"),t.appendChild(s)}_removeItemFromDOM(e){const t=e.getElement();t&&t.parentNode&&t.parentNode.removeChild(t)}}(T,f,S)},909627:e=>{e.exports=''}},e=>{e.O(0,[18562,14652,5761,37132,33101,69430,80732,42900,81179,54803,59232,45121,28413,10303,40779,30128,33155,26546,52469,14167,99463,11226],(()=>{return t=837881,e(e.s=t);var t}));e.O()}]);