(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[60958],{185842:(e,t)=>{"use strict";function n(e,t){if(void 0===e)throw new Error("".concat(null!=t?t:"Value"," is undefined"));return e}function o(e,t){if(null===e)throw new Error("".concat(null!=t?t:"Value"," is null"));return e}t.ensureNotNull=t.ensureDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error("Assertion failed".concat(t?": ".concat(t):""))},t.ensureDefined=n,t.ensureNotNull=o},197486:(e,t)=>{"use strict";function n(e){return Math.round(1e10*e)/1e10}t.isNumber=void 0,t.isNumber=function(e){return"number"==typeof e&&isFinite(e)}},914487:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var e=[],t=0;t{e.exports={pair:"pair-ocURKVwI",xxceptionallysmalldonotusebrv1023:"xxceptionallysmalldonotusebrv1023-ocURKVwI",xxxxsmall:"xxxxsmall-ocURKVwI",xxxsmall:"xxxsmall-ocURKVwI",xxsmall:"xxsmall-ocURKVwI",xsmall:"xsmall-ocURKVwI",small:"small-ocURKVwI",medium:"medium-ocURKVwI",large:"large-ocURKVwI",xlarge:"xlarge-ocURKVwI",xxlarge:"xxlarge-ocURKVwI",xxxlarge:"xxxlarge-ocURKVwI",logo:"logo-ocURKVwI",skeleton:"skeleton-ocURKVwI",empty:"empty-ocURKVwI"}},130725:e=>{e.exports={logo:"logo-PsAlMQQF",hidden:"hidden-PsAlMQQF",xxceptionallysmalldonotusebrv1023:"xxceptionallysmalldonotusebrv1023-PsAlMQQF",xxxsmall:"xxxsmall-PsAlMQQF",xxsmall:"xxsmall-PsAlMQQF",xsmall:"xsmall-PsAlMQQF",small:"small-PsAlMQQF",medium:"medium-PsAlMQQF",large:"large-PsAlMQQF",xlarge:"xlarge-PsAlMQQF",xxlarge:"xxlarge-PsAlMQQF",xxxlarge:"xxxlarge-PsAlMQQF",skeleton:"skeleton-PsAlMQQF",letter:"letter-PsAlMQQF"}},331143: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"}},320403:(e,t)=>{"use strict";var n,o=!("undefined"==typeof window||!window.document||!window.document.createElement);function i(){if(n)return n;if(!o||!window.document.body)return"indeterminate";var e=window.document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),n="reverse",e.scrollLeft>0?n="default":(e.scrollLeft=1, 0===e.scrollLeft&&(n="negative")),document.body.removeChild(e),n}},584104:(e,t,n)=>{"use strict";n.d(t,{guid:()=>r,randomHash:()=>s});const o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function r(){return o.replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(){return function(e){let t="";for(let n=0;n{"use strict";function o(e){return"number"==typeof e&&isFinite(e)}function i(e){if(!e||"object"!=typeof e)return e;let t;t=Array.isArray(e)?[]:{};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n];t[n]=o&&"object"==typeof o?i(o):o}return t}function r(e){return"object"==typeof e&&null!==e}function s(e){return null!=e&&(e.constructor===Function||"[object Function]"===Object.prototype.toString.call(e))}function a(e,t,n=""){if(e===t)return[!0,n];if(s(e)&&(e=void 0),s(t)&&(t=void 0),null==e||null==t)return[e===t,n];if("object"!=typeof e&&"object"!=typeof t)return[e===t,n];if(Array.isArray(e)&&Array.isArray(t)){const o=e.length;if(o!==t.length)return[!1,n];for(let i=0;ii,deepEquals:()=>a,isArray:()=>l,isInteger:()=>d,isNumber:()=>o,isObject:()=>r});const l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function d(e){return"number"==typeof e&&e%1==0}Number.isNaN=Number.isNaN||function(e){return e!=e}},880847:(e,t,n)=>{"use strict";var o=n(952375),i=n(185842),r=n(284278),s=n(202989),a=n(424126),l=n(998348);let d=!1,c=null,u=null;o.mobiletouch||(document.addEventListener("mouseover",f,!0),document.addEventListener("focus",(function(e){const t=e.target;if(!(t instanceof HTMLElement&&t.closest('[data-tooltip-show-on-focus="true"]')&&t.matches(":focus-visible")))return;f(e,!0)}),{capture:!0}),document.addEventListener("active-descendant-focus",(function(e){e.target instanceof HTMLElement&&f(e,!0)}),{capture:!0}));const m=new MutationObserver((()=>{if(c&&c.options.target){let e;e="isConnected"in c.options.target?c.options.target.isConnected:document.body.contains(c.options.target),e||w()}})),g=(e,t={})=>{const{content:n,...o}=y(t),i=l.getDataFromTarget(e),r=Object.assign(i,o);return"none"!==n.type&&(r.content=n),!("none"===r.content.type&&!r.hotkey)&&(r.target=e,p(r),!0)},p=e=>{const t=y(e),n=l.getTooltip(t);if(c={options:t,element:n},(0,a.setTooltip)(n),(0,s.clearSchedule)(),!d)return l.hideTooltip(n),void(0,s.scheduleRender)((()=>_(n)),function(e){return"number"!=typeof e.tooltipDelay||isNaN(e.tooltipDelay)?500:e.tooltipDelay}(t));const{tooltipDebounce:o}=e;"number"!=typeof o||isNaN(o)?_(n):(0,s.scheduleRender)((()=>_(n)),o)};function f(e,t){ if("sourceCapabilities"in e&&e.sourceCapabilities?.firesTouchEvents)return;const n=function(e,t,n){const o=[];for(;e&&e!==t;)e.classList&&e.classList.contains(n)&&o.push(e),e=e.parentElement||v(e.parentNode);return o}(e.target,e.currentTarget,"apply-common-tooltip");for(const o of n){if(e instanceof MouseEvent)if("buttons"in e){if(1&e.buttons)continue}else if(1===e.which)continue;const n=()=>g(o);if(n()){const e=e=>i(null,!0),i=(r,s=!1)=>{o.removeEventListener("common-tooltip-update",n),o.removeEventListener("mouseleave",i),o.removeEventListener("mousedown",i),document.removeEventListener("scroll",e,{capture:!0}),t&&(o.removeEventListener("blur",i),o.removeEventListener("active-descendant-blur",i)),u&&(u.destroy(),u=null),w(s)};o.addEventListener("common-tooltip-update",n),o.addEventListener("mouseleave",i),o.addEventListener("mousedown",i),document.addEventListener("scroll",e,{capture:!0}),t&&(o.addEventListener("blur",i),o.addEventListener("active-descendant-blur",i)),null===u&&(u=(0,r.createGroup)({desc:"Tooltip"}),u.add({desc:"Hide",hotkey:27,handler:i}));break}}}function h(){(0,a.empty)(),d=!1,c=null}const w=(e,t)=>{if((0,s.clearSchedule)(),(0,i.ensureNotNull)(m).disconnect(),!c)return;if(!e&&!d)return;const{element:n,options:o}=c,r=()=>{n.removeEventListener("mouseleave",r),l.hideTooltip(n),e?h():(0,s.scheduleRemove)((()=>{h()}),250),t?.()};o.tooltipHideDelay?(0,s.scheduleHide)((()=>{n.querySelector(":hover")?n.addEventListener("mouseleave",r):r()}),o.tooltipHideDelay):r()};function _(e){const{options:t}=(0,i.ensureNotNull)(c);if(l.setStyle(e,t),l.showTooltip(e),(0,i.ensureNotNull)(m).observe(document,{childList:!0,subtree:!0}),d=!0,t.forceHideOnMove){const e=()=>{document.removeEventListener("mousemove",e),document.removeEventListener("touchmove",e),w()};document.addEventListener("mousemove",e),document.addEventListener("touchmove",e)}}function v(e){return e&&(e.nodeType===Node.ELEMENT_NODE?e:null)}function y(e){if(function(e){return"content"in e}(e))return e;const{inner:t,html:n,text:o,...i}=e;let r={type:"none"};return t&&(r={type:"element",data:t}),o&&(r={type:n?"html":"text",data:o}),{content:r,...i}}},633961:(e,t,n)=>{"use strict";n.d(t,{copyrightLabel:()=>d});var o,i=n(729193),r=n(914487),s=n(385955),a=n(10665),l=n(331143);function d({svgText:e,icon:t,theme:d,url:c,mode:u,verticalPosition:m=o.Vertical.Bottom,horizontalPosition:g=o.Horizontal.End,snapToEdge:p=!0,isExpanded:f=!1,className:h}){let w;switch(u){case"new":case"with_border":case"large_trade":w=(0,s.clone)(d);break;default:w=(0,a.mergeThemes)((0,s.clone)(l),d)}const _=document.createElement("span");let v;c&&(v=document.createElement("a"),v.classList.add(...w.label__link.split(/\s/)),v.href=c,v.target="_blank",v.rel="noopener noreferrer",v.setAttribute("data-target-type","copyright"),v.ariaLabel=i.t(null,void 0,n(517859)),_.append(v)), _.className=r(w.label,g===o.Horizontal.Start&&w.start,g===o.Horizontal.End&&w.end,m===o.Vertical.Top&&w.top,m===o.Vertical.Bottom&&w.bottom,p&&"large_trade"!==u&&w.snap,"large_old"===u&&w.large,(f||"large_trade"===u)&&w.expanded,h,"js-copyright-label"),_.addEventListener("click",(()=>{function e(){_.classList.remove(w.expandedByClick),_.removeEventListener("mouseleave",e)}_.classList.contains(w.expandedWithTransition)||_.classList.contains(w.expanded)||(_.classList.contains(w.expandedByClick)?c||e():(_.classList.add(w.expandedByClick),_.addEventListener("mouseleave",e)))}));const y=document.createElement("span");y.className=w.logoWrap,y.innerHTML=t;const b=document.createElement("span");return b.className=w.svgTextWrap,b.innerHTML=e,_.append(y,b),[_,w]}!function(e){let t,n;!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"}(n=e.Horizontal||(e.Horizontal={}))}(o||(o={}))},323219:(e,t,n)=>{"use strict";n.d(t,{createCopyrightLabel:()=>s});var o=n(914487),i=n(633961),r=n(302986);function s({sheriffOptions:e,...t}){const[n,s]=(0,i.copyrightLabel)(t),a=e&&e.includes(r.KnownAction.Expand),l=e&&e.includes(r.KnownAction.LargeTradeLogo);return n.className=o(n.className,(a||l)&&s.expandedWithTransition),n}},302986:(e,t,n)=>{"use strict";var o;n.d(t,{KnownAction:()=>o,widgetSheriffActions:()=>i}),function(e){e.Expand="expand-logo",e.LargeTradeLogo="large-trade-logo"}(o||(o={}));const i=new Set([o.Expand,o.LargeTradeLogo])},952375:(e,t,n)=>{"use strict";n.d(t,{mobiletouch:()=>i,setClasses:()=>r});var o=n(384530);const i=o.mobiletouch;o.touch;function r(){document.documentElement.classList.add(o.touch?"feature-touch":"feature-no-touch",o.mobiletouch?"feature-mobiletouch":"feature-no-mobiletouch")}},376596:(e,t,n)=>{"use strict";n.d(t,{CheckMobile:()=>l,isDesktopApp:()=>s,isMac:()=>r,isSymphonyEmbed:()=>a,onWidget:()=>c,supportTouch:()=>u});var o=n(384530);const i=window.TradingView=window.TradingView||{};function r(){return o.isMac}function s(){return/TVDesktop/i.test(navigator.userAgent)}function a(){return i.isSymphony||!1}const l={Android:()=>o.isAndroid,BlackBerry:()=>o.isBlackBerry,iOS:()=>o.isIOS,Opera:()=>o.isOperaMini,isIPad:()=>o.isIPad,any:()=>o.isAnyMobile};i.isMobile=l;const d=new Map;function c(){const e=window.location.pathname,t=window.location.host,n=`${t}${e}`;return d.has(n)||d.set(n,function(e,t){const n=["^widget-docs"];for(const e of n)if(new RegExp(e).test(t))return!0 ;const o=["^widgetembed/?$","^cmewidgetembed/?$","^([0-9a-zA-Z-]+)/widgetembed/?$","^([0-9a-zA-Z-]+)/widgetstatic/?$","^([0-9a-zA-Z-]+)?/?mediumwidgetembed/?$","^twitter-chart/?$","^telegram/chart/?$","^embed/([0-9a-zA-Z]{8})/?$","^widgetpopup/?$","^extension/?$","^idea-popup/?$","^hotlistswidgetembed/?$","^([0-9a-zA-Z-]+)/hotlistswidgetembed/?$","^marketoverviewwidgetembed/?$","^([0-9a-zA-Z-]+)/marketoverviewwidgetembed/?$","^eventswidgetembed/?$","^tickerswidgetembed/?$","^forexcrossrateswidgetembed/?$","^forexheatmapwidgetembed/?$","^marketquoteswidgetembed/?$","^screenerwidget/?$","^cryptomktscreenerwidget/?$","^([0-9a-zA-Z-]+)/cryptomktscreenerwidget/?$","^([0-9a-zA-Z-]+)/marketquoteswidgetembed/?$","^technical-analysis-widget-embed/$","^singlequotewidgetembed/?$","^([0-9a-zA-Z-]+)/singlequotewidgetembed/?$","^embed-widget/([0-9a-zA-Z-]+)/(([0-9a-zA-Z-]+)/)?$","^widget-docs/([0-9a-zA-Z-]+)/([0-9a-zA-Z-/]+)?$"],i=e.replace(/^\//,"");let r;for(let e=o.length-1;e>=0;e--)if(r=new RegExp(o[e]),r.test(i))return!0;return!1}(e,t)),d.get(n)??!1}function u(){return o.mobiletouch||o.touch||o.isAnyMobile}i.onWidget=c;o.isChrome,o.isFF,o.isEdge,o.isSafari},729193:(e,t,n)=>{"use strict";n.d(t,{t:()=>o.t});n(686923);var o=n(835537)},511228:(e,t,n)=>{"use strict";n.d(t,{tokenize:()=>l});var o=n(86464),i=n(788312);const r=/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,s=(e=(0,i.isFeatureEnabled)("allow_trailing_whitespace_in_number_token"))=>({number:e?/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))(?:\s*(?=\s*$))?|\.\d+(?:\s*(?=\s*$))?/:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:r,incompleteSymbol:/'[^']*/,separatorPrefix:o.SEPARATOR_PREFIX,openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null}),a=(e=s())=>new RegExp(Object.values(e).map((e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t})).filter((e=>""!==e)).concat(".").join("|"),"g");function l(e,t=s()){if(!e)return[];const n=[],o=Object.keys(t);let i;const r=a(t);for(;i=r.exec(e);){let e=!1;for(let t=o.length;t--;)if(i[t+1]){o[t]&&n.push({value:i[t+1],type:o[t],precedence:0,offset:i.index}),e=!0;break}e||n.push({value:i[0],type:"unparsed",precedence:0,offset:i.index})}return n}},674324:e=>{e.exports={}},686923:(e,t,n)=>{"use strict";var o=n(385955);const i=/{(\w+)}/g,r=/{(\d+)}/g;String.prototype.format=function(...e){const t=(0,o.isObject)(e[0]),n=t?i:r,s=t?(t,n)=>{const o=e[0];return void 0!==o[n]?o[n]:t}:(t,n)=>{const o=parseInt(n,10),i=e[o];return void 0!==i?i:t};return this.replace(n,s)}},141943:(e,t,n)=>{"use strict";n(301416),n(780927);var o=n(323939);var i=n(587347),r=n(729193),s=(n(674324),n(434612)),a=n(126927);class l{constructor(e,t){this._customizer=t;const n=document.createElement("tr");n.innerHTML=e,this._element=n.children[0]}getElement(e){const t=this._element.cloneNode(!0);return this._customizer?this._customizer(t,e):t}} var d=n(124401),c=n(338390);n(130725);function u(e){const t=(0,c.getStyleClasses)(e.size,2,e.className);return(0,c.isCircleLogoWithUrlProps)(e)?``:`${e.placeholderLetter||""}`}var m=n(914487),g=n.n(m),p=n(140095),f=n(108317),h=n.n(f);function w(e){const{primaryLogoUrl:t,secondaryLogoUrl:n,size:o,className:i}=e;return`\n\t\t\t${_({logoUrl:n,size:o})}\n\t\t\t${_({logoUrl:t,size:o})}\n\t\t`}function _(e){const{logoUrl:t,size:n}=e,o=function(e,t=2,n=!0){return g()(h().logo,h()[e],h().skeleton,p.skeletonTheme.wrapper,!n&&h().empty,1===t&&g()(p.skeletonTheme.animated))}(n,2,Boolean(t));return void 0===t?``:``}function v(e){const{logoUrls:t,...n}=e;return 1===t.length?u({logoUrl:t[0],...n}):2===t.length?w({primaryLogoUrl:t[0],secondaryLogoUrl:t[1],...n}):u({logoUrl:void 0,...n})}n(385955);var y=n(795491);const b=(0,y.getLogoUrlResolver)();function k(e,t){let n=!1;return(o,i,r)=>{const s=o["currency-logoid"]&&o["base-currency-logoid"];if(!n&&(o.logoid||s||r)){n=!0;const i=function(e){if(2!==e.length)return e;if(function(e){return e.some((e=>x(e)))}(e)&&!function(e){return e.some((e=>e.includes("country")&&!x(e)))}(e))return e.filter((e=>!x(e)));return e}(function(e,t=y.LogoSize.Medium){const n=e.logoid,o=e["base-currency-logoid"],i=e["currency-logoid"],r=n&&b.getSymbolLogoUrl(n,t);if(r)return[r];const s=o&&b.getSymbolLogoUrl(o,t),a=i&&b.getSymbolLogoUrl(i,t);return s&&a?[s,a]:s?[s]:a?[a]:[]}({logoid:o.logoid,"base-currency-logoid":o["base-currency-logoid"],"currency-logoid":o["currency-logoid"]},t));e(i)}}}function x(e){return e.includes("country/US")}const q=r.t(null,void 0,n(788444));var E=n(503888);class L{constructor(e){if(this._onClick=e=>{if(e.defaultPrevented||0!==e.button)return;const t=this._findAnchor(e.target);t&&!this._bypassClick(e,t)&&this._handleAnchorEvent(e,t)},this._onKeydown=e=>{if(e.defaultPrevented||"Enter"!==e.key)return;const t=document.activeElement instanceof HTMLAnchorElement?document.activeElement:null;t&&t.href&&!this._bypassEnter(t)&&this._handleAnchorEvent(e,t)},"function"!=typeof e)throw new Error("NavigationInterceptor requires a handler");this.handler=e}enable(){document.addEventListener("click",this._onClick,!0),document.addEventListener("keydown",this._onKeydown,!0),this.originalOpen=window.open;const e=this;window.open=function(t,n,o){const i=e._toHref(t),r=e._info(i,"window.open",n??null,null);return e.handler(r)?null:e.originalOpen.call(window,i,n,o)}}_handleAnchorEvent(e,t){const n=this._toHref(t.href),o=this._info(n,"link",t.target||null,t.rel||null);this.handler(o)&&e.preventDefault()}_findAnchor(e){for(;e;){if(e instanceof HTMLAnchorElement&&e.href)return e;e=e.parentElement}return null}_bypassClick(e,t){return!!(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)||this._bypassCommon(t)}_bypassEnter(e){return this._bypassCommon(e)}_bypassCommon(e){ if(e.hasAttribute("download"))return!0;const t=e.getAttribute("href")||"";return!!/^(mailto:|tel:|javascript:)/i.test(t)||!!e.hasAttribute("data-no-intercept")}_toHref(e){if(!e)return new URL("about:blank",window.location.href).href;return("string"==typeof e?new URL(e,window.location.href):new URL(e.toString(),window.location.href)).href}_info(e,t,n,o){return{href:e,source:t,target:n,rel:o,isHashChange:this._isHashChange(e)}}_isHashChange(e){try{const t=new URL(e),n=new URL(window.location.href);return t.origin===n.origin&&t.pathname===n.pathname&&t.search===n.search&&t.hash!==n.hash}catch{return!1}}}const A=/^(\/symbols\/)([\w\d-]*)\//;const T=e=>{if(e.isHashChange)return!1;const t=new URL(e.href);if(function(e){return Boolean(e.pathname.toLowerCase().match(A))}(t)){const e=(n=t.pathname,(n.match(A)?.[2]??"").replace("-",":"));return window.parent?.postMessage({type:"tv-widget-symbol-navigation",symbol:e,isTradingViewWidget:!0},"*"),!0}var n;return!1},U=document.querySelector("#widget-market-quotes-container"),$=function(){const e=window;return{...e.initData.widgetDefaults,...e.initData.hashSettings,...e.initData.querySettings}}(),C=(0,o.filterUtmInfo)($);try{!async function(e){Math.random()>.005||(await(0,E.getEmbedWidgetTracker)())?.trackWidgetLoadMetaInfo(e)}({widget_id:"market-quotes",symbols:JSON.stringify(function(e){const t=[];for(const n of e)for(const e of n.symbols)e.name&&t.push(e.name);return t}($.symbolsGroups)),customer:$.customer})}catch{}try{if($.linkCapturingAllowed&&$.symbolLinkCapturing){new L(T).enable()}}catch{}const S=(0,i.createEmbedWidgetWrapper)(U,"market-quotes",C,{locale:$.locale||"en",isWhiteLabel:$.whitelabel});S.parentElement.style.height="100%",window.marketQuotesWidget=new class{constructor(e,t,n){this._settings=t,this._testMode=n||!1,this._testMode||(this._quoteSession=(0,d.getQuoteSessionInstance)("simpleDetailed")),this._setHeaderTemplate(),this._setGroupTemplate(),this._setRowTemplate(),void 0!==t.largeChartUrl?this._makeUrl=e=>(0,a.makeTemplateSymbolUrl)(t.largeChartUrl,e):this._makeUrl=e=>(0,a.makeSymbolPageUrl)(e,(0,o.filterUtmInfo)(t)),e.appendChild(this._initWidget()),t.isTransparent?e.style.setProperty("--widget-bg-color","transparent"):t.backgroundColor&&e.style.setProperty("--widget-bg-color",t.backgroundColor)}_appendGroupWithSymbols(e,t,n=!1){if(!n){const n=this._widgetGroup.getElement(t);e.appendChild(n)}t.symbols.forEach((t=>{t.makeUrl=this._makeUrl;const n=this._widgetRow.getElement(t);this._testMode||new s.QuoteTicker(t.name,n,{quoteSession:this._quoteSession,permissionDeniedHook(e,t){!function(e){if(e.getElementsByClassName("js-exclamationed-symbol").length)return;const t=document.createElement("span");t.classList.add("market-quotes-widget__symbol-exclamation-mark","js-exclamationed-symbol","apply-common-tooltip"),t.setAttribute("title",q);const n=e.getElementsByClassName("market-quotes-widget__field--name-row-cell").item(0);if(!n)return;n.appendChild(t)}(n)}}).setStateHook(this._settings.showSymbolLogo?k((e=>{this._renderSymbolLogo(e,n,t)})):void 0), e.appendChild(n)}))}_initWidget(){const{isTransparent:e,symbolsGroups:t}=this._settings,n=document.createElement("div");n.classList.add("market-quotes-widget");const o=this._widgetHeader.getElement(null);n.appendChild(o);const i=document.createElement("div");return i.classList.add("market-quotes-widget__symbols"),n.classList.toggle("market-quotes-widget--transparent",e),1===t.length?this._appendGroupWithSymbols(i,t[0],!0):t.forEach((e=>{this._appendGroupWithSymbols(i,e)})),n.appendChild(i),n}_setHeaderTemplate(){this._widgetHeader=new l(`\n\t\t
\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
${r.t(null,void 0,n(734993))}
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
${r.t(null,void 0,n(310869))}
\n\t\t\t\t\t
${r.t(null,void 0,n(673487))}
\n\t\t\t\t\t
${r.t(null,void 0,n(922949))}
\n\t\t\t\t\t
${r.t(null,void 0,n(97781))}
\n\t\t\t\t\t
${r.t(null,void 0,n(845563))}
\n\t\t\t\t\t
${r.t(null,void 0,n(888678))}
\n\t\t\t\t\t
${r.t(null,void 0,n(832123))}
\n\t\t\t\t
\n\t\t\t
\n\t\t
\n\t\t`)}_setGroupTemplate(){this._widgetGroup=new l('
\n\t\t\t\t
\n\t\t\t
',((e,t)=>(e.firstElementChild.innerText=t.name,e)))}_setRowTemplate(){ this._widgetRow=new l(`\n\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t${this._settings.showSymbolLogo?v({logoUrls:[],size:"xxxsmall",className:"market-quotes-widget__field--icon"}):""}\n\t\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t
\n\t\t\t`,((e,t)=>{const n=e.querySelector(".js-symbol-short-name");return t.displayName&&(n.classList.remove("js-symbol-short-name"),n.textContent=t.displayName),t.makeUrl&&(/:/.test(t.name)?n.href=t.makeUrl({proName:t.name}):n.href=t.makeUrl({shortName:t.name})),e}))}_renderSymbolLogo(e,t,n){const o=t.querySelector(".js-header-icon");if(o){const{name:t,displayName:i}=n,r=v({logoUrls:e,size:"xxxsmall",className:"market-quotes-widget__field--icon",placeholderLetter:0===e.length?(i||t&&t.split(":")[1]||" ")[0]:void 0});o.innerHTML=r}}}(S,$)},196768:(e,t,n)=>{"use strict";n.d(t,{forceLTRStr:()=>l,isRtl:()=>o,stripLTRMarks:()=>a});n(320403);const o=()=>"rtl"===window.document.dir,i="‪",r="‬",s=new RegExp("‎|"+i+"|‫|"+r,"g");function a(e){ return""!==e&&o()&&null!=e?e.replace(s,""):e}function l(e){return""!==e&&o()&&null!=e?i+e+r:e}},685678:(e,t,n)=>{"use strict";n.d(t,{handleTVLinksClick:()=>s});var o=n(503888),i=n(323939),r=n(890533);function s(){document.addEventListener("click",(e=>{const t=e.target.closest(":link");if(!t?.hostname||!(0,r.isInternalHost)(t.hostname,"tradingview.com"))return;const n=t.dataset.targetType||null;!function(e,t){const n=function(){const e=window.initData.hashSettings;if(Object.keys(e).length>0)return(0,i.filterUtmInfo)(e);const t=new URLSearchParams(location.href);return{utm_campaign:t.get("utm_campaign")||void 0,utm_source:t.get("utm_source")||void 0}}(),r=function(e){const t=location.ancestorOrigins?.[0]||document.referrer;return e.utm_source||function(e){try{return new URL(e).host}catch(e){return""}}(t)}(n),s={widget_type:a(n),domain:r,link:e,target_type:t};!async function(e){(await(0,o.getEmbedWidgetTracker)())?.trackWidgetTVLinkClick(e)}(s)}(t.href,n)}))}function a(e){if(e.utm_campaign)return e.utm_campaign;const t=location.pathname;return t.includes("embed-widget")?t.split("/")[2]:t}}},e=>{e.O(0,[58667,39737,1967,46680,15797,23038,47139,44767,49135,80156,91667,12933,82688,98927,91753,7123,84596,12239],(()=>{return t=141943,e(e.s=t);var t}));e.O()}]);