(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[54163,78775,78326],{411881:e=>{e.exports={}},302489:e=>{e.exports={}},617525:e=>{e.exports={}},691625:e=>{e.exports={}},737643:e=>{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"}},757554: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"}},140987:e=>{e.exports={"tv-spinner__container-rotate":"tv-spinner__container-rotate-aLqboHuu"}},828133: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"}},615350:e=>{e.exports={}},158942:(e,t,n)=>{"use strict";n.d(t,{WatchedObject:()=>i.WatchedObject,WatchedValue:()=>r.WatchedValue});var r=n(597773),i=n(390251)},536794:(e,t,n)=>{"use strict";function r(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 r=e[n];t[n]=r&&"object"==typeof r?i(r):r}return t}function o(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 r=e.length;if(r!==t.length)return[!1,n];for(let i=0;ii,deepEquals:()=>a,isArray:()=>l,isInteger:()=>c,isNumber:()=>r,isObject:()=>o,isString:()=>u});const l=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function c(e){ return"number"==typeof e&&e%1==0}function u(e){return null!=e&&e.constructor===String}Number.isNaN=Number.isNaN||function(e){return e!=e}},390251:(e,t,n)=>{"use strict";n.d(t,{WatchedObject:()=>s});var r=n(536794),i=n(597773);function o(e,t){return(0,r.deepEquals)(e,t)[0]}class s extends i.WatchedValue{constructor(e,t=o){super(e),this._comparator=t}setValue(e,t){!t&&this._comparator(this.value(),e)||super.setValue(e,t)}}},597773:(e,t,n)=>{"use strict";n.d(t,{WatchedValue:()=>a});var r=n(735566),i=n(954992);const o=(0,r.getLogger)("Common.WatchedValue");function s(e){o.logError(`${e&&(e.stack||e.message)}`)}class a{constructor(...e){this._listeners=[],e.length>0?this._value=e[0]:delete this._value}destroy(){this.unsubscribe()}value(){return this._owner?this._owner._value:this._value}setValue(e,t){const n=this._owner?this._owner:this;if(n.writeLock)return;const r=n._value===e||Number.isNaN(n._value)&&Number.isNaN(e);if(!t&&r&&n.hasOwnProperty("_value"))return;n._value=e;const i=n._listeners.slice();let o=0;for(let t=0;tthis.spawn(e).readonly(),destroy:this.destroy.bind(this)};return this._readonlyInstance=e,e}spawn(e){return this._spawn(e)}when(e){(0,i.callWhen)(this,(e=>Boolean(e)),(()=>{try{e(this.value())}catch(e){s(e)}}))}assertNoSubscriptions(){0}ownership(){return this}release(){this.destroy()}spawnOwnership(){return this._spawn()}weakReference(){return this._spawn(void 0,!0)}_spawn(e,t){return new l(this._owner||this,e,t)}}class l extends a{constructor(e,t,n){super(),delete this._listeners,this._owner=e,this._onDestroy=t,this._weakReference=!!n}destroy(){try{this._onDestroy?.()}catch(e){s(e)}super.destroy()}readonly(){return super.readonly()}release(){this._weakReference||super.release()}}},607423:(e,t,n)=>{"use strict";n.d(t,{isNativeUIInteraction:()=>o,isTextEditingField:()=>i});var r=n(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 o(e,t){if(!t)return!1;const n=255&e;if(27===n||n>>>4==7)return!1;switch(e^n){ case r.Modifiers.Alt:return(38===n||40===n)&&"SELECT"===t.tagName||i(t);case r.Modifiers.Alt+r.Modifiers.Shift:return i(t);case r.Modifiers.Mod:if(67===n||!r.isMacKeyboard&&45===n){const e=t.ownerDocument&&t.ownerDocument.getSelection();if(e&&!e.isCollapsed)return!0}return i(t);case r.Modifiers.Mod+r.Modifiers.Shift:return n>=33&&n<=40&&i(t);case r.Modifiers.Shift:case 0:return 9===n?!(!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===n||32===n||9===n)&&("form"in t||t.isContentEditable)}return!1}},467236:(e,t,n)=>{"use strict";n.d(t,{getCircleLogoAnyHtml:()=>o});var r=n(857430),i=n(348091);function o(e){const{logoUrls:t,...n}=e;return 1===t.length?(0,r.getCircleLogoHtml)({logoUrl:t[0],...n}):2===t.length?(0,i.getCircleLogoPairHtml)({primaryLogoUrl:t[0],secondaryLogoUrl:t[1],...n}):(0,r.getCircleLogoHtml)({logoUrl:void 0,...n})}},348091:(e,t,n)=>{"use strict";n.d(t,{getCircleLogoPairHtml:()=>i});var r=n(115078);function i(e){const{primaryLogoUrl:t,secondaryLogoUrl:n,size:i,className:s}=e;return`\n\t\t\t${o({logoUrl:n,size:i})}\n\t\t\t${o({logoUrl:t,size:i})}\n\t\t`}function o(e){const{logoUrl:t,size:n}=e,i=(0,r.getLogoStyleClasses)(n,2,Boolean(t));return void 0===t?``:``}},115078:(e,t,n)=>{"use strict";n.d(t,{getBlockStyleClasses:()=>l,getLogoStyleClasses:()=>c});var r=n(497754),i=n.n(r),o=n(548729),s=n(737643),a=n.n(s);function l(e,t){return i()(a().pair,a()[e],t)}function c(e,t=2,n=!0){return i()(a().logo,a()[e],a().skeleton,o.skeletonTheme.wrapper,!n&&a().empty,1===t&&i()(o.skeletonTheme.animated))}},857430:(e,t,n)=>{"use strict";n.d(t,{getCircleLogoHtml:()=>i});var r=n(842060);n(757554);function i(e){const t=(0,r.getStyleClasses)(e.size,2,e.className);return(0,r.isCircleLogoWithUrlProps)(e)?``:`${e.placeholderLetter||""}`}},336748:(e,t,n)=>{"use strict";n.d(t,{colorsPalette:()=>d,getHexColorByName:()=>h});var r=n(130714),i=n(410515),o=n(650151);const s={...r,...i},a={},l=Object.keys(s).length,c=/^#(([a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i;function u(e,t=[],n=s){const r=n[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):u(i,t,n)}Object.keys(s).forEach((e=>{const t=u(e);a[e]=(0,o.ensureNotNull)(t)}));const d=a;function h(e,t=d){const n=t[e];if(!n){if(c.test(e))return e;throw new Error("No such color "+e)}return n}},790188:(e,t,n)=>{"use strict";n.d(t,{colorsPalette:()=>r.colorsPalette,getHexColorByName:()=>r.getHexColorByName});var r=n(336748)},745269:(e,t,n)=>{"use strict";n.d(t,{color:()=>o,dur:()=>r,easingFunc:()=>i}) ;const r=350,i={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e*e:(4-2*e)*e-1,easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1- --e*e*e*e,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-8*--e*e*e*e,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1+--e*e*e*e*e,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e};const o={black70:"#4A4A4A",black80:"#535353"}},685023:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_SIZE:()=>r,spinnerSizeMap:()=>i});const r="large",i={mini:"xsmall",xxsmall:"xxsmall",xsmall:"xsmall",small:"small",medium:"medium",large:"large"}},673747:(e,t,n)=>{"use strict";var r=n(778785),i=n(650151),o=n(799786),s=n(112539),a=n(630112),l=n(471802);let c=!1,u=null,d=null;r.mobiletouch||(document.addEventListener("mouseover",g,!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;g(e,!0)}),{capture:!0}),document.addEventListener("active-descendant-focus",(function(e){e.target instanceof HTMLElement&&g(e,!0)}),{capture:!0}));const h=new MutationObserver((()=>{if(u&&u.options.target){let e;e="isConnected"in u.options.target?u.options.target.isConnected:document.body.contains(u.options.target),e||_()}})),p=(e,t={})=>{const{content:n,...r}=b(t),i=l.getDataFromTarget(e),o=Object.assign(i,r);return"none"!==n.type&&(o.content=n),!("none"===o.content.type&&!o.hotkey)&&(o.target=e,m(o),!0)},m=e=>{const t=b(e),n=l.getTooltip(t);if(u={options:t,element:n},(0,a.setTooltip)(n),(0,s.clearSchedule)(),!c)return l.hideTooltip(n),void(0,s.scheduleRender)((()=>y(n)),function(e){return"number"!=typeof e.tooltipDelay||isNaN(e.tooltipDelay)?500:e.tooltipDelay}(t));const{tooltipDebounce:r}=e;"number"!=typeof r||isNaN(r)?y(n):(0,s.scheduleRender)((()=>y(n)),r)};function g(e,t){if("sourceCapabilities"in e&&e.sourceCapabilities?.firesTouchEvents)return;const n=function(e,t,n){const r=[];for(;e&&e!==t;)e.classList&&e.classList.contains(n)&&r.push(e),e=e.parentElement||v(e.parentNode);return r}(e.target,e.currentTarget,"apply-common-tooltip");for(const r of n){if(e instanceof MouseEvent)if("buttons"in e){if(1&e.buttons)continue}else if(1===e.which)continue;const n=()=>p(r);if(n()){const e=e=>i(null,!0),i=(o,s=!1)=>{r.removeEventListener("common-tooltip-update",n),r.removeEventListener("mouseleave",i),r.removeEventListener("mousedown",i),document.removeEventListener("scroll",e,{capture:!0}),t&&(r.removeEventListener("blur",i),r.removeEventListener("active-descendant-blur",i)),d&&(d.destroy(),d=null),_(s)};r.addEventListener("common-tooltip-update",n),r.addEventListener("mouseleave",i),r.addEventListener("mousedown",i),document.addEventListener("scroll",e,{capture:!0}),t&&(r.addEventListener("blur",i),r.addEventListener("active-descendant-blur",i)),null===d&&(d=(0,o.createGroup)({desc:"Tooltip"}),d.add({desc:"Hide",hotkey:27,handler:i}));break}}}function f(){(0,a.empty)(),c=!1,u=null}const _=(e,t)=>{if((0, s.clearSchedule)(),(0,i.ensureNotNull)(h).disconnect(),!u)return;if(!e&&!c)return;const{element:n,options:r}=u,o=()=>{n.removeEventListener("mouseleave",o),l.hideTooltip(n),e?f():(0,s.scheduleRemove)((()=>{f()}),250),t?.()};r.tooltipHideDelay?(0,s.scheduleHide)((()=>{n.querySelector(":hover")?n.addEventListener("mouseleave",o):o()}),r.tooltipHideDelay):o()};function y(e){const{options:t}=(0,i.ensureNotNull)(u);if(l.setStyle(e,t),l.showTooltip(e),(0,i.ensureNotNull)(h).observe(document,{childList:!0,subtree:!0}),c=!0,t.forceHideOnMove){const e=()=>{document.removeEventListener("mousemove",e),document.removeEventListener("touchmove",e),_()};document.addEventListener("mousemove",e),document.addEventListener("touchmove",e)}}function v(e){return e&&(e.nodeType===Node.ELEMENT_NODE?e:null)}function b(e){if(function(e){return"content"in e}(e))return e;const{inner:t,html:n,text:r,...i}=e;let o={type:"none"};return t&&(o={type:"element",data:t}),r&&(o={type:n?"html":"text",data:r}),{content:o,...i}}},62889:(e,t,n)=>{"use strict";n.d(t,{copyrightLabel:()=>c});var r,i=n(444372),o=n(497754),s=n(536794),a=n(995683),l=n(828133);function c({svgText:e,icon:t,theme:c,url:u,mode:d,verticalPosition:h=r.Vertical.Bottom,horizontalPosition:p=r.Horizontal.End,snapToEdge:m=!0,isExpanded:g=!1,className:f}){let _;switch(d){case"new":case"with_border":case"large_trade":_=(0,s.clone)(c);break;default:_=(0,a.mergeThemes)((0,s.clone)(l),c)}const y=document.createElement("span");let v;u&&(v=document.createElement("a"),v.classList.add(..._.label__link.split(/\s/)),v.href=u,v.target="_blank",v.rel="noopener noreferrer",v.setAttribute("data-target-type","copyright"),v.ariaLabel=i.t(null,void 0,n(15572)),y.append(v)),y.className=o(_.label,p===r.Horizontal.Start&&_.start,p===r.Horizontal.End&&_.end,h===r.Vertical.Top&&_.top,h===r.Vertical.Bottom&&_.bottom,m&&"large_trade"!==d&&_.snap,"large_old"===d&&_.large,(g||"large_trade"===d)&&_.expanded,f,"js-copyright-label"),y.addEventListener("click",(()=>{function e(){y.classList.remove(_.expandedByClick),y.removeEventListener("mouseleave",e)}y.classList.contains(_.expandedWithTransition)||y.classList.contains(_.expanded)||(y.classList.contains(_.expandedByClick)?u||e():(y.classList.add(_.expandedByClick),y.addEventListener("mouseleave",e)))}));const b=document.createElement("span");b.className=_.logoWrap,b.innerHTML=t;const w=document.createElement("span");return w.className=_.svgTextWrap,w.innerHTML=e,y.append(b,w),[y,_]}!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={}))}(r||(r={}))},351079:(e,t,n)=>{"use strict";n.d(t,{createCopyrightLabel:()=>s});var r=n(497754),i=n(62889),o=n(952598);function s({sheriffOptions:e,...t}){const[n,s]=(0,i.copyrightLabel)(t),a=e&&e.includes(o.KnownAction.Expand),l=e&&e.includes(o.KnownAction.LargeTradeLogo);return n.className=r(n.className,(a||l)&&s.expandedWithTransition),n}},952598:(e,t,n)=>{"use strict";var r;n.d(t,{KnownAction:()=>r, widgetSheriffActions:()=>i}),function(e){e.Expand="expand-logo",e.LargeTradeLogo="large-trade-logo"}(r||(r={}));const i=new Set([r.Expand,r.LargeTradeLogo])},871591:(e,t,n)=>{"use strict";n.d(t,{createFloatingTooltip:()=>s});var r=n(735566),i=n(490716);const o=(0,r.getLogger)("useFloatingTooltip");function s(e){const{coloredBorderVisible:t,lightweightMiniChart:r,tooltipContainer:s,crosshairMoveDataGetter:a=i.getCrosshairMoveData,reversePrices:l=!1}=e;let c,u=!1;if(s){const{position:e}=window.getComputedStyle(s),t=["relative","fixed","absolute"];t.includes(e)||o.logWarn("Container position property must be: "+t.join(", "))}let d;const h=e=>{const i=a(r,e);let o;if(l&&i&&i.prices&&(i.prices=i.prices.slice().reverse()),i){const{point:e,...n}=i;o={...n,cursorPosition:{x:r.widget().priceScale("left").width()+e.x,y:e.y},lineColor:t?n.prices[0]?.color:void 0}}c?c.update(o):(d=d||(async()=>{const e=await Promise.all([n.e(51727),n.e(82321),n.e(10748)]).then(n.bind(n,667704));u||(c=new e.FloatingPriceTimeTooltipRenderer(s??void 0,r.innerContainer()))})(),d.then((()=>c?.update(o))))};return r.subscribeCrosshairMove(h),()=>{u=!0,c?.destroy(),r.unsubscribeCrosshairMove(h)}}},293659:(e,t,n)=>{"use strict";n.d(t,{MiniChartPlotBase:()=>F,isTimePointIndex:()=>M,seriesHorzMarginsDefaults:()=>D});var r=n(259332),i=n(305152),o=n(998034),s=n(283873),a=n(650151),l=n(724377),c=n(735566),u=n(536794),d=n(444372),h=n(44049),p=n(534328),m=n(623213),g=n(927435),f=n(68777),_=n(820028),y=n(547465),v=n(51196),b=n(707771),w=n(955722),S=n(388741),x=n(751094),C=n(133691);const L=(0,c.getLogger)("Chart.MiniChart"),T=new v.VolumeFormatter;function k(e,t,n){return{time:e,color:n,value:t[4]}}function E(e,t){return{time:e,open:t[1],high:t[2],low:t[3],close:t[4]}}function O(e,t,n,r,i){return{time:e,topColor:r,bottomColor:i,lineColor:n,value:t[4]}}function I(e){const t=new Date(e);return Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds())/1e3}function M(e){return(0,u.isInteger)(e)}const V=(0,r.default)(p.resetTransparency);const D={leftLogical:-.5,rightLogical:-.5,leftPx:0,rightPx:4};function A(e){if(0===e.series.length)return null;const t=e.series[0],n=t.value??t.close,r=e.series[e.series.length-1],i=r.value??r.close;return{first:{value:n,time:t.time},last:{value:i,time:r.time}}}class F{constructor(e,t,n,r){this._symbolChanged=new y.Delegate,this._seriesChanged=new y.Delegate,this._whitespaces=null,this._symbolResolved=new y.Delegate,this._originalScaleMode=null,this._customPriceFormatter=null,this._isDestroyed=new _.WatchedValue(!1),this._status=new _.WatchedValue(0),this._noData=new _.WatchedValue(null),this._directionBasedColor=new _.WatchedValue(null),this._dataLengthInfo=null,this._sessionId=new _.WatchedValue,this._barBuilderLoader=null,this._symbolInfo=null,this._symbol={symbol:""},this._minBarIndex=null,this._maxBarIndex=null,this._lastValue=new _.WatchedValue(null),this._isVisible=new _.WatchedValue(!1),this._id=(0,m.randomHash)(),this._timeFrameInvalidated=new y.Delegate,this._firstValueCache=null, this._firstBarTime=new _.WatchedValue(null),this._historyUpdateReceived=!1,this._miniChart=e,this._originalSeriesOptions=t,this._currentSeriesOptions=(0,o.default)({},t),this._options=r,this._series=this._createSeries(),this._originalVolumeOptions=n,this._volume=this._createVolume(),this._timeFrame=e.timeframe().spawn(),this._timeFrame.subscribe(this._updateSessionId.bind(this)),this._currentlyShownDataDescription=new x.WatchedObject({timeframe:this._timeFrame.value(),symbol:this.symbol()}),this._isLastSessionInterval=(0,f.combine)((e=>"LASTSESSION"===(0,C.convertTimeFrameToStr)(e)),this._miniChart.timeframe().weakReference()),this._isLastSessionInterval.subscribe(this._updateSessionId.bind(this)),this._miniChart.timeScaleSizeChanged().subscribe(null,this._timeScaleSizeChanged.bind(this)),this._status.subscribe((e=>{3!==e&&this._lastValue.setValue(null)}))}destroy(){this._status.unsubscribe(),this._timeFrame.destroy(),this._isDestroyed.setValue(!0),this._isLastSessionInterval.destroy(),this._barBuilderLoader?.destroy()}id(){return this._id}status(){return this._status.readonly()}noData(){return this._noData.readonly()}symbolInfo(){return this._symbolInfo}symbol(){return this._symbol.symbol}subSession(){return this._sessionId.value()}setSymbol(e,t){(0,s.default)(e)&&(e={...this._symbol,symbol:e}),void 0!==t&&this._updateSeriesOptions(t),(0,w.compareSymbols)(this._symbol,e)||(this._symbol=e,this._updateSessionId(),this._symbolChanged.fire())}extendedSymbol(){return{...this._symbol,session:this._sessionId.value()}}updateSeriesOptions(e){let t=!1;void 0!==e.chartType&&this._originalSeriesOptions.chartType!==e.chartType?t=!0:"line"!==this._originalSeriesOptions.chartType&&"area"!==this._originalSeriesOptions.chartType||(t="postmarketLineColor"in e&&this._originalSeriesOptions.postmarketLineColor!==e.postmarketLineColor||"premarketLineColor"in e&&this._originalSeriesOptions.premarketLineColor!==e.premarketLineColor),this._updateSeriesOptions(e),t?this._onChartStyleChanged():this._series.applyOptions(e)}applyOptions(e){(0,o.default)(this._options,e)}symbolResolved(){return this._symbolResolved}symbolChanged(){return this._symbolChanged}seriesChanged(){return this._seriesChanged}timeFrameInvalidated(){return this._timeFrameInvalidated}restoreOriginalScaleMode(){null!==this._originalScaleMode&&this._series.priceScale().applyOptions({mode:this._originalScaleMode})}switchToPercentageScaleMode(){null===this._originalScaleMode&&(this._originalScaleMode=this._series.priceScale().options().mode),this._series.priceScale().applyOptions({mode:i.PriceScaleMode.Percentage})}chartSession(){return this._miniChart.chartSession()}currentSeriesOptions(){return this._currentSeriesOptions}volumeOptions(){return this._originalVolumeOptions}series(){return this._series}volume(){return this._originalVolumeOptions.visible?this._volume:null}updateData(e,t,n){e&&this.clearSourceData();const r=this._originalSeriesOptions,i=this._buildViewData(n),o=i.series.length;this._historyUpdateReceived=this._historyUpdateReceived||void 0===n, void 0!==n||"area"!==r.chartType&&"line"!==r.chartType||(this._firstValueCache=i.series[0]?.value??null);const s=this._historyUpdateReceived&&null===this._dataLengthInfo;if(void 0!==n&&!s){const e=this._dataLengthInfo;if(null===e)return;const t={...e};e.lastBarSession=i.lastBarSession;let n=null;for(const t of i.series)this._series.update(t),(null===e.lastBarTime||e.lastBarTimee.time>n));-1===t?(e.whitespaces=0,this._updateWhitespaces([])):0!==t&&(e.whitespaces-=t,this._updateWhitespaces(this._whitespacesData.slice(t)))}null!==n&&(void 0!==e.fixLeftEdgeUntil?(this._isMainPlot()&&e.fixLeftEdgeUntil>=n&&this._miniChart.fitContent(),n>e.fixLeftEdgeUntil&&(e.history+=e.realtime-1,e.realtime=0,e.fixLeftEdgeUntil=void 0,e.timeFrameInvalidated=!0,this._timeFrameInvalidated.fire())):e.timeFrameInvalidated||(e.timeFrameInvalidated=!0,this._timeFrameInvalidated.fire())),this._updateSeriesColor(i.series[i.series.length-1]),this._dataUpdated(i,e,t);const r=A(i);return void(null!==r&&this._lastValue.setValue(r.last.value))}const a=i.whitespaces,l=a?.length??0;this._dataLengthInfo={history:o,realtime:0,lastBarIndex:0===o?null:o-1,lastBarTime:0===o?null:i.series[o-1].time,whitespaces:l,fixLeftEdgeUntil:i.fixLeftEdgeUntil,timeFrameInvalidated:!1,lastBarSession:i.lastBarSession},this._updateSeriesColor(0===o?void 0:i.series[o-1]),this._series.applyOptions(this._currentSeriesOptions),this._applyPriceScaleFormatter(),t||this._beforeDataReady(),this._series.setData(i.series),i.additionalSeries&&this._setAdditionalSeriesData(i.additionalSeries),i.volume&&this._volume.setData(i.volume),this._updateWhitespaces(i.whitespaces),this._dataUpdated(i,this._dataLengthInfo);const c=A(i);if(null!==c){const{first:e,last:t}=c;this._lastValue.setValue(t.value),this._firstBarTime.setValue(e.time)}}titles(){return this._currentSeriesOptions.title?[this._currentSeriesOptions.title]:[]}deleteView(){this._series.setData([]),this._whitespaces?.setData([]),this._volume.setData([])}clearData(){this._symbolInfo=null,this._historyUpdateReceived=!1,this._dataLengthInfo=null,this._firstValueCache=null,this._customPriceFormatter=null,this._status.setValue(0),this._noData.setValue(null),this._directionBasedColor.setValue(null)}resolution(){return this._miniChart.resolution()}minBarIndex(){return this._minBarIndex}maxBarIndex(){return this._maxBarIndex}forcePercentageMode(){return!1}lastBarTime(){return this._dataLengthInfo?.lastBarTime??void 0}getViewData(e){return this._buildViewData(e)}getLegendData(e){const{point:t,time:r,seriesData:i}=e,o=this.series(),s=this.volume();if(void 0===t||void 0===r)return[];const l=i.get(o);if(void 0===l)return[];const c=[],u=o.priceFormatter(),h=this.currentSeriesOptions();if(!1===h.visible)return[] ;if("Area"===o.seriesType()||"Line"===o.seriesType()||"Baseline"===o.seriesType()||"legend"===h.tooltipType||"line"===h.tooltipType){const{value:e}=l;let t;t="area"===h.chartType?l.lineColor:l.color;const n=this.symbolInfo(),r=h.color||h.lineColor;c.push({title:h.tooltipTitle||n?.name||"",value:u.format(e),color:t||r,unit:h.showUnit?(0,g.prepareCurrencyValue)({currency_code:n?.currency_code,unit_id:n?.unit_id,value_unit_id:n?.value_unit_id,measure:n?.measure}):void 0})}else{const{open:e,high:t,low:r,close:i}=l,s=function(e,t){const n=e?t.up:t.down;return V(n)}(i>=e,(0,a.ensureDefined)(this._miniChart.upDownColors()[o.seriesType()]));[[d.t(null,{context:"in_legend"},n(746728)),u.format(e)],[d.t(null,{context:"in_legend"},n(943253)),u.format(t)],[d.t(null,{context:"in_legend"},n(389923)),u.format(r)],[d.t(null,{context:"in_legend"},n(102696)),u.format(i)]].forEach((([e,t])=>{c.push({value:t,title:e,color:s})}))}const m=s&&i.get(s),f=this.volumeOptions();if(m){const{value:e,color:t}=m;c.push({title:f.tooltipTitle??d.t(null,{context:"in_legend"},n(971060)),value:T.format(e),color:f.ignoreColor?void 0:t&&(0,p.resetTransparency)(t),unit:f.showUnit?this.symbolInfo()?.currency_code:void 0})}return c}lastValue(){return this._lastValue.readonly()}firstBarTime(){return this._firstBarTime.readonly()}isVisible(){return this._isVisible.readonly()}symbolName(){return this._symbol.symbol}lineColor(){const e=this.currentSeriesOptions();return"line"===e.chartType?e.color??"":"area"===e.chartType?e.lineColor??"":void(0,a.assert)(!1,`Unexpected chart type: ${e.chartType}`)}isDestroyed(){return this._isDestroyed.readonly()}_isMainPlot(){return!1}_onChartStyleChanged(){this._recreateSeries(),3===this._status.value()&&this.updateData(!1,!0)}_beforeDataReady(){this._currentlyShownDataDescription.setValue({timeframe:this._timeFrame.value(),symbol:this.symbol()})}_dataUpdated(e,t,n){}_onSymbolResolved(e){this._barBuilderLoader?.destroy(),this._barBuilderLoader=null,this._symbolInfo=e,this._symbolResolved.fire(this._symbolInfo)}_getViewData(e,t){const n=[],r={series:[],volume:n};let i=-1/0;const o=this._bars();if(o.isEmpty())return r;const s=this.minBarIndex(),a=this.maxBarIndex();if(null===s||null===a)return r;const l=t??(M(s)?s:o.firstIndex()),c=o.lastIndex();if(null===l||null===c)return r;let u;const{premarketLineColor:d,postmarketLineColor:h,premarketTopColor:p,premarketBottomColor:m,postmarketTopColor:g,postmarketBottomColor:f}=this._getPrePostMarketColors(),_=e=>{switch(e){case 0:return[d,p,m];case 1:return[h,g,f];default:return[]}};for(const t of o.rangeIterator(l,c)){const{value:o,index:s}=t;if(s<=b.UNPLOTTABLE_TIME_POINT_INDEX)continue;const a=this._miniChart.indexToTime(s);if(null===a){L.logWarn(`Couldn't find time for index ${s}`);continue}const l=I(1e3*a);if(l<=i)continue;i=l,u=l;const c=this._barIndexSession(s);r.lastBarSession=c,r.series.push(e(l,o,..._(c)));const d=o[4]>=o[1]?this._originalVolumeOptions.upColor:this._originalVolumeOptions.downColor;n.push({time:l,value:o[5],color:d})} if(this._isMainPlot()&&void 0===t&&void 0!==u)switch((0,C.convertTimeFrameToStr)(this._timeFrame.value())){case"1D":r.fixLeftEdgeUntil=u+86400-1;break;case"LASTSESSION":{let e=[],t=u+87840-1;const n=this._generateBarsToSessionEnd();n?.length&&null!==a&&a>c&&(e=n,t=n[n.length-1].time),r.fixLeftEdgeUntil=t,r.whitespaces=e}}return r}_buildViewData(e){switch(this._originalSeriesOptions.chartType){case"histogram":{const e=this._currentSeriesOptions;return this._getViewData(((t,n)=>function(e,t,n,r){const i=t[4];return{time:e,color:i>0?n:r,value:i}}(t,n,e.upColor,e.downColor)))}case"line":return this._getViewData(k,e);case"area":case"baseline":return this._getViewData(O,e);case"bars":case"candlesticks":return this._getViewData(E,e)}}_setAdditionalSeriesData(e){}_updateAdditionalSeriesData(e){}_barIndexSession(e){}_onSymbolError(e){L.logWarn((0,w.encodeExtendedSymbolOrGetSimpleSymbolString)(this._symbol)+" symbol resolving error: "+e),this.updateData(!0),this._status.setValue(1)}_onSymbolNotPermitted(){this._noData.setValue(1)}_onIntradaySpreadNotPermitted(){this._status.setValue(2),this._noData.setValue(4),this._isMainPlot()&&this._miniChart.showMessage(d.t(null,void 0,n(753434)))}_onSymbolGroupNotPermitted(){this._noData.setValue(1)}_onSymbolInvalid(){this._noData.setValue(0)}_onResolutionOrExchangeNotPermittedError(){L.logError((0,w.encodeExtendedSymbolOrGetSimpleSymbolString)(this._symbol)+" resolution or exchange permission error"),this.updateData(!0),this._isMainPlot()&&this._miniChart.showMessage(d.t(null,void 0,n(284259))),setTimeout((()=>this._miniChart.updateAvailableTimeframes()),1e3)}_onDataError(){1!==this._status.value()&&this._status.setValue(2),this._noData.setValue(3)}_onDataCompleted(){this._status.setValue(3),this._noData.setValue(0===this._bars().size()?2:null),2===this._noData.value()&&this._isMainPlot()&&this._miniChart.showMessage(d.t(null,void 0,n(212938)))}async _onData(e,t){null!==this.minBarIndex()&&null!==this.maxBarIndex()&&this.updateData(!1,void 0,e)}_updateSeriesOptions(e){this._originalSeriesOptions=(0,o.default)(this._originalSeriesOptions,e),this._currentSeriesOptions=(0,o.default)(this._currentSeriesOptions,this._originalSeriesOptions),this._updateSeriesColor(),void 0!==this._currentSeriesOptions.visible&&this._isVisible.setValue(this._currentSeriesOptions.visible)}_recreateSeries(){const e=this._miniChart.widget();e.removeSeries(this._series),e.removeSeries(this._volume),this._whitespaces&&(e.removeSeries(this._whitespaces),this._whitespaces=null),this._series=this._createSeries(),this._volume=this._createVolume(),this._seriesChanged.fire()}_initBarBuilder(e){return null===this._barBuilderLoader&&(this._barBuilderLoader=new h.AsyncResourceWrapper(Promise.all([n.e(85182),n.e(13498),n.e(40309),n.e(96003)]).then(n.bind(n,397796)).then((t=>new t.LightweightMiniChartBarBuilder(e))))),this._barBuilderLoader.promise()}_firstAndLastValuesForSeriesColor(e,t){if(null===this._firstValueCache||!this._dataLengthInfo)return null;if("line"!==e&&"area"!==e)return null ;const n=null===this._dataLengthInfo.lastBarIndex?null:this._series.dataByIndex(this._dataLengthInfo.lastBarIndex);return null!==n||t?(t=t??n,[this._firstValueCache,t.value]):null}_updateSeriesColor(e){const t=this._originalSeriesOptions,n=t.chartType,r=this._firstAndLastValuesForSeriesColor(n,e);if(null===r)return;const[i,o]=r;if("line"===n||"area"===n){const e="line"===n?o>=i:o>i;if("area"===n){const n=this._currentSeriesOptions;e?(n.lineColor=t.growingLineColor||t.lineColor,n.topColor=t.growingTopColor||t.topColor,n.bottomColor=t.growingBottomColor||t.bottomColor):(n.lineColor=t.fallingLineColor||t.lineColor,n.topColor=t.fallingTopColor||t.topColor,n.bottomColor=t.fallingBottomColor||t.bottomColor),n.lineColor||(n.lineColor=this._series.options().lineColor),this._series.applyOptions({topColor:n.topColor,bottomColor:n.bottomColor,lineColor:n.lineColor}),this._directionBasedColor.setValue(n.lineColor)}else if("line"===n){const{color:n,growingColor:r=n,fallingColor:i=n}=t,o=this._currentSeriesOptions;o.color=e?r:i,o.color||(o.color=this._series.options().color),this._series.applyOptions({color:o.color}),this._directionBasedColor.setValue(o.color)}}}_priceFormat(){const e=this._symbolInfo??this._miniChart.mainPlot().symbolInfo();return null===e?null:function(e){const t=(0,S.createSeriesFormatter)(e,"default");return{type:"custom",minMove:e.minmov/e.pricescale,formatter:e=>t.format(e)}}(e)}_createSeries(){const e=this._miniChart.widget();let t;switch(this._currentSeriesOptions.chartType){case"line":t=e.addSeries(i.LineSeries,this._currentSeriesOptions);break;case"histogram":t=e.addSeries(i.HistogramSeries,this._currentSeriesOptions);break;case"area":t=e.addSeries(i.AreaSeries,this._currentSeriesOptions);break;case"bars":t=e.addSeries(i.BarSeries,this._currentSeriesOptions);break;case"candlesticks":t=e.addSeries(i.CandlestickSeries,this._currentSeriesOptions);break;case"baseline":t=e.addSeries(i.BaselineSeries,this._currentSeriesOptions)}return null===this._originalScaleMode&&(this._originalScaleMode=t.priceScale().options().mode),this._isVisible.setValue(t.options().visible),t.priceScale().applyOptions({scaleMargins:this._currentSeriesOptions.scaleMargins}),t}_createVolume(){const e=this._miniChart.widget().addSeries(i.HistogramSeries,this._originalVolumeOptions);return e.priceScale().applyOptions({scaleMargins:this._originalVolumeOptions.scaleMargins}),e}_applyPriceScaleFormatter(){if("priceFormat"in this._originalSeriesOptions)return;const e=this._priceFormat();e&&(this._currentSeriesOptions.priceFormat=e,this._series.applyOptions(this._currentSeriesOptions))}_updateSessionId(){this._sessionId.setValue(this._isLastSessionInterval.value()?"extended":this._symbol.session)}_updateWhitespaces(e){void 0===e||0===e.length?null!==this._whitespaces&&(this._miniChart.widget().removeSeries(this._whitespaces),this._whitespaces=null):(null===this._whitespaces&&(this._whitespaces=this._miniChart.widget().addSeries(i.LineSeries)),this._whitespacesData=null===this._whitespaces?void 0:e,this._whitespaces.setData(e))} _generateBarsToSessionEnd(){const e=this.symbolInfo(),t=this._bars().lastIndex(),n=this.maxBarIndex();if(e&&t&&n&&this._isLastSessionInterval.value()){let e=this._miniChart.indexToTime(t);if(null===e)return;const r=[];for(let i=t+1;i<=n;i+=1){const t=this._miniChart.indexToTime(i)??e+60;r.push({time:I(1e3*t)}),e=t}return r}}_getPrePostMarketColors(){if(!this._isMainPlot())return{};let e,t,n,r;const i=this._originalSeriesOptions.premarketLineColor,o=this._originalSeriesOptions.postmarketLineColor;if("area"===this._originalSeriesOptions.chartType&&i&&o){const s=this._currentSeriesOptions,a=s.growingTopColor||s.fallingTopColor||s.topColor;if(void 0!==a){const t=(0,l.tryParseRgba)(a);if(null!==t){const r=t[3];e=(0,p.applyAlpha)(i,r),n=(0,p.applyAlpha)(o,r)}}const c=s.growingBottomColor||s.fallingBottomColor||s.bottomColor;if(void 0!==c){const e=(0,l.tryParseRgba)(c);if(null!==e){const n=e[3];t=(0,p.applyAlpha)(i,n),r=(0,p.applyAlpha)(o,n)}}}return{premarketLineColor:i,postmarketLineColor:o,premarketTopColor:e,postmarketTopColor:n,premarketBottomColor:t,postmarketBottomColor:r}}_timeScaleSizeChanged(){this._isMainPlot()&&Promise.resolve().then((()=>this._miniChart.fitContent()))}}},490716:(e,t,n)=>{"use strict";function r(e,t){const{point:n,time:r,seriesData:i}=t;if(void 0===n||void 0===r)return;const o=e.mainPlot(),s=o.series();if(void 0===i.get(s))return;let a;const l=[],c=o.currentSeriesOptions();if(a="Area"===s.seriesType()||"Line"===s.seriesType()?c.tooltipType||"line":c.tooltipType||"ohlc",l.push(...o.getLegendData(t)),e.studyPlots().forEach((e=>{l.push(...e.getLegendData(t))})),0===l.length)return;const u=c.tooltipLegendColorOrder;u?.size&&l.sort(((e,t)=>{const n=u.get(e.color)??-1,r=u.get(t.color)??-1;return(n>-1?n:1/0)-(r>-1?r:1/0)}));const d=new Date(1e3*r);let h=e.dateTimeFormatter().format(d,{dateTimeSeparator:"\n"});return e.isDWMResolution()||(h+=" "+function(e){if(0===e)return"UTC";const t=Math.abs(e),n=Math.floor(t/60),r=t-60*n;return`UTC${Math.sign(e)<=0?"+":"-"}${n}${r>0?`:${r}`:""}`}(d.getTimezoneOffset())),{point:n,time:h,prices:l,type:a}}n.d(t,{getCrosshairMoveData:()=>r})},133691:(e,t,n)=>{"use strict";function r(e){return"period-back"===e.type?e.value:"r,"+e.from+":"+e.to}function i(e){const t=/r,(\d+):(\d+)/.exec(e);return null!==t?{from:Number(t[1]),to:Number(t[2]),type:"time-range"}:{value:e,type:"period-back"}}n.d(t,{convertStrToTimeFrame:()=>i,convertTimeFrameToStr:()=>r})},941285:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>o});n(140987);var r=n(760863),i=n(685023);class o{constructor(e){this._shown=!1,this._el=(0,r.parseHtmlElement)(function(e=""){return`
`}()),this.setSize(i.spinnerSizeMap[e||i.DEFAULT_SIZE])}spin(e){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=e,void 0!==e&&e.appendChild(this._el)),this._shown=!0,this}stop(e){return e&&void 0!==this._container&&this._container.removeChild(this._el),this._el&&this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this}setStyle(e){ return Object.keys(e).forEach((t=>{const n=e[t];void 0!==n&&this._el.style.setProperty(t,n)})),this}style(){return this._el.style}setSize(e){const t=void 0!==e?`tv-spinner--size_${e}`:"";return this._el.className=`tv-spinner ${t} ${this._shown?"tv-spinner--shown":""}`,this}getEl(){return this._el}destroy(){this.stop(),delete this._el,delete this._container}}},596080:(e,t,n)=>{"use strict";var r,i;n.d(t,{IFrameEvents:()=>i}),function(e){let t;!function(e){e.SetSymbol="set-symbol",e.SetInterval="set-interval"}(t=e.Names||(e.Names={}))}(r||(r={})),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={}))}(i||(i={}))},410899:(e,t,n)=>{"use strict";function r(e,t,n){const r={name:e,frameElementId:t,data:n};window.parent.postMessage(r,"*")}n.d(t,{dispatchEventToParent:()=>r})},746849:(e,t,n)=>{"use strict";n.d(t,{checkIfExchangeAvailable:()=>o});n(142492);var r=n(406103);function i(e){if(!(0,r.isIDCExchange)(e))return!1;e=s(e);const t=window.pro,n=t.getProduct(e);return void 0!==n.idc_service_codes_delay&&((!Array.isArray(n.included_exchanges)||!n.included_exchanges.some((e=>t.hasPackage(s(e)))))&&!function(e){const t=window.pro;return t.hasPackage(e)||t.hasPackage(e+"_dly")}(e))}function o(e){const t=window.pro;return new Promise((n=>{window.is_authenticated?!t.getIDCExchanges(!0).length||t.isInvalidShopConf()?t.updateShopConf().then((()=>{n(!i(e))})).catch((()=>{n(!0)})):n(!i(e)):n(!0)}))}function s(e){return e.startsWith("exchange-")?e:"exchange-{0}".format(e.toLowerCase())}},630440:(e,t,n)=>{"use strict";n.d(t,{getWarningTextForFreeUsers:()=>i});var r=n(444372);function i(){return window.is_authenticated?r.t(null,void 0,n(401369)):r.t(null,void 0,n(668083))}},406103:(e,t,n)=>{"use strict";n.d(t,{isIDCExchange:()=>i});var r=n(184026);function i(e,t=!1){if(e&&e.startsWith("exchange-"))return function(e,t=!1){const n=window.pro?.getProduct(e);return!(void 0===n||!(0,r.isProductDefined)(n)||(t?!n.idc_service_codes_delay:!n.idc_service_codes))}(e,t);const n=(e||"").toLowerCase();return window.pro?.getIDCExchanges(t)?.includes(n)??!1}},599612:(e,t,n)=>{"use strict";n.d(t,{check:()=>l});var r=n(212363),i=n(803912),o=n(778016),s=n(746849),a=n(261963);function l(e,t=!0){return new Promise(((n,l)=>{const c=(0,r.getExchange)(e);c?(0,s.checkIfExchangeAvailable)(c).then((r=>r?n(e):(0,o.enabled)("IDC_AVAILABLE_DELAY")?t?void(0,i.fetch)(`/idc-sign-agreement-check/${c}/`,{credentials:"include"}).then((t=>t.json().then((t=>t.res===a.SymbolAvailabilityCodes.DELAY_NOT_AVAILABLE?l({exchange:c,errCode:t.res,reason:"delay not available",symbol:e}):t.res===a.SymbolAvailabilityCodes.NEED_SIGN_AGREEMENT?l({exchange:c,errCode:t.res,reason:"need sign agreement",symbol:e}):t.res===a.SymbolAvailabilityCodes.NEED_ADD_SERVICE?l({exchange:c,errCode:t.res,reason:"need add service",symbol:e}):n(e))))).catch((()=>{n(e)})):n(e):l({exchange:c, errCode:a.SymbolAvailabilityCodes.DELAY_NOT_AVAILABLE,reason:"delay not available",symbol:e}))):n(e)}))}},261963:(e,t,n)=>{"use strict";n.d(t,{SymbolAvailabilityCodes:()=>r});const r=JSON.parse('{"OK":"OK","ERR":"ERR","SYMBOL_NOT_AVAILABLE_FOR_ANON":"SYMBOL_NOT_AVAILABLE_FOR_ANON","DELAY_NOT_AVAILABLE":"DELAY_NOT_AVAILABLE","NEED_SIGN_AGREEMENT":"NEED_SIGN_AGREEMENT","NEED_ADD_SERVICE":"NEED_ADD_SERVICE"}')},62802:(e,t,n)=>{"use strict";n.d(t,{getJSON:()=>V,getValue:()=>M,keys:()=>P,remove:()=>D,setJSON:()=>F});var r=n(735566),i=n(125226),o=n(192784),s=(n(638456),n(803912)),a=n(482030),l=n(226722),c=n(49437),u=n(547465),d=n(931924);window.TradingView=window.TradingView||{};const h=["s.tradingview.com","betacdn.tradingview.com"],p=(d.enabled("use_localstorage_for_settings"),"local"===window.environment?5e3:12e4),m=10,g=window.TradingView.onWidget?.()?"tradingview-widget":"tradingview",f=g+".";let _,y,v,b=!1,w=null,S={},x=[];const C=[/^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/];const L=()=>!(w||window.is_authenticated),T=e=>f+e,k=(0,r.getLogger)("Lib.TVSettings"),E=e=>{if(b||v)return;if((0,i.isFeatureEnabled)("disable_save_settings"))return void k?.logWarn("Settings flashing has been skipped because of disable_save_settings featuretoggle");if(d.enabled("widget"))return;if(L())return;if(0===x.length)return;const t=x;x=[];const n={};for(let e=t.length;e--;){const r=t[e];n[r]=S[r]??null}const r=new FormData;r.append("delta",JSON.stringify(n)),e&&navigator.sendBeacon?navigator.sendBeacon("/savesettings/",r):(0,s.fetch)("/savesettings/",{method:"POST",credentials:"include",body:r}).then((n=>{if(n.ok||(x=x.concat(t)),[429,503].includes(n.status)){const t=1e3*+(n.headers.get("retry-after")||0)||3e5;v=setTimeout((()=>{v=void 0,E(e)}),t)}})).catch((()=>{x=x.concat(t)}))},O=()=>{_=void 0,x.length&&E()},I=(e,t={})=>{if(w)null==S[e]?w.removeValue(e):w.setValue(e,S[e]);else if(L())try{null==S[e]?c.TVLocalStorage.removeItem(T(e)):c.TVLocalStorage.setItem(T(e),S[e])}catch(e){}else x.push(e),_||(_=setTimeout(O,p));t.skipCrossWindowEvent||l.TVXWindowEvents.emit("settings",JSON.stringify({key:e,value:S[e]}))};function M(e,t){const n=S[e];return n??t}function V(e,t){const n=M(e);if(null==n)return t;try{return JSON.parse(n)}catch(n){return D(e),t}}function D(e,t={}){return null!=S[e]&&(delete S[e],I(e)),t.forceFlush&&E(),U}function A(e,t,n={}){const r=""+t;return S[e]!==r&&(S[e]=r,I(e,n)),n.forceFlush&&!y&&(y=setTimeout((()=>{y=void 0,E()}),m)),U}function F(e,t,n){return A(e,JSON.stringify(t),n),U}function P(){return Object.keys(S)} l.TVXWindowEvents.on("settings",(e=>{const t=JSON.parse(e);null==t.value?delete S[t.key]:S[t.key]=t.value}));const N=e=>{for(let t=0;te.substring(0,f.length)===f,R=e=>{S={};const t=0===Object.keys(e).length;t||(e=>{Object.keys(e).forEach((t=>{S[t]=e[t]+""}))})(e),(e=>{for(let t=c.TVLocalStorage.length;t--;){const n=c.TVLocalStorage.key(t);n&&B(n)&&(e&&A(n.substring(f.length),c.TVLocalStorage.getItem(n)),c.TVLocalStorage.removeItem(n))}})(t)},$=new u.Delegate;const U={loaded:!1,loadedModel:!1,getValue:M,getJSON:V,getBool:function(e,t){const n=M(e);return null==n?t:!(!n||"false"===n||0==+n)},getFloat:function(e,t){const n=M(e);if(null==n)return t;const r=parseFloat(n);if(!isFinite(r))throw new TypeError('"'+n+'" is not float (key: "'+e+'")');return r},getInt:function(e,t){const n=M(e);if(null==n)return t;const r=parseInt(n,10);if(!isFinite(r))throw new TypeError('"'+n+'" is not int (key: "'+e+'")');return r},setValue:A,setJSON:F,remove:D,keys:P,keysMask:function(e){const t=P(),n=[],r=new RegExp("^"+(0,a.regExpEscape)(e).replace(/\\\*\\\*/gi,".+").replace(/\\\*/gi,"[^.]+")+"$","gi");for(let e=t.length-1;e>=0;e--)r.test(t[e])&&n.push(t[e]),r.lastIndex=0;return n},sync:function(e){null!==e?(w?R(w.initialSettings||{}):L()?((()=>{if(!window.TradingView.onWidget?.()||!h.includes(window.location.host))return;const e="tradingview.";for(let t=c.TVLocalStorage.length;t--;){const n=c.TVLocalStorage.key(t);if(0===n.indexOf(e)){const t=n.replace(e,g+".");c.TVLocalStorage.setItem(t,c.TVLocalStorage.getItem(n)),c.TVLocalStorage.removeItem(n)}}})(),(()=>{S={};const e=!d.enabled("save_chart_properties_to_local_storage");for(let t=c.TVLocalStorage.length;t--;){const n=c.TVLocalStorage.key(t);if(!n||!B(n))continue;const r=n.substring(f.length);e&&!N(r)||(S[r]=c.TVLocalStorage.getItem(n))}})()):R(e||{}),$.fire()):b=!0},onSync:$,setSettingsAdapter:function(e){w=e}};window.TVSettings=U,document.addEventListener("visibilitychange",(()=>{"hidden"!==document.visibilityState&&!0!==document.hidden||E()})),window.addEventListener("pagehide",(()=>{E(!0)})),window.addEventListener("beforeunload",(()=>{E(!0)})),o.flushDelegate.subscribe(null,(()=>{E()})),setTimeout((async()=>{const{clearOldSettings:e}=await n.e(30362).then(n.bind(n,276141));e()}),3e4)},889267:(e,t,n)=>{"use strict";n.d(t,{isSpread:()=>u,shortNameFromTokens:()=>d,tokenize:()=>l});var r=n(173777),i=n(125226);const o=/(?:[^-+\/*^\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:o,incompleteSymbol:/'[^']*/,separatorPrefix:r.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=[],r=Object.keys(t);let i;const o=a(t);for(;i=o.exec(e);){let e=!1;for(let t=r.length;t--;)if(i[t+1]){r[t]&&n.push({value:i[t+1],type:r[t],precedence:0,offset:i.index}),e=!0;break}e||n.push({value:i[0],type:"unparsed",precedence:0,offset:i.index})}return n}function c(e){return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function u(e){return e.length>1&&e.some((e=>c(e.type)))}function d(e){return function(e){e=function(e){const t=[];for(const n of e)"whitespace"!==n.type&&t.push(n);return t}(e);const t=[],n=[];let r;for(let i=0;io.precedence&&(n[n.length-1].minPrecedence=o.precedence);break;case"openBrace":r={minPrecedence:1/0,openBraceIndex:i},n.push(r);break;case"closeBrace":{if(r=n.pop(),!r)break;const o=e[r.openBraceIndex-1],s=e[i+1],a=o&&("plus"===o.type||"multiply"===o.type);(!c(s?.type)||s?.precedence<=r.minPrecedence)&&(!c(o?.type)||o?.precedencer.minPrecedence&&(n[n.length-1].minPrecedence=r.minPrecedence))}}}for(let n=t.length;n--;)e.splice(t[n],1);return e}(e).reduce(((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,n]=function(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);if(null===t)return[void 0,void 0];return[t[1],t[2]]}(t);return n?e+n:e}),"")}},17966:(e,t,n)=>{"use strict";n.d(t,{getCircleLogoAnyHtml:()=>r.getCircleLogoAnyHtml});var r=n(467236)},607546:(e,t,n)=>{"use strict";n.d(t,{getLogoUrlsHook:()=>r.getLogoUrlsHook});var r=n(526639)},526639:(e,t,n)=>{"use strict";n.d(t,{getLogoUrlsHook:()=>o});var r=n(849204);const i=(0,r.getLogoUrlResolver)();function o(e,t){let n=!1;return(o,a,l)=>{const c=o["currency-logoid"]&&o["base-currency-logoid"];if(!n&&(o.logoid||c||l)){n=!0;const a=function(e){if(2!==e.length)return e;if(function(e){return e.some((e=>s(e)))}(e)&&!function(e){return e.some((e=>e.includes("country")&&!s(e)))}(e))return e.filter((e=>!s(e)));return e}(function(e,t=r.LogoSize.Medium){const n=e.logoid,o=e["base-currency-logoid"],s=e["currency-logoid"],a=n&&i.getSymbolLogoUrl(n,t);if(a)return[a];const l=o&&i.getSymbolLogoUrl(o,t),c=s&&i.getSymbolLogoUrl(s,t);return l&&c?[l,c]:l?[l]:c?[c]:[]}({logoid:o.logoid,"base-currency-logoid":o["base-currency-logoid"],"currency-logoid":o["currency-logoid"]},t));e(a)}}}function s(e){return e.includes("country/US")}},547465:(e,t,n)=>{"use strict";n.d(t,{Delegate:()=>o});const r=(0,n(735566).getLogger)("Common.Delegate");function i(e){return!e.singleShot}class o{constructor(){this.fire=this._fireImpl.bind(this),this._listeners=[]}subscribe(e,t,n){this._listeners.push({object:e,member:t,singleShot:!!n,skip:!1})}unsubscribe(e,t){ for(let n=0;n=0;--t){const n=this._listeners[t];n.object===e&&(n.skip=!0,this._listeners.splice(t,1))}}destroy(){this._listeners=[]}_fireImpl(...e){const t=this._listeners;this._listeners=this._listeners.filter(i);const n=t.length;for(let i=0;i{"use strict";function r(e){const t=e;return t.release=()=>t.destroy(),t.ownership=()=>t,t}n.d(t,{ownership:()=>r})},212363:e=>{"use strict";var t=[{d:"E-Mini S&P 500",t:"ES"},{d:"E-Mini Nasdaq 100",t:"NQ"},{d:"Gold",t:"GC"},{d:"Silver",t:"SI"},{d:"Crude Oil WTI",t:"CL"},{d:"Natural Gas",t:"NG"},{d:"Australian Dollar",t:"6A"},{d:"Australian Dollar (Floor)",t:"AD"},{d:"Euro FX",t:"6E"},{d:"Euro FX (Floor)",t:"EC"},{d:"Corn",t:"ZC"},{d:"Corn (Floor)",t:"C"},{d:"Eurodollar",t:"GE"},{d:"Eurodollar (Floor)",t:"ED"}],n=function(){var e=[{pattern:"(",ctor:o},{pattern:")",ctor:s},{pattern:"+",ctor:l},{pattern:"-",ctor:c},{pattern:"*",ctor:u},{pattern:"/",ctor:d},{pattern:"^",ctor:h},{pattern:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,ctor:f},{pattern:/\./,ctor:v},{pattern:/[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF][a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&]*|'.+?'/,ctor:g},{pattern:/'[^']*/,ctor:y},{pattern:/[\0-\x20\s]+/,ctor:i}];function n(e,t){var n=function(){};return n.prototype=t.prototype,e.prototype=new n,e}function r(){}function i(e){this.value=e}function o(){}function s(){}function a(){}function l(){}function c(){}function u(){}function d(){}function h(){}r.prototype.toString=function(){return this.value},n(i,r),n(o,r),o.prototype.value="(",n(s,r),s.prototype.value=")",n(a,r),n(l,a),l.prototype.value="+",l.prototype.precedence=0,l.prototype.commutative=!0,n(c,a),c.prototype.value="-",c.prototype.precedence=0,c.prototype.commutative=!1,n(u,a),u.prototype.value="*",u.prototype.precedence=1,u.prototype.commutative=!0,n(d,a),d.prototype.value="/",d.prototype.precedence=1,d.prototype.commutative=!1,n(h,a),h.prototype.value="^",h.prototype.precedence=2,h.prototype.commutative=!1;var p=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i,m=/[+\-/*]/;function g(e){this.value=e}function f(e){this.value=e}function _(e){this.value=e}function y(){g.apply(this,arguments)}function v(){f.apply(this,arguments)}n(g,r),g.prototype.toString=function(){if(this.hasOwnProperty("_ticker")){var e=m.test(this._ticker)?"'":"";return e+(this._exchange?this._exchange+":":"")+this._ticker+e}return this.value},g.prototype.parse=function(){var e=p.exec(this.value);e[1]&&(this._exchange=e[1]),this._ticker=e[2]},g.prototype.parseAsFutures=function(){this.hasOwnProperty("_ticker")||this.parse();for(var e=function(e){return t.some((function(t){return t.t===e}))},n=2;n>=1;--n){var r=this._ticker.slice(0,n);if(e(r)){this._root=r,this._contract=this._ticker.slice(n);break}}}, g.prototype.exchange=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._exchange;null==e?delete this._exchange:this._exchange=e+""},g.prototype.ticker=function(e){if(this.hasOwnProperty("_ticker")||this.parse(),!(arguments.length>0))return this._ticker;null==e?delete this._ticker:this._ticker=e+"",delete this._root,delete this._contract},g.prototype.root=function(e){if(this.hasOwnProperty("_root")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._root:(this._root=e+"",this._root&&(this._ticker=this._root+(this._contract||"")))},g.prototype.contract=function(e){if(this.hasOwnProperty("_contract")||this.parseAsFutures(),!(arguments.length>0))return this._root;null==e?delete this._contract:(this._contract=e+"",this._root&&(this._ticker=this._root+this._contract))},n(f,r),f.prototype.toString=function(){return this.hasOwnProperty("_normalizedValue")?this._normalizedValue:this.value},f.prototype.parse=function(){this._normalizedValue=this.value.replace(/^0+|\.0*$/g,"").replace(/(\.\d*?)0+$/,"$1").replace(/^(\.|$)/,"0$1")},_.prototype.toString=function(){return this.value},n(y,g),y.prototype.isIncomplete=!0,y.prototype.incompleteSuggest=function(){if("'"!==this.value)return String("'")},n(v,f),v.prototype.isIncomplete=!0;var b=new RegExp(e.map((function(e){return"("+("string"==typeof e.pattern?e.pattern.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&"):e.pattern.source)+")"})).concat(".").join("|"),"g");function w(t,n){var r,o=[];e:for(;r=b.exec(t);){for(var s=e.length;s--;)if(r[s+1]){if(e[s].ctor){var a=new e[s].ctor(r[s+1]);a._offset=r.index,o.push(a)}continue e}var l=new _(r[0]);l._offset=r.index,o.push(l)}if(n&&n.recover){var c;for(s=o.length;s--;){var u=o[s];if(u instanceof f||u instanceof g){if(void 0!==c){var d=new g(""),h=o.splice(s,c-s+1,d);d.value=h.map((function(e){return e.value})).join("")}c=s}else u instanceof i||(c=void 0)}}return o}function S(e){for(var t=[],n=0;nl.precedence&&(r[r.length-1].minPrecedence=l.precedence);else if(l instanceof o)r.push(t={minPrecedence:1/0,openBraceIndex:i});else if(l instanceof s){var c=e[(t=r.pop()).openBraceIndex-1],u=e[i+1];u instanceof a&&!(u.precedence<=t.minPrecedence)||!(!(c instanceof a)||c.precedencet.minPrecedence&&(r[r.length-1].minPrecedence=t.minPrecedence))}}for(i=n.length;i--;)e.splice(n[i],1);return e}function C(e){if("string"!=typeof e)throw new TypeError("expression must be a string");return(e=w(e)).filter((function(e){return e instanceof g})).map((function(e){return e.exchange()})).filter((function(e){return e}))}function L(e){return 1!==(e=C(e)).length?null:e[0]}function T(e,t){return(e=C(e)).some((function(e){return t.includes((e||"").toUpperCase())}))}function k(e){ return e.join("")}return{tokenize:w,validate:function(e){for(var t="init",n="var",r=t,l={warnings:[],errors:[],isEmpty:!0},c=[],u=0;u{"use strict";n.d(t,{ WatchedValue:()=>r.WatchedValue});var r=n(158942)},955722:(e,t,n)=>{"use strict";n.d(t,{compareSymbols:()=>p,encodeExtendedSymbolOrGetSimpleSymbolString:()=>u,extractExtendedSymbol:()=>d,replaceExtendedSymbol:()=>m});var r=n(536794);function i(e){return"="+JSON.stringify(o(e))}function o(e){return Object.keys(e).sort().reduce(((t,n)=>("[object Object]"===Object.prototype.toString.call(e[n])?t[n]=o(e[n]):t[n]=e[n],t)),{})}function s(e){return(0,r.isString)(e)}function a(e){return!s(e)&&"inputs"in e}function l(e){return!s(e)&&"replay"in e}function c(e){return l(e)||function(e){return!s(e)&&l(e.symbol)}(e)}function u(e){return a(e)||c(e)||e.session||e.adjustment||e["currency-id"]||e["unit-id"]?i(e):e.symbol}function d(e){if(s(e))return{symbol:e};let t=e;for(;!s(t.symbol);)t=t.symbol;return t}const h=["symbol","session","unit-id","currency-id","adjustment","backadjustment","settlement-as-close"];function p(e,t){return h.every((n=>e[n]===t[n]))}function m(e,t){let n=e;for(;!s(n.symbol);)n=n.symbol;n.symbol=t}},608571:(e,t,n)=>{"use strict";n.d(t,{dateFormatFunctions:()=>_,getDateFormatWithWeekday:()=>y});var r=n(444372),i=n(39654),o=n(909456);const s={1:()=>r.t(null,void 0,n(562310)),2:()=>r.t(null,void 0,n(302507)),3:()=>r.t(null,void 0,n(92767)),4:()=>r.t(null,void 0,n(227072)),5:()=>r.t(null,{context:"short"},n(13132)),6:()=>r.t(null,void 0,n(800429)),7:()=>r.t(null,void 0,n(853786)),8:()=>r.t(null,void 0,n(546450)),9:()=>r.t(null,void 0,n(806816)),10:()=>r.t(null,void 0,n(912179)),11:()=>r.t(null,void 0,n(526899)),12:()=>r.t(null,void 0,n(532084))},a={1:()=>r.t(null,void 0,n(914568)),2:()=>r.t(null,void 0,n(913534)),3:()=>r.t(null,void 0,n(914530)),4:()=>r.t(null,void 0,n(903762))},l=(e,t)=>(t?e.getMonth():e.getUTCMonth())+1,c=(e,t)=>t?e.getFullYear():e.getUTCFullYear(),u=(e,t)=>e.toLocaleDateString(window.language?(0,i.getIsoLanguageCodeFromLanguage)(window.language):void 0,{weekday:"short",timeZone:"local"===t?void 0:t}),d=(e,t)=>a[((e,t)=>Math.floor((l(e,t)-1)/3)+1)(e,t)](),h=(e,t)=>(0,o.numberToStringWithLeadingZero)(((e,t)=>t?e.getDate():e.getUTCDate())(e,t),2),p=(e,t)=>s[l(e,t)](),m=(e,t)=>(0,o.numberToStringWithLeadingZero)(l(e,t),2),g=(e,t)=>(0,o.numberToStringWithLeadingZero)(c(e,t)%100,2),f=(e,t)=>(0,o.numberToStringWithLeadingZero)(c(e,t),4),_={"qq 'yy":(e,t)=>`${d(e,t)} '${g(e,t)}`,"qq yyyy":(e,t)=>`${d(e,t)} ${f(e,t)}`,"dd MMM 'yy":(e,t)=>`${h(e,t)} ${p(e,t)} '${g(e,t)}`,"MMM 'yy":(e,t)=>`${p(e,t)} '${g(e,t)}`,"MMM dd, yyyy":(e,t)=>`${p(e,t)} ${h(e,t)}, ${f(e,t)}`,"MMM yyyy":(e,t)=>`${p(e,t)} ${f(e,t)}`,"MMM dd":(e,t)=>`${p(e,t)} ${h(e,t)}`,"dd MMM":(e,t)=>`${h(e,t)} ${p(e,t)}`,"yyyy-MM-dd":(e,t)=>`${f(e,t)}-${m(e,t)}-${h(e,t)}`,"yy-MM-dd":(e,t)=>`${g(e,t)}-${m(e,t)}-${h(e,t)}`,"yy/MM/dd":(e,t)=>`${g(e,t)}/${m(e,t)}/${h(e,t)}`,"yyyy/MM/dd":(e,t)=>`${f(e,t)}/${m(e,t)}/${h(e,t)}`,"dd-MM-yyyy":(e,t)=>`${h(e,t)}-${m(e,t)}-${f(e,t)}`,"dd-MM-yy":(e,t)=>`${h(e,t)}-${m(e,t)}-${g(e,t)}`,"dd/MM/yy":(e,t)=>`${h(e,t)}/${m(e,t)}/${g(e,t)}`,"dd/MM/yyyy":(e,t)=>`${h(e,t)}/${m(e,t)}/${f(e,t)}`, "MM/dd/yy":(e,t)=>`${m(e,t)}/${h(e,t)}/${g(e,t)}`,"MM/dd/yyyy":(e,t)=>`${m(e,t)}/${h(e,t)}/${f(e,t)}`};function y(e,t){return"ja"===window.language?(n,r)=>`${_[e](n,r)} (${u(n,t)})`:(n,r)=>`${u(n,t)} ${_[e](n,r)}`}Object.keys(_)},870855:(e,t,n)=>{"use strict";new Set([3,6,7,8,9,11]),new Set([1,2])},67231:(e,t,n)=>{"use strict";n.d(t,{getTimeFormatForInterval:()=>i});var r=n(74752);function i(e,t){if(e.isRange())return function(e){return"12-hours"===e?r.twelveHourMinuteNonZeroSecondFormat:r.hourMinuteNonZeroSecondFormat}(t);if(e.isTicks())return r.hourMinuteSecondMillisecFormat;return e.isSeconds()||e.isTicks()?function(e){return"12-hours"===e?r.twelveHourMinuteSecondFormat:r.hourMinuteSecondFormat}(t):function(e){return"12-hours"===e?r.twelveHourMinuteFormat:r.hourMinuteFormat}(t)}},804617:(e,t,n)=>{"use strict";async function r(e,t,r,i,o,s){return(await Promise.all([n.e(37117),n.e(98185),n.e(61681),n.e(98933),n.e(98158),n.e(50874),n.e(30869),n.e(88620),n.e(76072),n.e(82321),n.e(70978),n.e(11233)]).then(n.bind(n,427929))).createTabLabelsImp(e,t,r,i,o,s)}n.d(t,{createTabLabels:()=>r})},780664:(e,t,n)=>{"use strict";n.d(t,{frameElementId:()=>i});const r=window.initData.hashSettings||{},i="string"==typeof r.frameElementId?r.frameElementId:null},534328:(e,t,n)=>{"use strict";n.d(t,{applyAlpha:()=>o,applyTransparency:()=>a,generateColor:()=>i,resetTransparency:()=>l});var r=n(724377);function i(e,t,n){if(t=t||0,!c(e))return n?(0,r.rgbaToString)((0,r.rgba)((0,r.parseRgb)(e),(0,r.normalizeAlphaComponent)(s(t)))):e;const[i,o,a]=(0,r.parseRgb)(e),l=(0,r.normalizeAlphaComponent)(s(t));return(0,r.rgbaToString)([i,o,a,l])}function o(e,t,n){const i=(0,r.tryParseRgba)(e);if(null===i)throw new Error(`Invalid color: ${e}`);const[o,s,a,l]=i,c=(0,r.normalizeAlphaComponent)(t*(n?l:1));return(0,r.rgbaToString)((0,r.rgba)([o,s,a],c))}function s(e){if(e<0||e>100)throw new Error("invalid transparency");return 1-e/100}function a(e,t){if("transparent"===e)return e;const n=(0,r.parseRgba)(e),i=n[3];return(0,r.rgbaToString)((0,r.rgba)(n[0],n[1],n[2],s(t)*i))}function l(e){return"transparent"===e?e:c(e)?e.slice(0,7):(0,r.rgbaToString)((0,r.rgba)((0,r.parseRgb)(e),(0,r.normalizeAlphaComponent)(1)))}function c(e){return 0===e.indexOf("#")}},969680:(e,t,n)=>{"use strict";n.d(t,{forceLTRStr:()=>l,isRtl:()=>r,stripLTRMarks:()=>a});n(64531);const r=()=>"rtl"===window.document.dir,i="‪",o="‬",s=new RegExp("‎|"+i+"|‫|"+o,"g");function a(e){return""!==e&&r()&&null!=e?e.replace(s,""):e}function l(e){return""!==e&&r()&&null!=e?i+e+o:e}},184026:(e,t,n)=>{"use strict";var r;function i(e){return!(!e||!Object.keys(e).length)}n.d(t,{isProductDefined:()=>i}),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={}))},224528:(e,t,n)=>{"use strict";function r(){try{return JSON.parse(decodeURIComponent(location.hash.substring(1)))}catch(e){return{}}}n.d(t,{parseUrlHashParams:()=>r})},779893:(e,t,n)=>{const r=n(647793);e.exports=r,r(document).ajaxSend(((e,t,n)=>{ n.crossDomain&&!n.forceLanguageHeader||(window.locale?t.setRequestHeader("X-Language",window.locale):console.warn("window.locale is not defined"))}))},981191:(e,t,n)=>{"use strict";n.d(t,{getMiniTimeFrameOptions:()=>a});var r=n(873146);const i=Date.now();function o(e){const t=new Date(i);return t.setMonth(t.getMonth()-e),Math.trunc(t.valueOf()/1e3)}function s(e){const t=new Date(i);return t.setFullYear(t.getFullYear()-e),Math.trunc(t.valueOf()/1e3)}function a(e){const t=(0,r.getTimeFrames)();return[{...t[e?"lastsession":"1d"]},{...t["1m"],targetResolution:"1D",from:o(1)},{...t["3m"],targetResolution:"1D",from:o(3)},{...t["12m"],from:s(1)},{...t["60m"],targetResolution:"1M",from:s(5)},{...t.all}]}},873146:(e,t,n)=>{"use strict";n.d(t,{getTimeFrames:()=>o});var r=n(444372),i=n(737986);function o(e){return{"1d":{text:r.t(null,void 0,n(207075)),value:{value:"1D",type:"period-back"},targetResolution:e?.["1D"]??(0,i.stringAsResolution)("1"),description:(0,i.daysStringLiteral)(1)},"5d":{text:r.t(null,void 0,n(558628)),value:{value:"5D",type:"period-back"},targetResolution:e?.["5D"]??(0,i.stringAsResolution)("5"),description:(0,i.daysStringLiteral)(5)},"1w":{text:r.t(null,void 0,n(189696)),value:{value:"7D",type:"period-back"},targetResolution:e?.["5W"]??(0,i.stringAsResolution)("15"),description:(0,i.weeksStringLiteral)(1)},"1m":{text:r.t(null,void 0,n(333493)),value:{value:"1M",type:"period-back"},targetResolution:e?.["1M"]??(0,i.stringAsResolution)("30"),description:(0,i.monthsStringLiteral)(1)},"3m":{text:r.t(null,void 0,n(318717)),value:{value:"3M",type:"period-back"},targetResolution:e?.["3M"]??(0,i.stringAsResolution)("60"),description:(0,i.monthsStringLiteral)(3)},"6m":{text:r.t(null,void 0,n(869411)),value:{value:"6M",type:"period-back"},targetResolution:e?.["6M"]??(0,i.stringAsResolution)("120"),description:(0,i.monthsStringLiteral)(6)},"12m":{text:r.t(null,void 0,n(186322)),value:{value:"12M",type:"period-back"},targetResolution:e?.["12M"]??(0,i.stringAsResolution)("1D"),description:(0,i.yearsStringLiteral)(1)},"24m":{text:r.t(null,void 0,n(745391)),value:{value:"24M",type:"period-back"},targetResolution:e?.["24M"]??(0,i.stringAsResolution)("1W"),description:(0,i.yearsStringLiteral)(2)},"36m":{text:r.t(null,void 0,n(189992)),value:{value:"36M",type:"period-back"},targetResolution:e?.["36M"]??(0,i.stringAsResolution)("1W"),description:(0,i.yearsStringLiteral)(3)},"60m":{text:r.t(null,void 0,n(772834)),value:{value:"60M",type:"period-back"},targetResolution:e?.["60M"]??(0,i.stringAsResolution)("1W"),description:(0,i.yearsStringLiteral)(5)},"120m":{text:r.t(null,void 0,n(27969)),value:{value:"120M",type:"period-back"},targetResolution:e?.["120M"]??(0,i.stringAsResolution)("1M"),description:(0,i.yearsStringLiteral)(10)},ytd:{text:r.t(null,void 0,n(168881)),value:{value:"YTD",type:"period-back"},targetResolution:e?.YTD??(0,i.stringAsResolution)("1D"),description:r.t(null,void 0,n(251478))},all:{text:r.t(null,void 0,n(580066)),value:{value:"ALL",type:"period-back"},targetResolution:e?.ALL??(0,i.stringAsResolution)("1M") },lastsession:{text:r.t(null,void 0,n(207075)),value:{value:"LASTSESSION",type:"period-back"},targetResolution:e?.LASTSESSION??(0,i.stringAsResolution)("1"),description:(0,i.daysStringLiteral)(1)}}}},737986:(e,t,n)=>{"use strict";n.d(t,{daysStringLiteral:()=>i,monthsStringLiteral:()=>s,stringAsResolution:()=>l,weeksStringLiteral:()=>o,yearsStringLiteral:()=>a});var r=n(444372);const i=e=>r.t(null,{plural:"{str} days",count:e,replace:{str:`${e}`}},n(862368)),o=e=>r.t(null,{plural:"{str} weeks",count:e,replace:{str:`${e}`}},n(149306)),s=e=>r.t(null,{plural:"{str} months",count:e,replace:{str:`${e}`}},n(520062)),a=e=>r.t(null,{plural:"{str} years",count:e,replace:{str:`${e}`}},n(791549)),l=e=>e},412541:(e,t,n)=>{"use strict";n.d(t,{getActualTimeFrame:()=>i});var r=n(873146);function i(e){const t=new Set(Object.values((0,r.getTimeFrames)()).map((e=>e.value.value)));if(t.has(e))return e;const n=e.toUpperCase();return t.has(n)?n:"12M"}},950668:(e,t,n)=>{"use strict";n.d(t,{timeFrames:()=>r});const r=(0,n(873146).getTimeFrames)()},623213:(e,t,n)=>{"use strict";n.r(t),n.d(t,{guid:()=>o,randomHash:()=>s,randomHashN:()=>a});const r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function o(){return r.replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(){return a(12)}function a(e){let t="";for(let n=0;n{"use strict";function r(e,t){const n=Object.create(Object.getPrototypeOf(e));for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}n.d(t,{pickFields:()=>r})},437861:(e,t,n)=>{"use strict";n.d(t,{handleTVLinksClick:()=>s});var r=n(439563),i=n(283834),o=n(974629);function s(){document.addEventListener("click",(e=>{const t=e.target.closest(":link");if(!t?.hostname||!(0,o.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}}(),o=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:o,link:e,target_type:t};!async function(e){(await(0,r.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}},631013:(e,t,n)=>{"use strict";n.d(t,{trackWidgetLoadMetaInfo:()=>i});var r=n(439563);async function i(e){Math.random()>.005||(await(0,r.getEmbedWidgetTracker)())?.trackWidgetLoadMetaInfo(e)}},108999:e=>{ e.exports=''}}]);