(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1584],{59142:function(e,t){var o,n,r;n=[t],o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t{e.exports={"default-drawer-min-top-distance":"100px",wrap:"wrap-yBUNQyVA",positionBottom:"positionBottom-yBUNQyVA",backdrop:"backdrop-yBUNQyVA",drawer:"drawer-yBUNQyVA", positionLeft:"positionLeft-yBUNQyVA"}},64429:e=>{e.exports={favorite:"favorite-TPXOIXOJ",disabled:"disabled-TPXOIXOJ",active:"active-TPXOIXOJ",checked:"checked-TPXOIXOJ"}},39640:(e,t,o)=>{"use strict";function n(e,t,o,n,r){function i(r){if(e>r.timeStamp)return;const i=r.target;void 0!==o&&null!==t&&null!==i&&i.ownerDocument===n&&(t.contains(i)||o(r))}return r.click&&n.addEventListener("click",i,!1),r.mouseDown&&n.addEventListener("mousedown",i,!1),r.touchEnd&&n.addEventListener("touchend",i,!1),r.touchStart&&n.addEventListener("touchstart",i,!1),()=>{n.removeEventListener("click",i,!1),n.removeEventListener("mousedown",i,!1),n.removeEventListener("touchend",i,!1),n.removeEventListener("touchstart",i,!1)}}o.d(t,{addOutsideEventListener:()=>n})},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>i,DrawerContext:()=>s});var n=o(50959),r=o(99054);class i extends n.PureComponent{constructor(e){super(e),this._isBodyFixed=!1,this._addDrawer=e=>{this.setState((t=>({stack:[...t.stack,e]})))},this._removeDrawer=e=>{this.setState((t=>({stack:t.stack.filter((t=>t!==e))})))},this.state={stack:[]}}componentDidUpdate(e,t){!t.stack.length&&this.state.stack.length&&((0,r.setFixedBodyState)(!0),this._isBodyFixed=!0),t.stack.length&&!this.state.stack.length&&this._isBodyFixed&&((0,r.setFixedBodyState)(!1),this._isBodyFixed=!1)}componentWillUnmount(){this.state.stack.length&&this._isBodyFixed&&(0,r.setFixedBodyState)(!1)}render(){return n.createElement(s.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.stack.length?this.state.stack[this.state.stack.length-1]:null}},this.props.children)}}const s=n.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>h});var n=o(50959),r=o(50151),i=o(97754),s=o(68671),a=o(65718),l=o(37558),c=o(29197),d=o(86656),u=o(45966);function h(e){const{position:t="Bottom",onClose:o,children:h,className:v,theme:m=u}=e,f=(0,r.ensureNotNull)((0,n.useContext)(l.DrawerContext)),[p]=(0,n.useState)((()=>(0,s.randomHash)())),w=(0,n.useRef)(null),g=(0,n.useContext)(c.CloseDelegateContext);return(0,n.useLayoutEffect)((()=>((0,r.ensureNotNull)(w.current).focus({preventScroll:!0}),g.subscribe(f,o),f.addDrawer(p),()=>{f.removeDrawer(p),g.unsubscribe(f,o)})),[]),n.createElement(a.Portal,null,n.createElement("div",{className:i(u.wrap,u[`position${t}`])},p===f.currentDrawer&&n.createElement("div",{className:u.backdrop,onClick:o}),n.createElement(d.TouchScrollContainer,{className:i(u.drawer,m.drawer,u[`position${t}`],v),tabIndex:-1,ref:w,"data-name":e["data-name"]},h)))}},36189:(e,t,o)=>{"use strict";o.d(t,{FavoriteButton:()=>u});var n=o(44352),r=o(50959),i=o(97754),s=o(9745),a=o(39146),l=o(48010),c=o(64429);const d={add:n.t(null,void 0,o(44629)),remove:n.t(null,void 0,o(72482))};function u(e){const{className:t,isFilled:o,isActive:n,onClick:u,...h}=e;return r.createElement(s.Icon,{...h,className:i(c.favorite,"apply-common-tooltip",o&&c.checked,n&&c.active,t),icon:o?a:l,onClick:u,title:o?d.remove:d.add})}},86656:(e,t,o)=>{"use strict";o.d(t,{ TouchScrollContainer:()=>a});var n=o(50959),r=o(59142),i=o(50151),s=o(49483);const a=(0,n.forwardRef)(((e,t)=>{const{children:o,...i}=e,a=(0,n.useRef)(null);return(0,n.useImperativeHandle)(t,(()=>a.current)),(0,n.useLayoutEffect)((()=>{if(s.CheckMobile.iOS())return null!==a.current&&(0,r.disableBodyScroll)(a.current,{allowTouchMove:l(a)}),()=>{null!==a.current&&(0,r.enableBodyScroll)(a.current)}}),[]),n.createElement("div",{ref:a,...i},o)}));function l(e){return t=>{const o=(0,i.ensureNotNull)(e.current),n=document.activeElement;return!o.contains(t)||null!==n&&o.contains(n)&&n.contains(t)}}},46492:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ContextMenuRenderer:()=>l});var n=o(50959),r=o(962),i=o(29332),s=o(80142),a=o(50655);class l{constructor(e,t,o,r){this._root=document.createElement("div"),this._isShown=!1,this._manager=null,this._props={isOpened:!1,items:e,position:{x:0,y:0},menuStatName:t.statName,mode:t.mode,"data-name":t["data-name"]},this._onDestroy=o,this._onShow=r,this._activeElement=document.activeElement,this._returnFocus=t.returnFocus,this._takeFocus=t.takeFocus,this._menuElementRef=n.createRef(),this._doNotCloseOn=t.doNotCloseOn,t.manager&&(this._manager=t.manager)}show(e){this._onShow&&this._onShow(),this._isShown=!0,this._render({...this._props,position:(t,o,n)=>{var r,i,a;e.touches&&e.touches.length>0&&(e={clientX:e.touches[0].clientX,clientY:e.touches[0].clientY});let l;switch(null!==(r=e.attachToXBy)&&void 0!==r?r:(0,s.isRtl)()?"right":"left"){case"left":l=e.clientX;break;case"right":l=e.clientX-t}let c,d=null!==(i=e.attachToYBy)&&void 0!==i?i:"auto",u=e.clientY;if("auto-strict"===d){const t=u+(null!==(a=e.boxHeight)&&void 0!==a?a:0);n{this.hide(),this._unmount()},doNotCloseOn:this._doNotCloseOn,takeFocus:this._takeFocus,menuElementReference:this._menuElementRef})}hide(){this._isShown=!1,this._render({...this._props,isOpened:!1})}isShown(){return this._isShown}_unmount(){this._isShown=!1,r.unmountComponentAtNode(this._root),this._onDestroy&&this._onDestroy(),this._returnFocus&&this._activeElement instanceof HTMLElement&&this._activeElement.focus({preventScroll:!0})}_render(e){r.render(n.createElement(a.SlotContext.Provider,{value:this._manager},n.createElement(i.OverlapContextMenu,{...e})),this._root)}}},14665:e=>{e.exports=''},39146:e=>{e.exports=''},48010:e=>{ e.exports=''},44629:e=>{e.exports={ar:["اضف إلى القائمة التفضيلات"],ca_ES:["Afegeix a preferits"],cs:["Přidat do oblíbených"],de:["Zu Favoriten hinzufügen"],el:["Προσθήκη στα αγαπημένα"],en:"Add to favorites",es:["Añadir a favoritos"],fa:["افزودن به موارد مورد علاقه"],fr:["Ajouter aux favoris"],he_IL:["הוסף למועדפים"],hu_HU:["Hozzáadás kedvencekhez"],id_ID:["Tambah ke daftar favorit"],it:["Aggiungi ai preferiti"],ja:["お気に入りに追加"],ko:["즐겨찾기에 넣기"],ms_MY:["Tambah kepada kegemaran"],nl_NL:["Voeg toe aan favorieten"],pl:["Dodaj do ulubionych"],pt:["Adicionar aos favoritos"],ro:"Add to favorites",ru:["Добавить в избранное"],sv:["Lägg till som favorit"],th:["เพิ่มลงรายการโปรด"],tr:["Favorilere ekle"],vi:["Thêm vào mục yêu thích"],zh:["添加到收藏"],zh_TW:["加入收藏"]}},72482:e=>{e.exports={ar:["حذف من القائمة المفضلة"],ca_ES:["Treure de preferits"],cs:["Odebrat z oblíbených"],de:["Aus Favoriten entfernen"],el:["Διαγραφή απο τα αγαπημένα"],en:"Remove from favorites",es:["Quitar de favoritos"],fa:["حذف از موارد مورد علاقه"],fr:["Retirer des favoris"],he_IL:["הסר ממועדפים"],hu_HU:["Eltávolít kedvencek közül"],id_ID:["Hilangkan dari favorit"],it:["Rimuovi dai preferiti"],ja:["お気に入りから削除"],ko:["즐겨찾기지움"],ms_MY:["Keluarkan dari kegemaran"],nl_NL:["Verwijder van favorieten"],pl:["Usuń z ulubionych"],pt:["Remover dos favoritos"],ro:"Remove from favorites",ru:["Удалить из предпочтений"],sv:["Ta bort från favoriter"],th:["ลบออกจากรายการโปรด"],tr:["Favorilerimden çıkar"],vi:["Loại bỏ khỏi mục yêu thích"],zh:["从收藏中移除"],zh_TW:["從收藏移除"]}}}]);