(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3504],{3196:e=>{e.exports={"tv-circle-logo":"tv-circle-logo-PsAlMQQF","tv-circle-logo--xxxsmall":"tv-circle-logo--xxxsmall-PsAlMQQF","tv-circle-logo--xxsmall":"tv-circle-logo--xxsmall-PsAlMQQF","tv-circle-logo--xsmall":"tv-circle-logo--xsmall-PsAlMQQF","tv-circle-logo--small":"tv-circle-logo--small-PsAlMQQF","tv-circle-logo--medium":"tv-circle-logo--medium-PsAlMQQF","tv-circle-logo--large":"tv-circle-logo--large-PsAlMQQF","tv-circle-logo--xlarge":"tv-circle-logo--xlarge-PsAlMQQF","tv-circle-logo--xxlarge":"tv-circle-logo--xxlarge-PsAlMQQF","tv-circle-logo--xxxlarge":"tv-circle-logo--xxxlarge-PsAlMQQF","tv-circle-logo--visually-hidden":"tv-circle-logo--visually-hidden-PsAlMQQF"}},53330:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 430px)"}},2908:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",item:"item-jFqVJoPk",hovered:"hovered-jFqVJoPk",isDisabled:"isDisabled-jFqVJoPk",isActive:"isActive-jFqVJoPk",shortcut:"shortcut-jFqVJoPk",toolbox:"toolbox-jFqVJoPk",withIcon:"withIcon-jFqVJoPk","round-icon":"round-icon-jFqVJoPk",icon:"icon-jFqVJoPk",labelRow:"labelRow-jFqVJoPk",label:"label-jFqVJoPk",showOnHover:"showOnHover-jFqVJoPk","disclosure-item-circle-logo":"disclosure-item-circle-logo-jFqVJoPk",showOnFocus:"showOnFocus-jFqVJoPk"}},53885:(e,t,o)=>{"use strict";o.d(t,{getStyleClasses:()=>r,isCircleLogoWithUrlProps:()=>a});var n=o(97754),i=o(3196),l=o.n(i);function r(e,t){return n(l()["tv-circle-logo"],l()[`tv-circle-logo--${e}`],t)}function a(e){return"logoUrl"in e&&null!==e.logoUrl&&void 0!==e.logoUrl&&0!==e.logoUrl.length}},39416:(e,t,o)=>{"use strict";o.d(t,{useFunctionalRefObject:()=>l});var n=o(50959),i=o(43010);function l(e){const t=(0,n.useMemo)((()=>function(e){const t=o=>{e(o),t.current=o};return t.current=null,t}((e=>{a.current(e)}))),[]),o=(0,n.useRef)(null),l=t=>{if(null===t)return r(o.current,t),void(o.current=null);o.current!==e&&(o.current=e,r(o.current,t))},a=(0,n.useRef)(l);return a.current=l,(0,i.useIsomorphicLayoutEffect)((()=>{if(null!==t.current)return a.current(t.current),()=>a.current(null)}),[e]),t}function r(e,t){null!==e&&("function"==typeof e?e(t):e.current=t)}},43010:(e,t,o)=>{"use strict";o.d(t,{useIsomorphicLayoutEffect:()=>i});var n=o(50959);function i(e,t){("undefined"==typeof window?n.useEffect:n.useLayoutEffect)(e,t)}},27267:(e,t,o)=>{"use strict";function n(e,t,o,n,i){function l(i){if(e>i.timeStamp)return;const l=i.target;void 0!==o&&null!==t&&null!==l&&l.ownerDocument===n&&(t.contains(l)||o(i))}return i.click&&n.addEventListener("click",l,!1),i.mouseDown&&n.addEventListener("mousedown",l,!1),i.touchEnd&&n.addEventListener("touchend",l,!1),i.touchStart&&n.addEventListener("touchstart",l,!1),()=>{n.removeEventListener("click",l,!1),n.removeEventListener("mousedown",l,!1),n.removeEventListener("touchend",l,!1),n.removeEventListener("touchstart",l,!1)}}o.d(t,{ addOutsideEventListener:()=>n})},36383:(e,t,o)=>{"use strict";o.d(t,{useOutsideEvent:()=>r});var n=o(50959),i=o(43010),l=o(27267);function r(e){const{click:t,mouseDown:o,touchEnd:r,touchStart:a,handler:s,reference:c}=e,d=(0,n.useRef)(null),h=(0,n.useRef)("undefined"==typeof window?0:new window.CustomEvent("timestamp").timeStamp);return(0,i.useIsomorphicLayoutEffect)((()=>{const e={click:t,mouseDown:o,touchEnd:r,touchStart:a},n=c?c.current:d.current;return(0,l.addOutsideEventListener)(h.current,n,s,document,e)}),[t,o,r,a,s]),c||d}},9745:(e,t,o)=>{"use strict";o.d(t,{Icon:()=>i});var n=o(50959);const i=n.forwardRef(((e,t)=>{const{icon:o="",title:i,ariaLabel:l,ariaLabelledby:r,ariaHidden:a,...s}=e,c=!!(i||l||r);return n.createElement("span",{...s,ref:t,role:"img","aria-label":l,"aria-labelledby":r,"aria-hidden":a||!c,title:i,dangerouslySetInnerHTML:{__html:o}})}))},99663:(e,t,o)=>{"use strict";o.d(t,{Slot:()=>i,SlotContext:()=>l});var n=o(50959);class i extends n.Component{shouldComponentUpdate(){return!1}render(){return n.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const l=n.createContext(null)},90186:(e,t,o)=>{"use strict";function n(e){return l(e,r)}function i(e){return l(e,a)}function l(e,t){const o=Object.entries(e).filter(t),n={};for(const[e,t]of o)n[e]=t;return n}function r(e){const[t,o]=e;return 0===t.indexOf("data-")&&"string"==typeof o}function a(e){return 0===e[0].indexOf("aria-")}o.d(t,{filterAriaProps:()=>i,filterDataProps:()=>n,filterProps:()=>l,isAriaAttribute:()=>a,isDataAttribute:()=>r})},67961:(e,t,o)=>{"use strict";o.d(t,{OverlapManager:()=>l,getRootOverlapManager:()=>a});var n=o(50151);class i{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter((t=>e!==t))}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class l{constructor(e=document){this._storage=new i,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,o=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,o),this._container=o}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const o=this._windows.get(e);if(void 0!==o)return o;this.registerWindow(e);const n=this._document.createElement("div");if(n.style.position=t.position,n.style.zIndex=this._index.toString(),n.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(n);else if(t.index<=0)this._container.insertBefore(n,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(n,e)}}else"reverse"===t.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(e,n),++this._index,n}unregisterWindow(e){this._storage.remove(e) ;const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){const t=this.ensureWindow(e);this._windows.forEach(((e,o)=>{e.hasAttribute("data-focus-trap")&&e.setAttribute("data-focus-trap",e===t?"true":"false")})),t.style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const r=new WeakMap;function a(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,n.ensureDefined)(r.get(t));{const t=new l(e),o=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return r.set(o,t),t.setContainer(o),e.body.appendChild(o),t}}var s;!function(e){e[e.BaseZindex=150]="BaseZindex"}(s||(s={}))},99054:(e,t,o)=>{"use strict";o.d(t,{setFixedBodyState:()=>c});const n=(()=>{let e;return()=>{var t;if(void 0===e){const o=document.createElement("div"),n=o.style;n.visibility="hidden",n.width="100px",n.msOverflowStyle="scrollbar",document.body.appendChild(o);const i=o.offsetWidth;o.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",o.appendChild(l);const r=l.offsetWidth;null===(t=o.parentNode)||void 0===t||t.removeChild(o),e=i-r}return e}})();function i(e,t,o){null!==e&&e.style.setProperty(t,o)}function l(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function r(e,t){return parseInt(l(e,t))}let a=0,s=!1;function c(e){const{body:t}=document,o=t.querySelector(".widgetbar-wrap");if(e&&1==++a){const e=l(t,"overflow"),a=r(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(i(o,"right",`${n()}px`),t.style.paddingRight=`${a+n()}px`,s=!0),t.classList.add("i-no-scroll")}else if(!e&&a>0&&0==--a&&(t.classList.remove("i-no-scroll"),s)){i(o,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=n()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},24437:(e,t,o)=>{"use strict";o.d(t,{DialogBreakpoints:()=>i});var n=o(53330);const i={SmallHeight:n["small-height-breakpoint"],TabletSmall:n["tablet-small-breakpoint"],TabletNormal:n["tablet-normal-breakpoint"]}},59369:(e,t,o)=>{"use strict";o.d(t,{useRowsNavigation:()=>c});var n=o(50959),i=o(50151),l=o(19291),r=o(68335),a=o(57177);const s=[37,39,38,40];function c(e){const t=(0,n.useRef)(null);return(0,n.useLayoutEffect)((()=>{const e=(0,i.ensureNotNull)(t.current),o=()=>{const o=(0,l.queryTabbableElements)(e).sort(l.navigationOrderComparator);if(0===o.length||o[0].parentElement&&!u(o[0].parentElement,(0,i.ensureNotNull)(t.current))){const n=function(e){const o=h(e).sort(l.navigationOrderComparator).find((e=>u(e,(0,i.ensureNotNull)(t.current))));if(!o)return null;const n=Array.from(o.children);if(!n.length)return null;return n[0]}(e);if(null===n)return;if((0,a.becomeMainElement)(n),o.length>0)for(const e of o)(0,a.becomeSecondaryElement)(e)}} ;return window.addEventListener("keyboard-navigation-activation",o),o(),()=>window.removeEventListener("keyboard-navigation-activation",o)}),[]),[t,function(t){if(t.defaultPrevented)return;const o=(0,r.hashFromEvent)(t);if(!s.includes(o))return;const n=document.activeElement;if(!(n instanceof HTMLElement))return;const i=t.currentTarget;let a,c;if(e){const e=n.parentElement;a=e?Array.from(e.children):[],c=a.indexOf(n)}else a=(u=i,Array.from(u.querySelectorAll("button:not([disabled]):not([aria-disabled])")).filter((0,l.createScopedVisibleElementFilter)(u))).sort(l.navigationOrderComparator),c=a.indexOf(n);var u;if(0===a.length||-1===c)return;const g=(0,l.mapKeyCodeToDirection)(o);switch(g){case"inlinePrev":if(t.preventDefault(),!e&&0===c)break;v(d(a,c,-1));break;case"inlineNext":if(t.preventDefault(),!e&&c===a.length-1)break;v(d(a,c,1));break;case"blockPrev":case"blockNext":(o=>{if(!document.activeElement)return;const n=h(i),l=document.activeElement.parentElement;if(!l)return;const r=Array.from(l.children).indexOf(document.activeElement);if(-1===r)return;const a=n["blockNext"===o?n.indexOf(l)+1:n.indexOf(l)-1];if(!a)return;t.preventDefault();const s=Array.from(a.children);s.length&&(!e&&r<=s.length-1?v(s[r]):v(s[0]))})(g)}}]}function d(e,t,o){return e[(t+e.length+o)%e.length]}function h(e){return Array.from(e.querySelectorAll('[data-role="row"]')).filter((0,l.createScopedVisibleElementFilter)(e))}function u(e,t){const o=(0,i.ensureNotNull)(e.parentElement).offsetTop,n=o+(0,i.ensureNotNull)(e.parentElement).clientHeight,l=t.scrollTop,r=l+t.clientHeight;return o>=l&&n<=r}function v(e){document.activeElement&&(0,a.becomeSecondaryElement)(document.activeElement),(0,a.becomeMainElement)(e),e.focus()}},59695:(e,t,o)=>{"use strict";o.d(t,{CircleLogo:()=>a,hiddenCircleLogoClass:()=>r});var n=o(50959),i=o(53885),l=o(3196);const r=o.n(l)()["tv-circle-logo--visually-hidden"];function a(e){var t,o;const l=(0,i.getStyleClasses)(e.size,e.className),r=null!==(o=null!==(t=e.alt)&&void 0!==t?t:e.title)&&void 0!==o?o:"";return(0,i.isCircleLogoWithUrlProps)(e)?n.createElement("img",{className:l,crossOrigin:"",src:e.logoUrl,alt:r,title:e.title,loading:e.loading,"aria-label":e["aria-label"],"aria-hidden":e["aria-hidden"]}):n.createElement("span",{className:l,title:e.title,"aria-label":e["aria-label"],"aria-hidden":e["aria-hidden"]},e.placeholderLetter)}},77975:(e,t,o)=>{"use strict";o.d(t,{useWatchedValueReadonly:()=>i});var n=o(50959);const i=(e,t=!1)=>{const o="watchedValue"in e?e.watchedValue:void 0,i="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[l,r]=(0,n.useState)(o?o.value():i);return(t?n.useLayoutEffect:n.useEffect)((()=>{if(o){r(o.value());const e=e=>r(e);return o.subscribe(e),()=>o.unsubscribe(e)}return()=>{}}),[o]),l}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>d,PopupMenuItem:()=>u});var n=o(50959),i=o(97754),l=o(51768),r=o(59064),a=o(59695),s=o(76460),c=o(2908);const d=c;function h(e){e.stopPropagation()}function u(e){ const{id:t,role:o,className:d,title:u,labelRowClassName:v,labelClassName:g,toolboxClassName:m,shortcut:f,forceShowShortcuts:p,icon:w,iconClassname:x,isActive:L,isDisabled:T,isHovered:b,appearAsDisabled:y,label:z,link:A,showToolboxOnHover:M,showToolboxOnFocus:C,target:E,rel:k,toolbox:P,reference:S,onMouseOut:F,onMouseOver:D,onKeyDown:N,suppressToolboxClick:_=!0,theme:K=c,tabIndex:I,tagName:V,renderComponent:H,roundedIcon:R,iconAriaProps:O,circleLogo:B,dontClosePopup:Z,onClick:j,onClickArg:Q,trackEventObject:W,trackMouseWheelClick:q,trackRightClick:J,...U}=e,G=(0,n.useRef)(null),$=(0,n.useMemo)((()=>function(e){function t(t){const{reference:o,...i}=t,l=null!=e?e:i.href?"a":"div",r="a"===l?i:function(e){const{download:t,href:o,hrefLang:n,media:i,ping:l,rel:r,target:a,type:s,referrerPolicy:c,...d}=e;return d}(i);return n.createElement(l,{...r,ref:o})}return t.displayName=`DefaultComponent(${e})`,t}(V)),[V]),X=null!=H?H:$;return n.createElement(X,{...U,id:t,role:o,className:i(d,K.item,w&&K.withIcon,{[K.isActive]:L,[K.isDisabled]:T||y,[K.hovered]:b}),title:u,href:A,target:E,rel:k,reference:function(e){G.current=e,"function"==typeof S&&S(e);"object"==typeof S&&(S.current=e)},onClick:function(e){if(T)return;W&&(0,l.trackEvent)(W.category,W.event,W.label);j&&j(Q,e);Z||(e.currentTarget.dispatchEvent(new CustomEvent("popup-menu-close-event",{bubbles:!0,detail:{clickType:(0,s.isKeyboardClick)(e)?"keyboard":"mouse"}})),(0,r.globalCloseMenu)())},onContextMenu:function(e){W&&J&&(0,l.trackEvent)(W.category,W.event,`${W.label}_rightClick`)},onMouseUp:function(e){if(1===e.button&&A&&W){let e=W.label;q&&(e+="_mouseWheelClick"),(0,l.trackEvent)(W.category,W.event,e)}},onMouseOver:D,onMouseOut:F,onKeyDown:N,tabIndex:I},B&&n.createElement(a.CircleLogo,{...O,className:c["disclosure-item-circle-logo"],size:"xxxsmall",logoUrl:B.logoUrl,placeholderLetter:"placeholderLetter"in B?B.placeholderLetter:void 0}),w&&n.createElement("span",{"aria-label":O&&O["aria-label"],"aria-hidden":O&&Boolean(O["aria-hidden"]),className:i(K.icon,R&&c["round-icon"],x),dangerouslySetInnerHTML:{__html:w}}),n.createElement("span",{className:i(K.labelRow,v)},n.createElement("span",{className:i(K.label,g)},z)),(void 0!==f||p)&&n.createElement("span",{className:K.shortcut},(Y=f)&&Y.split("+").join(" + ")),void 0!==P&&n.createElement("span",{onClick:_?h:void 0,className:i(m,K.toolbox,{[K.showOnHover]:M,[K.showOnFocus]:C})},P));var Y}},42842:(e,t,o)=>{"use strict";o.d(t,{Portal:()=>s,PortalContext:()=>c});var n=o(50959),i=o(32227),l=o(25931),r=o(67961),a=o(99663);class s extends n.PureComponent{constructor(){super(...arguments),this._uuid=(0,l.nanoid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"";const t=this.props.className ;return t&&("string"==typeof t?e.classList.add(t):e.classList.add(...t)),this.props.shouldTrapFocus&&!e.hasAttribute("data-focus-trap")&&e.setAttribute("data-focus-trap","true"),this.props["aria-hidden"]&&e.setAttribute("aria-hidden","true"),i.createPortal(n.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,r.getRootOverlapManager)():this.context}}s.contextType=a.SlotContext;const c=n.createContext(null)},19347:e=>{e.exports={accessible:"accessible-NQERJsv9",active:"active-NQERJsv9"}},38012:e=>{e.exports={button:"button-KTgbfaP5",hover:"hover-KTgbfaP5",clicked:"clicked-KTgbfaP5",bg:"bg-KTgbfaP5",icon:"icon-KTgbfaP5",isActive:"isActive-KTgbfaP5",isTransparent:"isTransparent-KTgbfaP5",isGrayed:"isGrayed-KTgbfaP5",isHidden:"isHidden-KTgbfaP5",accessible:"accessible-KTgbfaP5"}},10838:(e,t,o)=>{"use strict";o.d(t,{AccessibleMenuItem:()=>d});var n=o(50959),i=o(97754),l=o.n(i),r=o(3343),a=o(50238),s=o(16396),c=o(19347);function d(e){const{className:t,...o}=e,[i,d]=(0,a.useRovingTabindexElement)(null);return n.createElement(s.PopupMenuItem,{...o,className:l()(c.accessible,e.isActive&&c.active,t),reference:i,tabIndex:d,onKeyDown:function(e){if(e.target!==e.currentTarget)return;const t=(0,r.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),i.current instanceof HTMLElement&&i.current.click())},"data-role":"menuitem","aria-disabled":e.isDisabled||void 0})}},29835:(e,t,o)=>{"use strict";o.d(t,{ToolButton:()=>a});var n=o(50959),i=o(97754),l=o(9745),r=o(38012);const a=(0,n.forwardRef)(((e,t)=>{const{id:o,activeClass:a,children:s,className:c,icon:d,isActive:h,isGrayed:u,isHidden:v,isTransparent:g,theme:m=r,onClick:f,onKeyDown:p,buttonHotKey:w,tooltipPosition:x="vertical",tag:L="div",tabIndex:T,tooltip:b,...y}=e,z="button"===e.tag;return n.createElement(L,{"aria-label":z?b:void 0,...y,id:o,type:z?"button":void 0,className:i(m.button,c,h&&a,{"apply-common-tooltip":Boolean(b),"common-tooltip-vertical":Boolean(b)&&"vertical"===x,[m.isActive]:h,[m.isGrayed]:u,[m.isHidden]:v,[m.isTransparent]:g},z&&m.accessible),onClick:f,onKeyDown:p,"data-role":z?void 0:"button",ref:t,tabIndex:T,"data-tooltip-hotkey":w,"aria-pressed":z?h:void 0,"data-tooltip":b},n.createElement("div",{className:m.bg},d&&("string"==typeof d?n.createElement(l.Icon,{className:m.icon,icon:d}):n.createElement("span",{className:m.icon},d)),s))}))},84243:(e,t,o)=>{"use strict";o.d(t,{drawingToolsIcons:()=>n});const n={SyncDrawing:o(99088),arrow:o(63743),cursor:o(18953),dot:o(72196),performance:"",drawginmode:o(52459),drawginmodeActive:o(63975),eraser:o(27999),group:o(34059),hideAllDrawings:o(45820),hideAllDrawingsActive:o(84959),hideAllIndicators:o(42321),hideAllIndicatorsActive:o(75895),hideAllDrawingTools:o(93756),hideAllDrawingToolsActive:o(42650),hideAllPositionsTools:o(57313),hideAllPositionsToolsActive:o(65162),lockAllDrawings:o(91244),lockAllDrawingsActive:o(65186),magnet:o(68385),heart:o(10862),smile:o(7636),sticker:o(62567),strongMagnet:o(46049),measure:o(88518), removeAllDrawingTools:o(93544),showObjectsTree:o(36515),zoom:o(6894),"zoom-out":o(45360)}},2627:(e,t,o)=>{"use strict";o.d(t,{lineToolsInfo:()=>x});var n=o(50151),i=o(11542),l=o(61814),r=(o(21251),o(98626)),a=o(84243);const s={SyncDrawing:i.t(null,void 0,o(59377)),arrow:i.t(null,void 0,o(11858)),cursor:i.t(null,void 0,o(6969)),dot:i.t(null,void 0,o(57157)),performance:i.t(null,void 0,o(35553)),drawginmode:i.t(null,void 0,o(62518)),eraser:i.t(null,void 0,o(8727)),group:i.t(null,void 0,o(3154)),hideAllDrawings:i.t(null,void 0,o(52563)),lockAllDrawings:i.t(null,void 0,o(79451)),magnet:i.t(null,void 0,o(81396)),measure:i.t(null,void 0,o(91563)),removeAllDrawingTools:i.t(null,void 0,o(57118)),showObjectsTree:i.t(null,void 0,o(85786)),zoom:i.t(null,void 0,o(55774)),"zoom-out":i.t(null,void 0,o(37310))};var c=o(98523),d=o(68335),h=o(17402);const u=(0,d.humanReadableModifiers)(d.Modifiers.Shift,!1),v=(0,d.humanReadableModifiers)(d.Modifiers.Alt,!1),g=(0,d.humanReadableModifiers)(d.Modifiers.Mod,!1),m={keys:[u],text:i.t(null,void 0,o(23369))},f={keys:[u],text:i.t(null,void 0,o(13798))},p={keys:[u],text:i.t(null,void 0,o(10539))},w={LineTool5PointsPattern:{},LineToolABCD:{},LineToolArc:{},LineToolArrow:{},LineToolArrowMarkDown:{},LineToolArrowMarkLeft:{},LineToolArrowMarkRight:{},LineToolArrowMarkUp:{},LineToolBalloon:{},LineToolComment:{},LineToolBarsPattern:{},LineToolBezierCubic:{},LineToolBezierQuadro:{},LineToolBrush:{},LineToolCallout:{},LineToolCircleLines:{},LineToolCypherPattern:{},LineToolDateAndPriceRange:{},LineToolDateRange:{},LineToolDisjointAngle:{hotKey:(0,l.hotKeySerialize)(m)},LineToolElliottCorrection:{},LineToolElliottDoubleCombo:{},LineToolElliottImpulse:{},LineToolElliottTriangle:{},LineToolElliottTripleCombo:{},LineToolEllipse:{hotKey:(0,l.hotKeySerialize)(f)},LineToolExtended:{},LineToolFibChannel:{},LineToolFibCircles:{hotKey:(0,l.hotKeySerialize)(f)},LineToolFibRetracement:{},LineToolFibSpeedResistanceArcs:{},LineToolFibSpeedResistanceFan:{hotKey:(0,l.hotKeySerialize)(p)},LineToolFibSpiral:{},LineToolFibTimeZone:{},LineToolFibWedge:{},LineToolFlagMark:{},LineToolFlatBottom:{hotKey:(0,l.hotKeySerialize)(m)},LineToolAnchoredVWAP:{},LineToolGannComplex:{},LineToolGannFixed:{},LineToolGannFan:{},LineToolGannSquare:{hotKey:(0,l.hotKeySerialize)({keys:[u],text:i.t(null,void 0,o(83042))})},LineToolHeadAndShoulders:{},LineToolHorzLine:{hotKey:(0,l.hotKeySerialize)({keys:[v,"H"],text:"{0} + {1}"})},LineToolHorzRay:{},LineToolIcon:{},LineToolEmoji:{},LineToolInsidePitchfork:{},LineToolNote:{},LineToolNoteAbsolute:{},LineToolSignpost:{},LineToolParallelChannel:{hotKey:(0,l.hotKeySerialize)(m)},LineToolPitchfan:{},LineToolPitchfork:{},LineToolPolyline:{},LineToolPath:{},LineToolPrediction:{},LineToolPriceLabel:{},LineToolPriceNote:{hotKey:(0,l.hotKeySerialize)(m)},LineToolArrowMarker:{},LineToolPriceRange:{},LineToolProjection:{},LineToolRay:{},LineToolRectangle:{hotKey:(0,l.hotKeySerialize)({keys:[u],text:i.t(null,void 0,o(10539))})},LineToolCircle:{},LineToolRegressionTrend:{},LineToolRiskRewardLong:{}, LineToolRiskRewardShort:{},LineToolFixedRangeVolumeProfile:{},LineToolRotatedRectangle:{hotKey:(0,l.hotKeySerialize)(m)},LineToolSchiffPitchfork:{},LineToolSchiffPitchfork2:{},LineToolSineLine:{},LineToolText:{},LineToolTextAbsolute:{},LineToolThreeDrivers:{},LineToolTimeCycles:{},LineToolTrendAngle:{hotKey:(0,l.hotKeySerialize)(m)},LineToolTrendBasedFibExtension:{},LineToolTrendBasedFibTime:{},LineToolTrendLine:{hotKey:(0,l.hotKeySerialize)(m)},LineToolInfoLine:{},LineToolTriangle:{},LineToolTrianglePattern:{},LineToolVertLine:{hotKey:(0,l.hotKeySerialize)({keys:[v,"V"],text:"{0} + {1}"})},LineToolCrossLine:{},LineToolHighlighter:{},LineToolGhostFeed:{},SyncDrawing:{iconActive:a.drawingToolsIcons.SyncDrawingActive},arrow:{},cursor:{},dot:{},drawginmode:{iconActive:a.drawingToolsIcons.drawginmodeActive},eraser:{},group:{},hideAllDrawings:{iconActive:a.drawingToolsIcons.hideAllDrawingsActive,hotKey:(0,l.hotKeySerialize)({keys:[g,v,"H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{iconActive:a.drawingToolsIcons.lockAllDrawingsActive},magnet:{hotKey:(0,l.hotKeySerialize)({keys:[g],text:"{0}"})},measure:{hotKey:(0,l.hotKeySerialize)({keys:[u],text:i.t(null,void 0,o(92949))})},removeAllDrawingTools:{},showObjectsTree:{},zoom:{},"zoom-out":{}};const x={};Object.entries(w).map((([e,t])=>{var o,i;const l=null!==(o=r.lineToolsIcons[e])&&void 0!==o?o:a.drawingToolsIcons[e];(0,n.assert)(!!l,`Icon is not defined for drawing "${e}"`);const d=null!==(i=c.lineToolsLocalizedNames[e])&&void 0!==i?i:s[e];(0,n.assert)(!!d,`Localized name is not defined for drawing "${e}"`);return{...t,name:e,icon:l,localizedName:d,selectHotkey:h.lineToolsSelectHotkeys[e]}})).forEach((e=>{x[e.name]=e}))},26744:(e,t,o)=>{"use strict";o.d(t,{LinetoolsFavoritesStore:()=>c});var n=o(52033),i=o(37265),l=o(56840);const r=["LineToolBalloon",null,null].filter(i.isExistent),a=!1;var s,c;!function(e){function t(){var t,n;e.favorites=[];let s=!1;const c=Boolean(void 0===(0,l.getValue)("chart.favoriteDrawings")),d=(0,l.getJSON)("chart.favoriteDrawings",[]);if(0===d.length&&c&&"undefined"!=typeof window){const e=JSON.parse(null!==(n=null===(t=window.urlParams)||void 0===t?void 0:t.favorites)&&void 0!==n?n:"{}").drawingTools;e&&Array.isArray(e)&&d.push(...e)}d.forEach(((t,n)=>{const i=t.tool||t;o(i)?r.includes(i)?s=!0:e.favorites.push(i):a&&a.includes(i)&&e.hiddenToolsPositions.set(i,n)})),s&&i(),e.favoritesSynced.fire()}function o(e){return"string"==typeof e&&""!==e&&!(a&&a.includes(e))}function i(t){const o=e.favorites.slice();e.hiddenToolsPositions.forEach(((e,t)=>{o.splice(e,0,t)})),(0,l.setJSON)("chart.favoriteDrawings",o,t)}e.favorites=[],e.favoritesSynced=new n.Delegate,e.hiddenToolsPositions=new Map,e.favoriteIndex=function(t){return e.favorites.indexOf(t)},e.isValidLineToolName=o,e.saveFavorites=i,t(),l.onSync.subscribe(null,t)}(s||(s={})),function(e){function t(e){return s.isValidLineToolName(e)}function o(){return s.favorites.length}function i(e){return-1!==s.favoriteIndex(e)}e.favoriteAdded=new n.Delegate,e.favoriteRemoved=new n.Delegate, e.favoriteMoved=new n.Delegate,e.favoritesSynced=s.favoritesSynced,e.favorites=function(){return s.favorites.slice()},e.isValidLineToolName=t,e.favoritesCount=o,e.favorite=function(e){return e<0||e>=o()?"":s.favorites[e]},e.addFavorite=function(o,n){return!(i(o)||!t(o)||"performance"===o)&&(s.favorites.push(o),s.saveFavorites(n),e.favoriteAdded.fire(o),!0)},e.removeFavorite=function(t,o){const n=s.favoriteIndex(t);if(-1===n)return!1;s.favorites.splice(n,1);const i=s.hiddenToolsPositions;return i.forEach(((e,t)=>{e>n&&i.set(t,e-1)})),s.saveFavorites(o),e.favoriteRemoved.fire(t),!0},e.isFavorite=i,e.moveFavorite=function(n,i,l){if(i<0||i>=o()||!t(n))return!1;const r=s.favoriteIndex(n);if(-1===r||i===r)return!1;const a=s.hiddenToolsPositions;return a.forEach(((e,t)=>{re?e--:ie&&e++,a.set(t,e)})),s.favorites.splice(r,1),s.favorites.splice(i,0,n),s.saveFavorites(l),e.favoriteMoved.fire(n,r,i),!0}}(c||(c={}))},52459:e=>{e.exports=''},63975:e=>{e.exports=''},34059:e=>{e.exports=''},63743:e=>{e.exports=''},18953:e=>{ e.exports=''},72196:e=>{e.exports=''},27999:e=>{e.exports=''},10862:e=>{e.exports=''},68385:e=>{e.exports=''},88518:e=>{e.exports=''},36515:e=>{e.exports=''},7636:e=>{ e.exports=''},62567:e=>{e.exports=''},46049:e=>{e.exports=''},99088:e=>{e.exports=''},42650:e=>{ e.exports=''},75895:e=>{e.exports=''},65162:e=>{ e.exports=''},65186:e=>{e.exports=''},91244:e=>{e.exports=''},45820:e=>{e.exports=''},93756:e=>{ e.exports=''},42321:e=>{e.exports=''},57313:e=>{ e.exports=''},6894:e=>{e.exports=''},45360:e=>{e.exports=''}}]);