(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8354],{758222:e=>{e.exports={"light-button":"light-button-bYDQcOkp",link:"link-bYDQcOkp",content:"content-bYDQcOkp","visually-hidden":"visually-hidden-bYDQcOkp",nowrap:"nowrap-bYDQcOkp","ellipsis-container":"ellipsis-container-bYDQcOkp","text-wrap-container":"text-wrap-container-bYDQcOkp","text-wrap-with-ellipsis":"text-wrap-with-ellipsis-bYDQcOkp",icon:"icon-bYDQcOkp","force-direction-ltr":"force-direction-ltr-bYDQcOkp","force-direction-rtl":"force-direction-rtl-bYDQcOkp","with-grouped":"with-grouped-bYDQcOkp","variant-quiet-primary":"variant-quiet-primary-bYDQcOkp",selected:"selected-bYDQcOkp","typography-regular16px":"typography-regular16px-bYDQcOkp","typography-medium16px":"typography-medium16px-bYDQcOkp","typography-regular14px":"typography-regular14px-bYDQcOkp","typography-semibold14px":"typography-semibold14px-bYDQcOkp","typography-semibold16px":"typography-semibold16px-bYDQcOkp","size-xsmall":"size-xsmall-bYDQcOkp","with-start-icon":"with-start-icon-bYDQcOkp","with-end-icon":"with-end-icon-bYDQcOkp","no-content":"no-content-bYDQcOkp",wrap:"wrap-bYDQcOkp","size-small":"size-small-bYDQcOkp","size-medium":"size-medium-bYDQcOkp","variant-primary":"variant-primary-bYDQcOkp","color-gray":"color-gray-bYDQcOkp",caret:"caret-bYDQcOkp",grouped:"grouped-bYDQcOkp",pills:"pills-bYDQcOkp",active:"active-bYDQcOkp","disable-active-on-touch":"disable-active-on-touch-bYDQcOkp","disable-active-state-styles":"disable-active-state-styles-bYDQcOkp","color-green":"color-green-bYDQcOkp","color-red":"color-red-bYDQcOkp","variant-secondary":"variant-secondary-bYDQcOkp","variant-ghost":"variant-ghost-bYDQcOkp"}},470048:e=>{e.exports={wrapper:"wrapper-GZajBGIm",input:"input-GZajBGIm",box:"box-GZajBGIm",icon:"icon-GZajBGIm",noOutline:"noOutline-GZajBGIm","intent-danger":"intent-danger-GZajBGIm",check:"check-GZajBGIm",dot:"dot-GZajBGIm"}},869789:e=>{e.exports={checkbox:"checkbox-vyj6oJxw",reverse:"reverse-vyj6oJxw",label:"label-vyj6oJxw",baseline:"baseline-vyj6oJxw"}},678370:e=>{e.exports={"intent-default":"intent-default-EZuD3gZZ","intent-danger":"intent-danger-EZuD3gZZ","intent-warning":"intent-warning-EZuD3gZZ","intent-success":"intent-success-EZuD3gZZ","icon-wrapper-size-small":"icon-wrapper-size-small-EZuD3gZZ","icon-wrapper-size-medium":"icon-wrapper-size-medium-EZuD3gZZ","icon-wrapper-size-large":"icon-wrapper-size-large-EZuD3gZZ","icon-wrapper":"icon-wrapper-EZuD3gZZ",icon:"icon-EZuD3gZZ"}},60610:e=>{e.exports={arrow:"arrow-uDVcbwtB"}},985397:e=>{e.exports={description:"description-dQscsfnR","description-strong":"description-strong-dQscsfnR","size-xsmall":"size-xsmall-dQscsfnR"}},374287:e=>{e.exports={"numbers-wrapper":"numbers-wrapper-KCq6gqzR","fake-numbers":"fake-numbers-KCq6gqzR","fake-numbers-inner":"fake-numbers-inner-KCq6gqzR",numbers:"numbers-KCq6gqzR",compact:"compact-KCq6gqzR","numbers-end-slot":"numbers-end-slot-KCq6gqzR",number:"number-KCq6gqzR","size-xsmall":"size-xsmall-KCq6gqzR","size-small":"size-small-KCq6gqzR",
"size-medium":"size-medium-KCq6gqzR",dots:"dots-KCq6gqzR"}},653005:e=>{e.exports={pagination:"pagination-iiQKH8Zr","pagination-group":"pagination-group-iiQKH8Zr",select:"select-iiQKH8Zr","compact-middle-slot":"compact-middle-slot-iiQKH8Zr"}},982434:e=>{e.exports={scrollWrap:"scrollWrap-FaOvTD2r"}},977253:e=>{e.exports={wrap:"wrap-vSb6C0Bj","wrap--horizontal":"wrap--horizontal-vSb6C0Bj",bar:"bar-vSb6C0Bj",barInner:"barInner-vSb6C0Bj","barInner--horizontal":"barInner--horizontal-vSb6C0Bj","bar--horizontal":"bar--horizontal-vSb6C0Bj"}},882112:e=>{e.exports={}},782430:e=>{e.exports={container:"container-yrIMi47q",title:"title-yrIMi47q",title_normal:"title_normal-yrIMi47q",icon:"icon-yrIMi47q",text:"text-yrIMi47q",text_large:"text_large-yrIMi47q",action:"action-yrIMi47q"}},342335:e=>{e.exports={"icon-wrapper":"icon-wrapper-dikdewwx","with-tooltip":"with-tooltip-dikdewwx","no-active-state":"no-active-state-dikdewwx"}},354583:e=>{e.exports={checkbox:"checkbox-aOSYFxuH"}},309210:e=>{e.exports={icon:"icon-vDz9Zwc6",toolboxLabel:"toolboxLabel-vDz9Zwc6"}},573606:e=>{e.exports={"square-tab-button":"square-tab-button-huvpscfz",selected:"selected-huvpscfz","disable-active-state-styles":"disable-active-state-styles-huvpscfz","disable-focus-outline":"disable-focus-outline-huvpscfz","size-medium":"size-medium-huvpscfz","tab-hidden-content":"tab-hidden-content-huvpscfz","size-small":"size-small-huvpscfz","size-xsmall":"size-xsmall-huvpscfz",fake:"fake-huvpscfz",content:"content-huvpscfz","tab-content":"tab-content-huvpscfz"}},77819:e=>{e.exports={"arrow-icon":"arrow-icon-nV6fm1zO",dropped:"dropped-nV6fm1zO"}},744012:e=>{e.exports={"css-value-square-tabs-xsmall-gap":"4px","css-value-square-tabs-small-gap":"8px","css-value-square-tabs-medium-gap":"12px"}},792331:e=>{e.exports={"css-value-square-tabs-xsmall-gap":"4px","css-value-square-tabs-small-gap":"8px","css-value-square-tabs-medium-gap":"12px","scroll-wrap":"scroll-wrap-mf1FlhVw","enable-scroll":"enable-scroll-mf1FlhVw","square-tabs":"square-tabs-mf1FlhVw",content:"content-mf1FlhVw","size-xsmall":"size-xsmall-mf1FlhVw","square-tab-button":"square-tab-button-mf1FlhVw","end-icon-wrap":"end-icon-wrap-mf1FlhVw","size-small":"size-small-mf1FlhVw","size-medium":"size-medium-mf1FlhVw"}},959189:(e,t,i)=>{"use strict";function s(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}i.d(t,{isIconOnly:()=>s})},898237:(e,t,i)=>{"use strict";i.d(t,{LightAnchorButton:()=>l,LightButton:()=>n.LightButton});var s=i(418920),n=i(943158),o=i(50959),r=i(591365),a=i(273388);function l(e){const{className:t,isSelected:i,children:n,startIcon:l,iconOnly:c,ellipsis:u,showCaret:d,forceDirection:h,endIcon:p,color:m,variant:g,reference:b,size:v,enableActiveStateStyles:_,renderComponent:f=r.CustomComponentDefaultLink,typography:w,textWrap:y=!1,maxLines:C,style:k={},...E}=e,P=y?null!=C?C:2:1,x=P>0?{...k,"--ui-lib-light-button-content-max-lines":P}:k;return o.createElement(f,{...E,className:(0,s.useLightButtonClasses)({className:t,isSelected:i,children:n,startIcon:l,iconOnly:c,showCaret:d,
forceDirection:h,endIcon:p,color:m,variant:g,size:v,enableActiveStateStyles:_,typography:w,textWrap:y,isLink:!0}),reference:(0,a.isomorphicRef)(b),style:x},o.createElement(s.LightButtonContent,{showCaret:d,startIcon:l,endIcon:p,iconOnly:c,ellipsis:u,textWrap:y},n))}},418920:(e,t,i)=>{"use strict";i.d(t,{LightButtonContent:()=>g,useLightButtonClasses:()=>m});var s=i(50959),n=i(497754),o=i(601198),r=i(72571),a=i(234539),l=i(959189),c=i(380327);const u=s.createContext({isInButtonGroup:!1,isGroupPrimary:!1});var d=i(602948),h=i(758222),p=i.n(h);const m=(e,t)=>{const i=(0,s.useContext)(a.CustomBehaviourContext),o=(0,s.useContext)(c.ControlGroupContext),{isInButtonGroup:r,isGroupPrimary:d}=(0,s.useContext)(u),{className:h,isSelected:m,children:g,startIcon:b,showCaret:v,endIcon:_,forceDirection:f,iconOnly:w,color:y="gray",variant:C="primary",size:k="medium",enableActiveStateStyles:E=i.enableActiveStateStyles,typography:P,isLink:x=!1,textWrap:T,isPills:S,isActive:I}=e,D=p()[`typography-${((e,t,i)=>{if(i){const e=i.replace(/^\D+/g,"");return t?`semibold${e}`:i}return"xsmall"===e?t?"semibold14px":"regular14px":"small"===e||"medium"===e?t?"semibold16px":"regular16px":""})(k,m||S,P||void 0)}`];return n(h,p()["light-button"],x&&p().link,I&&p().active,m&&p().selected,(0,l.isIconOnly)(g,w)&&p()["no-content"],b&&p()["with-start-icon"],(v||_)&&p()["with-end-icon"],t&&p()["with-grouped"],f&&p()[`force-direction-${f}`],p()[`variant-${d?"primary":C}`],p()[`color-${d?"gray":y}`],p()[`size-${k}`],D,!E&&p()["disable-active-state-styles"],o.isGrouped&&p().grouped,T&&p().wrap,r&&p()["disable-active-on-touch"],S&&p().pills)};function g(e){const{startIcon:t,endIcon:i,showCaret:a,iconOnly:c,ellipsis:u=!0,textWrap:h,tooltipText:m,children:g}=e;return s.createElement(s.Fragment,null,t&&s.createElement(r.Icon,{className:p().icon,icon:t}),!(0,l.isIconOnly)(g,c)&&s.createElement("span",{className:n(p().content,!h&&p().nowrap,"apply-overflow-tooltip","apply-overflow-tooltip--check-children-recursively","apply-overflow-tooltip--allow-text"),"data-overflow-tooltip-text":null!=m?m:(0,o.getTextForTooltip)(g)},h||u?s.createElement(s.Fragment,null,s.createElement("span",{className:n(!h&&u&&p()["ellipsis-container"],h&&p()["text-wrap-container"],h&&u&&p()["text-wrap-with-ellipsis"])},g),s.createElement("span",{className:p()["visually-hidden"],"aria-hidden":!0},g)):s.createElement(s.Fragment,null,g,s.createElement("span",{className:p()["visually-hidden"],"aria-hidden":!0},g))),(i||a)&&(e=>s.createElement(r.Icon,{className:n(p().icon,e.showCaret&&p().caret),icon:e.showCaret?d:e.endIcon}))(e))}},943158:(e,t,i)=>{"use strict";i.d(t,{LightButton:()=>r});var s=i(50959),n=i(380327),o=i(418920);function r(e){const{isGrouped:t}=s.useContext(n.ControlGroupContext),{reference:i,className:r,isSelected:a,children:l,startIcon:c,iconOnly:u,ellipsis:d,showCaret:h,forceDirection:p,endIcon:m,color:g,variant:b,size:v,enableActiveStateStyles:_,typography:f,textWrap:w=!1,maxLines:y,style:C={},isPills:k,isActive:E,tooltipText:P,...x}=e,T=w?null!=y?y:2:1,S=T>0?{...C,
"--ui-lib-light-button-content-max-lines":T}:C;return s.createElement("button",{...x,className:(0,o.useLightButtonClasses)({className:r,isSelected:a,children:l,startIcon:c,iconOnly:u,showCaret:h,forceDirection:p,endIcon:m,color:g,variant:b,size:v,enableActiveStateStyles:_,typography:f,textWrap:w,isPills:k,isActive:E},t),ref:i,style:S},s.createElement(o.LightButtonContent,{showCaret:h,startIcon:c,endIcon:m,iconOnly:u,ellipsis:d,textWrap:w,tooltipText:P},l))}},408323:(e,t,i)=>{"use strict";i.d(t,{CheckboxInput:()=>u});var s=i(50959),n=i(497754),o=i(800417),r=i(72571),a=i(465890),l=i(470048),c=i.n(l);function u(e){const t=n(c().box,c()[`intent-${e.intent}`],{[c().check]:!Boolean(e.indeterminate),[c().dot]:Boolean(e.indeterminate),[c().noOutline]:-1===e.tabIndex}),i=n(c().wrapper,e.className);return s.createElement("span",{className:i,title:e.title,style:e.style},s.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:c().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference,"aria-required":e["aria-required"],"aria-describedby":e["aria-describedby"],"aria-invalid":e["aria-invalid"],...(0,o.filterDataProps)(e)}),s.createElement("span",{className:t},s.createElement(r.Icon,{icon:a,className:c().icon})))}},302946:(e,t,i)=>{"use strict";i.d(t,{Checkbox:()=>c});var s=i(50959),n=i(497754),o=i(230789),r=i(408323),a=i(869789),l=i.n(a);class c extends s.PureComponent{render(){const{inputClassName:e,labelClassName:t,...i}=this.props,o=n(this.props.className,l().checkbox,{[l().reverse]:Boolean(this.props.labelPositionReverse),[l().baseline]:Boolean(this.props.labelAlignBaseline)}),a=n(l().label,t,{[l().disabled]:this.props.disabled});let c=null;return this.props.label&&(c=s.createElement("span",{className:a,title:this.props.title},this.props.label)),s.createElement("label",{className:o},s.createElement(r.CheckboxInput,{...i,className:e}),c)}}c.defaultProps={value:"on"};(0,o.makeSwitchGroupItem)(c)},234539:(e,t,i)=>{"use strict";i.d(t,{CustomBehaviourContext:()=>s});const s=(0,i(50959).createContext)({enableActiveStateStyles:!0});s.displayName="CustomBehaviourContext"},813550:(e,t,i)=>{"use strict";i.d(t,{useForceUpdate:()=>n});var s=i(50959);const n=()=>{const[,e]=(0,s.useReducer)((e=>e+1),0);return e}},252130:(e,t,i)=>{"use strict";i.d(t,{useIsMounted:()=>n});var s=i(50959);const n=()=>{const e=(0,s.useRef)(!1);return(0,s.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}},671129:(e,t,i)=>{"use strict";i.d(t,{useMatchMedia:()=>o,useSafeMatchMedia:()=>n});var s=i(50959);function n(e,t=!1){const[i,n]=(0,s.useState)(t);return(0,s.useEffect)((()=>{const t=window.matchMedia(e);function i(){n(t.matches)}return i(),t.addListener(i),()=>{t.removeListener(i)}}),[e]),i}function o(e){const t=(0,s.useMemo)((()=>window.matchMedia(e).matches),[]);return n(e,t)}},664332:(e,t,i)=>{"use strict";i.d(t,{useResizeObserver:()=>a});var s=i(50959),n=i(159255),o=i(855393),r=i(718736);function a(e,t=[]){
const{callback:i,ref:a=null}=function(e){return"function"==typeof e?{callback:e}:e}(e),l=(0,s.useRef)(null),c=(0,s.useRef)(i);c.current=i;const u=(0,r.useFunctionalRefObject)(a),d=(0,s.useCallback)((e=>{u(e),null!==l.current&&(l.current.disconnect(),null!==e&&l.current.observe(e))}),[u,l]);return(0,o.useIsomorphicLayoutEffect)((()=>(l.current=new n.default(((e,t)=>{c.current(e,t)})),u.current&&d(u.current),()=>{var e;null===(e=l.current)||void 0===e||e.disconnect()})),[u,...t]),d}},230789:(e,t,i)=>{"use strict";i.d(t,{SwitchGroup:()=>r,makeSwitchGroupItem:()=>a});var s=i(50959),n=i(174786);const o=(0,s.createContext)({getName:()=>"",getValues:()=>[],getOnChange:()=>n.default,subscribe:n.default,unsubscribe:n.default});class r extends s.PureComponent{constructor(e){super(e),this._subscriptions=new Set,this._getName=()=>this.props.name,this._getValues=()=>this.props.values,this._getOnChange=()=>this.props.onChange,this._subscribe=e=>{this._subscriptions.add(e)},this._unsubscribe=e=>{this._subscriptions.delete(e)},this.state={switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}}render(){return s.createElement(o.Provider,{value:this.state.switchGroupContext},this.props.children)}componentDidUpdate(e){this._notify(this._getUpdates(this.props.values,e.values))}_notify(e){this._subscriptions.forEach((t=>t(e)))}_getUpdates(e,t){return[...t,...e].filter((i=>t.includes(i)?!e.includes(i):e.includes(i)))}}function a(e){var t;return t=class extends s.PureComponent{constructor(){super(...arguments),this._onChange=e=>{this.context.getOnChange()(e)},this._onUpdate=e=>{e.includes(this.props.value)&&this.forceUpdate()}}componentDidMount(){this.context.subscribe(this._onUpdate)}render(){return s.createElement(e,{...this.props,name:this._getName(),onChange:this._onChange,checked:this._isChecked()})}componentWillUnmount(){this.context.unsubscribe(this._onUpdate)}_getName(){return this.context.getName()}_isChecked(){return this.context.getValues().includes(this.props.value)}},t.contextType=o,t}},298563:(e,t,i)=>{"use strict";i.d(t,{useTabsMainHandlers:()=>p});var s=i(50959),n=i(269842),o=i(118965),r=i(586240),a=i(671129);var l=i(429510),c=i(984164),u=i(772069),d=i(525388),h=i(865968);function p(e,t,i){const{id:p,items:m,activationType:g,orientation:b,disabled:v,onActivate:_,isActive:f,overflowBehaviour:w,enableActiveStateStyles:y,tablistLabelId:C,tablistLabel:k}=t,E=(0,o.useMobileTouchState)(),P=function(e){const t=(0,a.useSafeMatchMedia)(r["media-mf-phone-landscape"],!0),i=(0,o.useMobileTouchState)();return null!=e?e:i||!t?"scroll":"collapse"}(w),x=(0,s.useRef)(!1),T=(0,s.useCallback)((e=>e.id),[]),S=null!=y?y:!E,{visibleItems:I,hiddenItems:D,containerRefCallback:M,innerContainerRefCallback:N,moreButtonRef:F,setItemRef:z}=(0,l.useCollapsible)(m,T,f),A="collapse"===P?I:m,R=(0,s.useMemo)((()=>"collapse"===P?D:[]),[P,D]),O=(0,s.useCallback)((e=>R.includes(e)),[R]),{isOpened:L,open:B,close:U,onButtonClick:V}=(0,u.useDisclosure)({id:p,
disabled:v}),{tabsBindings:H,tablistBinding:W,scrollWrapBinding:j,onActivate:G,onHighlight:q,isHighlighted:Y}=(0,c.useTabs)({id:p,items:[...A,...R],activationType:g,orientation:b,disabled:v,tablistLabelId:C,tablistLabel:k,scrollIntoViewOptions:i.scrollIntoViewOptions,onActivate:_,isActive:f,isCollapsed:O,isRtl:i.isRtl,isDisclosureOpened:L}),K=R.find(Y),$=(0,s.useCallback)((()=>{const e=m.find(f);e&&q(e)}),[q,f,m]),Z=(0,s.useCallback)((e=>H.find((t=>t.id===e.id))),[H]),Q=(0,s.useCallback)((()=>{U(),$(),x.current=!0}),[U,$]),J=(0,s.useCallback)((()=>{K&&(G(K),q(K,250))}),[G,q,K]);j.ref=(0,d.useMergedRefs)([j.ref,M]),W.ref=(0,d.useMergedRefs)([W.ref,N]),W.onKeyDown=(0,n.createSafeMulticastEventHandler)((0,h.useKeyboardEventHandler)([(0,h.useKeyboardClose)(L,Q),(0,h.useKeyboardActionHandler)([13,32],J,(0,s.useCallback)((()=>Boolean(K)),[K]))]),W.onKeyDown);const X=(0,s.useCallback)((e=>{x.current=!0,V(e)}),[x,V]),ee=(0,s.useCallback)((e=>{e&&G(e)}),[G]);return(0,s.useEffect)((()=>{x.current?x.current=!1:(K&&!L&&B(),!K&&L&&U())}),[K,L,B,U]),{enableActiveStateStyles:S,moreButtonRef:F,setItemRef:z,getBindings:Z,handleMoreButtonClick:X,handleCollapsedItemClick:ee,scrollWrapBinding:j,overflowBehaviour:P,tablistBinding:W,visibleTabs:A,hiddenTabs:R,handleActivate:G,isMobileTouch:E,getItemId:T,isDisclosureOpened:L,isHighlighted:Y,closeDisclosure:U}}},111706:(e,t,i)=>{"use strict";function s(e){return 0===e.detail}i.d(t,{isKeyboardClick:()=>s})},247465:(e,t,i)=>{"use strict";i.d(t,{isCancelled:()=>o,makeCancelable:()=>n});class s extends Error{constructor(){super("CancelToken")}}function n(e){let t=!1;return{promise:new Promise(((i,n)=>{e.then((e=>t?n(new s):i(e))),e.catch((e=>n(t?new s:e)))})),cancel(){t=!0}}}function o(e){return e instanceof s}},868333:(e,t,i)=>{"use strict";var s;i.d(t,{LogoSize:()=>s,getLogoUrlResolver:()=>r}),function(e){e[e.Medium=0]="Medium",e[e.Large=1]="Large"}(s||(s={}));class n{getSymbolLogoUrl(e){return e}getCountryFlagUrl(){return""}getCryptoLogoUrl(e){return e}getProviderLogoUrl(e){return e}getSourceLogoUrl(e){return e}}let o;function r(){return o||(o=new n),o}},73288:(e,t,i)=>{"use strict";i.d(t,{OverlayScrollContainer:()=>g});var s=i(50959),n=i(497754),o=i.n(n),r=i(710263),a=i(650151),l=i(44681);const c=i(977253),u={0:{isHorizontal:!1,isNegative:!1,sizePropName:"height",minSizePropName:"minHeight",startPointPropName:"top",currentMousePointPropName:"clientY",progressBarTransform:"translateY"},1:{isHorizontal:!0,isNegative:!1,sizePropName:"width",minSizePropName:"minWidth",startPointPropName:"left",currentMousePointPropName:"clientX",progressBarTransform:"translateX"},2:{isHorizontal:!0,isNegative:!0,sizePropName:"width",minSizePropName:"minWidth",startPointPropName:"right",currentMousePointPropName:"clientX",progressBarTransform:"translateX"}},d=40;function h(e){const{size:t,scrollSize:i,clientSize:n,scrollProgress:r,onScrollProgressChange:h,scrollMode:p,theme:m=c,onDragStart:g,onDragEnd:b,minBarSize:v=d}=e,_=(0,s.useRef)(null),f=(0,s.useRef)(null),[w,y]=(0,s.useState)(!1),C=(0,
s.useRef)(0),{isHorizontal:k,isNegative:E,sizePropName:P,minSizePropName:x,startPointPropName:T,currentMousePointPropName:S,progressBarTransform:I}=u[p];(0,s.useEffect)((()=>{const e=(0,a.ensureNotNull)(_.current).ownerDocument;return w?(g&&g(),e&&(e.addEventListener("mousemove",L),e.addEventListener("mouseup",B))):b&&b(),()=>{e&&(e.removeEventListener("mousemove",L),e.removeEventListener("mouseup",B))}}),[w]);const D=t/i||0,M=n*D||0,N=Math.max(M,v),F=(t-N)/(t-M),z=i-t,A=E?-z:0,R=E?0:z,O=V((0,l.clamp)(r,A,R))||0;return s.createElement("div",{ref:_,className:o()(m.wrap,k&&m["wrap--horizontal"]),style:{[P]:t},onMouseDown:function(e){if(e.isDefaultPrevented())return;e.preventDefault();const t=U(e.nativeEvent,(0,a.ensureNotNull)(_.current)),i=Math.sign(t),s=(0,a.ensureNotNull)(f.current).getBoundingClientRect();C.current=i*s[P]/2;let n=Math.abs(t)-Math.abs(C.current);const o=V(z);n<0?(n=0,C.current=t):n>o&&(n=o,C.current=t-i*o);h(H(i*n)),y(!0)}},s.createElement("div",{ref:f,className:o()(m.bar,k&&m["bar--horizontal"]),style:{[x]:v,[P]:N,transform:`${I}(${O}px)`},onMouseDown:function(e){e.preventDefault(),C.current=U(e.nativeEvent,(0,a.ensureNotNull)(f.current)),y(!0)}},s.createElement("div",{className:o()(m.barInner,k&&m["barInner--horizontal"])})));function L(e){const t=U(e,(0,a.ensureNotNull)(_.current))-C.current;h(H(t))}function B(){y(!1)}function U(e,t){const i=t.getBoundingClientRect()[T];return e[S]-i}function V(e){return e*D*F}function H(e){return e/D/F}}var p=i(522224),m=i(982434);function g(e){const{reference:t,className:i,containerHeight:o=0,containerWidth:a=0,contentHeight:l=0,contentWidth:c=0,scrollPosTop:u=0,scrollPosLeft:d=0,onVerticalChange:g,onHorizontalChange:b,visible:v}=e,[_,f]=(0,p.useHover)(),[w,y]=(0,s.useState)(!1),C=o<l,k=a<c,E=C&&k?8:0;return s.createElement("div",{...f,ref:t,className:n(i,m.scrollWrap),style:{visibility:v||_||w?"visible":"hidden"}},C&&s.createElement(h,{size:o-E,scrollSize:l-E,clientSize:o-E,scrollProgress:u,onScrollProgressChange:function(e){g&&g(e)},onDragStart:P,onDragEnd:x,scrollMode:0}),k&&s.createElement(h,{size:a-E,scrollSize:c-E,clientSize:a-E,scrollProgress:d,onScrollProgressChange:function(e){b&&b(e)},onDragStart:P,onDragEnd:x,scrollMode:(0,r.isRtl)()?2:1}));function P(){y(!0)}function x(){y(!1)}}},449943:(e,t,i)=>{"use strict";i.d(t,{CircleLogoPair:()=>o});var s=i(50959),n=i(41192);i(882112);function o(e){const{primaryLogoUrl:t,secondaryLogoUrl:i,size:o,className:a}=e;return s.createElement("span",{className:(0,n.getBlockStyleClasses)(o,a),title:e.title},s.createElement(r,{logoUrl:i,size:o}),s.createElement(r,{logoUrl:t,size:o}))}function r(e){const{logoUrl:t,size:i}=e,o=(0,n.getLogoStyleClasses)(i);return void 0===t?s.createElement("span",{className:o}):s.createElement("img",{className:o,crossOrigin:"",src:t,alt:""})}},41192:(e,t,i)=>{"use strict";i.d(t,{getBlockStyleClasses:()=>n,getLogoStyleClasses:()=>o});var s=i(497754);function n(e,t){return s("tv-circle-logo-pair",`tv-circle-logo-pair--${e}`,t)}function o(e,t){
return s("tv-circle-logo-pair__logo",`tv-circle-logo-pair__logo--${e}`,!t&&"tv-circle-logo-pair__logo-empty")}},904925:(e,t,i)=>{"use strict";i.d(t,{PopupMenuDisclosureView:()=>u});var s=i(50959),n=i(624216),o=i(650151);const r={x:0,y:0};function a(e,t,i){return(0,s.useCallback)((()=>function(e,t,{x:i=r.x,y:s=r.y}=r){const n=(0,o.ensureNotNull)(e).getBoundingClientRect(),a={x:n.left+i,y:n.top+n.height+s,indentFromWindow:{top:4,bottom:4,left:4,right:4}};return t&&(a.overrideWidth=n.width),a}(e.current,t,i)),[e,t])}var l=i(586240);const c=parseInt(l["size-header-height"]);function u(e){const{button:t,popupChildren:i,buttonRef:o,listboxId:r,listboxClassName:l,listboxTabIndex:u,matchButtonAndListboxWidths:d,isOpened:h,scrollWrapReference:p,listboxReference:m,onClose:g,onOpen:b,onListboxFocus:v,onListboxBlur:_,onListboxKeyDown:f,listboxAria:w,repositionOnScroll:y=!0,closeOnHeaderOverlap:C=!1,popupPositionCorrection:k={x:0,y:0},popupPosition:E}=e,P=a(o,d,k),x=C?c:0;return s.createElement(s.Fragment,null,t,s.createElement(n.PopupMenu,{...w,id:r,className:l,tabIndex:u,isOpened:h,position:E||P,repositionOnScroll:y,onClose:g,onOpen:b,doNotCloseOn:o.current,reference:m,scrollWrapReference:p,onFocus:v,onBlur:_,onKeyDown:f,closeOnScrollOutsideOffset:x},i))}},662941:(e,t,i)=>{"use strict";i.d(t,{EmptyStateBlock:()=>l});var s=i(50959),n=i(497754),o=i.n(n),r=i(782430);function a(e){const{title:t,tagName:i,titleSize:n}=e,a=i||"strong";return s.createElement(a,{className:o()(r.title,r[`title_${n}`])},t)}function l(e){return s.createElement("div",{className:n(r.container,e.className)},s.createElement("div",{className:n(r.icon,e.iconClass)}),e.title&&s.createElement(a,{title:e.title,titleSize:e.titleSize,tagName:e.titleTagName}),e.text&&s.createElement("div",{className:n(r.text,"large"===e.textSize&&r.text_large)},e.text),e.action&&s.createElement("div",{className:r.action},e.action))}},953517:(e,t,i)=>{"use strict";i.d(t,{useKeyboardActionHandler:()=>s.useKeyboardActionHandler,useKeyboardClose:()=>s.useKeyboardClose,useKeyboardEventHandler:()=>s.useKeyboardEventHandler,useKeyboardOpen:()=>s.useKeyboardOpen,useKeyboardToggle:()=>s.useKeyboardToggle});var s=i(865968)},585938:(e,t,i)=>{"use strict";i.d(t,{useForceUpdate:()=>s.useForceUpdate});var s=i(813550)},661851:(e,t,i)=>{"use strict";i.d(t,{useObservable:()=>o,useObservableSubscription:()=>n});var s=i(50959);function n(e,t){(0,s.useEffect)((()=>{const i=e.subscribe(t);return()=>i.unsubscribe()}),[e,t])}function o(e,t){const i=(0,s.useCallback)(void 0!==t?()=>t:()=>{let t;return e.subscribe((e=>{t=e})).unsubscribe(),t},[t,e]),[o,r]=(0,s.useState)(i),a=(0,s.useCallback)((e=>r((()=>e))),[r]);return n(e,a),o}},139043:(e,t,i)=>{"use strict";i.d(t,{useOverlayScroll:()=>l});var s=i(50959),n=i(650151),o=i(522224),r=i(601227);const a={onMouseOver:()=>{},onMouseOut:()=>{}};function l(e,t=r.CheckMobile.any()){const i=(0,s.useRef)(null),l=e||(0,s.useRef)(null),[c,u]=(0,o.useHover)(),[d,h]=(0,s.useState)({reference:i,containerHeight:0,containerWidth:0,contentHeight:0,contentWidth:0,
scrollPosTop:0,scrollPosLeft:0,onVerticalChange:function(e){h((t=>({...t,scrollPosTop:e}))),(0,n.ensureNotNull)(l.current).scrollTop=e},onHorizontalChange:function(e){h((t=>({...t,scrollPosLeft:e}))),(0,n.ensureNotNull)(l.current).scrollLeft=e},visible:c}),p=(0,s.useCallback)((()=>{if(!l.current)return;const{clientHeight:e,scrollHeight:t,scrollTop:s,clientWidth:n,scrollWidth:o,scrollLeft:r}=l.current,a=i.current?i.current.offsetTop:0;h((i=>({...i,containerHeight:e-a,contentHeight:t-a,scrollPosTop:s,containerWidth:n,contentWidth:o,scrollPosLeft:r})))}),[]);function m(){h((e=>({...e,scrollPosTop:(0,n.ensureNotNull)(l.current).scrollTop,scrollPosLeft:(0,n.ensureNotNull)(l.current).scrollLeft})))}return(0,s.useEffect)((()=>{c&&p(),h((e=>({...e,visible:c})))}),[c]),(0,s.useEffect)((()=>{const e=l.current;return e&&e.addEventListener("scroll",m),()=>{e&&e.removeEventListener("scroll",m)}}),[l]),[d,t?a:u,l,p]}},683614:(e,t,i)=>{"use strict";i.d(t,{useVisibility:()=>n});var s=i(50959);function n(e,t,i){(0,s.useEffect)((()=>{const s=new IntersectionObserver((e=>{e[e.length-1].intersectionRatio<.25?i():t()}),{threshold:[0,.25,.5,.75,1],root:null,rootMargin:"0px"});return e.current&&s.observe(e.current),()=>s.disconnect()}),[])}},297265:(e,t,i)=>{"use strict";i.d(t,{useWatchedValueReadonly:()=>n});var s=i(50959);const n=(e,t=!1)=>{const i="watchedValue"in e?e.watchedValue:void 0,n="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,r]=(0,s.useState)(i?i.value():n);return(t?s.useLayoutEffect:s.useEffect)((()=>{if(i){r(i.value());const e=e=>r(e);return i.subscribe(e),()=>i.unsubscribe(e)}return()=>{}}),[i]),o}},187962:(e,t,i)=>{"use strict";i.d(t,{IconQuestionInformation:()=>E});var s=i(50959),n=i(497754),o=i(800417),r=i(72571),a=i(482353),l=i(527941),c=i(499084),u=i(530162),d=i(678370),h=i.n(d);const p="small",m={info:l,question:a,check:c,exclamation:u};function g(e,t){return t?m[t]:"success"===e?m.check:m.exclamation}const b=s.forwardRef(((e,t)=>s.createElement("span",{...e,ref:t,className:n(e.className,h()["no-active-state"])}))),v=s.forwardRef(((e,t)=>{const{icon:i,intent:a="default",ariaLabel:l,tooltip:c,className:u,renderComponent:d=b,tabIndex:m=0,size:v=p,onFocus:_,onBlur:f,onClick:w,...y}=e;return s.createElement(d,{className:n(u,h()["icon-wrapper"],h()[`intent-${a}`],h()[`icon-wrapper-size-${v}`]),title:c,"aria-label":l,ref:t,tabIndex:m,onFocus:_,onBlur:f,onClick:w,...(0,o.filterDataProps)(y)},s.createElement(r.Icon,{"aria-hidden":!0,icon:g(a,i),className:h().icon}))}));var _=i(804395);var f=i(718736);function w(e,t=null){const{showTooltip:i,hideTooltip:n,onClick:o,doNotShowTooltipOnTouch:r=!1}=e,a=(0,f.useFunctionalRefObject)(t),l=function(){const[e,t]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{t(_.mobiletouch)}),[]),e}(),c=l&&r?void 0:e.tooltip;(0,s.useEffect)((()=>{const e=()=>{var e;null===(e=null==a?void 0:a.current)||void 0===e||e.blur()};return document.addEventListener("scroll",e,!0),()=>document.removeEventListener("scroll",e,!0)}),[a]);return{onBlur:(0,s.useCallback)((e=>{n&&n()}),[n]),onFocus:(0,
s.useCallback)((e=>{!e.target.matches(":hover")&&i&&e.target.matches(":focus-visible")&&i(e.currentTarget,{tooltipDelay:200})}),[i]),onClick:(0,s.useCallback)((e=>{var t;l&&(null===(t=null==a?void 0:a.current)||void 0===t||t.focus()),o&&o(e)}),[o,a,l]),tooltip:c,className:void 0!==c?"apply-common-tooltip":void 0,ref:a}}var y=i(744471),C=i(342335),k=i.n(C);const E=(0,s.forwardRef)(((e,t)=>{const{className:i,onClick:o=y.tooltipClickHandler,doNotShowTooltipOnTouch:r,...a}=e,{tooltip:l,className:c,...u}=w({tooltip:e.tooltip,doNotShowTooltipOnTouch:r,showTooltip:y.showOnElement,hideTooltip:y.hide,onClick:o},t);return s.createElement(v,{className:n(i,k()["icon-wrapper"],l&&k()["with-tooltip"],c),tooltip:l,...a,...u})}));(0,s.forwardRef)(((e,t)=>{const{href:i,rel:n,target:o,...r}=e,a=(0,s.useMemo)((()=>(0,s.forwardRef)(((e,t)=>s.createElement("a",{href:i,rel:n,target:o,ref:t,...e})))),[i,n,o]);return s.createElement(E,{...r,renderComponent:a,ref:t,doNotShowTooltipOnTouch:!0})})),(0,s.forwardRef)(((e,t)=>{const{className:i,withActiveState:o,...r}=e,a=(0,s.useMemo)((()=>(0,s.forwardRef)(((e,t)=>s.createElement("button",{...e,ref:t,type:"button"})))),[]);return s.createElement(E,{...r,className:n(i,!o&&k()["no-active-state"]),renderComponent:a,ref:t})}))},379266:(e,t,i)=>{"use strict";i.d(t,{PopupMenuItemToggle:()=>l});var s=i(50959),n=i(497754),o=i(192063),r=i(302946),a=i(354583);function l(e){const{isDisabled:t,hint:i,label:l,isChecked:c,checkboxClassName:u,labelClassName:d,indeterminate:h,isActive:p,checkboxTabIndex:m,checkboxReference:g,checkboxDataRole:b,...v}=e;return s.createElement(o.PopupMenuItem,{...v,isDisabled:t,shortcut:i,dontClosePopup:!0,labelRowClassName:d,label:s.createElement(r.Checkbox,{reference:g,disabled:t,label:l,checked:c,indeterminate:h,className:n(a.checkbox,u),tabIndex:m,"data-role":b})})}},730743:(e,t,i)=>{"use strict";i.d(t,{calcSubMenuPos:()=>n});var s=i(710263);function n(e,t,i={x:0,y:10}){if(t){const{left:i,right:n,top:o}=t.getBoundingClientRect(),r=document.documentElement.clientWidth,a={x:i-e,y:o},l={x:n,y:o};return(0,s.isRtl)()?i<=e?l:a:r-n>=e?l:a}return i}},493173:(e,t,i)=>{"use strict";function s(e,t,i={}){return Object.assign({},e,function(e,t,i={}){const s=Object.assign({},t);for(const n of Object.keys(t)){const o=i[n]||n;o in e&&(s[n]=[e[o],t[n]].join(" "))}return s}(e,t,i))}i.d(t,{mergeThemes:()=>s})},807372:e=>{e.exports={wrapper:"wrapper-q2xHBwCG",createAccountItem:"createAccountItem-q2xHBwCG",labelWrapper:"labelWrapper-q2xHBwCG",accountName:"accountName-q2xHBwCG",currency:"currency-q2xHBwCG",activeCurrency:"activeCurrency-q2xHBwCG",summary:"summary-q2xHBwCG",dropdownButton:"dropdownButton-q2xHBwCG",popup:"popup-q2xHBwCG",removeMargins:"removeMargins-q2xHBwCG",content:"content-q2xHBwCG",singleItemDropdownWrapper:"singleItemDropdownWrapper-q2xHBwCG"}},635944:e=>{e.exports={wrapper:"wrapper-sS0Eevbl",popup:"popup-sS0Eevbl",brokerDropdownWrapper:"brokerDropdownWrapper-sS0Eevbl",brokerDropdownMobileWrapper:"brokerDropdownMobileWrapper-sS0Eevbl",betaBadgeWrapper:"betaBadgeWrapper-sS0Eevbl"
}},275583:e=>{e.exports={toggle:"toggle-NYDT3E70",label:"label-NYDT3E70"}},517327:e=>{e.exports={dropdownButton:"dropdownButton-NgHNzdZC",bigIcon:"bigIcon-NgHNzdZC"}},353249:e=>{e.exports={headerWrapper:"headerWrapper-gktKXRGi",withoutDropdowns:"withoutDropdowns-gktKXRGi",brokerBlock:"brokerBlock-gktKXRGi",betaBadge:"betaBadge-gktKXRGi"}},790170:e=>{e.exports={accountSummaryField:"accountSummaryField-jRGFBLDP",value:"value-jRGFBLDP",title:"title-jRGFBLDP"}},634762:e=>{e.exports={accountSummaryRow:"accountSummaryRow-p0GW1i2G",addMargin:"addMargin-p0GW1i2G"}},949922:e=>{e.exports={count:"count-jY_kTdIW",tabs:"tabs-jY_kTdIW"}},118087:e=>{e.exports={accountManager:"accountManager-RYOkdllU",topPanel:"topPanel-RYOkdllU",secondaryPanel:"secondaryPanel-RYOkdllU",content:"content-RYOkdllU",page:"page-RYOkdllU",active:"active-RYOkdllU",popup:"popup-RYOkdllU"}},126775:e=>{e.exports={pageContainer:"pageContainer-NWiOUge8"}},11124:e=>{e.exports={stretch:"stretch-jequK3xK"}},964492:e=>{e.exports={title:"title-qCE0lhBm",hidden:"hidden-qCE0lhBm"}},722789:e=>{e.exports={container:"container-UePCJPvY",sticky:"sticky-UePCJPvY"}},860227:e=>{e.exports={menuButton:"menuButton-mNpEpVYL",icon:"icon-mNpEpVYL",label:"label-mNpEpVYL",checkBox:"checkBox-mNpEpVYL"}},468133:e=>{e.exports={message:"message-p5eTSZ4Q",iconQuestionInformation:"iconQuestionInformation-p5eTSZ4Q"}},982101:e=>{e.exports={wrapper:"wrapper-oHlQhto0",icon:"icon-oHlQhto0",editIcon:"editIcon-oHlQhto0",buttons:"buttons-oHlQhto0"}},911293:e=>{e.exports={title:"title-DIAl4Kmu",titleContent:"titleContent-DIAl4Kmu",wrapper:"wrapper-DIAl4Kmu"}},497008:e=>{e.exports={container:"container-JKVA979k",logo:"logo-JKVA979k",gap:"gap-JKVA979k",tickerAndDescriptionWrapper:"tickerAndDescriptionWrapper-JKVA979k",textWrapper:"textWrapper-JKVA979k",title:"title-JKVA979k",description:"description-JKVA979k",tooltipIcon:"tooltipIcon-JKVA979k",messageInformer:"messageInformer-JKVA979k"}},65150:e=>{e.exports={title:"title-UBH3TM61"}},410337:e=>{e.exports={text:"text-8tRPX9tj"}},477317:e=>{e.exports={gray:"gray-Qz5vw9Wh",grey:"grey-Qz5vw9Wh",blue:"blue-Qz5vw9Wh",red:"red-Qz5vw9Wh",green:"green-Qz5vw9Wh",orange:"orange-Qz5vw9Wh"}},741886:e=>{e.exports={wrapper:"wrapper-scLCpJg_",currency:"currency-scLCpJg_"}},586816:e=>{e.exports={wrapper:"wrapper-HXba0ecm",rightAligned:"rightAligned-HXba0ecm",tooltipIcon:"tooltipIcon-HXba0ecm"}},410504:e=>{e.exports={wrapper:"wrapper-ukE5gIkU",hiddenLabel:"hiddenLabel-ukE5gIkU",contentWrapper:"contentWrapper-ukE5gIkU",content:"content-ukE5gIkU",labelWrapper:"labelWrapper-ukE5gIkU",label:"label-ukE5gIkU",withPadding:"withPadding-ukE5gIkU",tooltipIcon:"tooltipIcon-ukE5gIkU"}},823092:e=>{e.exports={root:"root-Tu141ut0",tableHead:"tableHead-Tu141ut0",tableBody:"tableBody-Tu141ut0",table:"table-Tu141ut0",wrapper:"wrapper-Tu141ut0",headCell:"headCell-Tu141ut0",sortable:"sortable-Tu141ut0",headCellContent:"headCellContent-Tu141ut0",cell:"cell-Tu141ut0",capitalize:"capitalize-Tu141ut0",rightAlignedCell:"rightAlignedCell-Tu141ut0",cellContent:"cellContent-Tu141ut0",
hideLabelOnMobile:"hideLabelOnMobile-Tu141ut0",hideCellOnMobile:"hideCellOnMobile-Tu141ut0",row:"row-Tu141ut0",lastRow:"lastRow-Tu141ut0",highlightedRow:"highlightedRow-Tu141ut0",leftFixedColumn:"leftFixedColumn-Tu141ut0",rightFixedColumn:"rightFixedColumn-Tu141ut0",inactiveRow:"inactiveRow-Tu141ut0",tableWrapper:"tableWrapper-Tu141ut0",noBouncingScroll:"noBouncingScroll-Tu141ut0",tableWrapperEmpty:"tableWrapperEmpty-Tu141ut0",isScrolled:"isScrolled-Tu141ut0",emptyStateBlock:"emptyStateBlock-Tu141ut0",emptyStateRow:"emptyStateRow-Tu141ut0",emptyStateCell:"emptyStateCell-Tu141ut0",paginationWrapper:"paginationWrapper-Tu141ut0"}},563603:e=>{e.exports={scrollContainer:"scrollContainer-QUmwCARl",scrollWrapper:"scrollWrapper-QUmwCARl"}},312282:e=>{e.exports={mobile:"screen and (max-width: 567px)"}},605899:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AccountManagerHeaderDropdowns:()=>v});var s=i(50959),n=i(497754),o=i.n(n),r=i(601227),a=i(783806),l=i(609838),c=i(192063),u=i(661851),d=i(518799),h=i(807372);l.t(null,void 0,i(426634));function p(e){const{showSettings:t,children:i}=e;return t?s.createElement("div",{className:h.wrapper},i):s.createElement(s.Fragment,null,i)}function m(e){const{name:t,currency:n}=e;return s.createElement(s.Fragment,null,s.createElement("span",{className:h.accountName},`${l.t(null,void 0,i(271207))}: ${t}`),void 0!==n&&s.createElement("span",null,n))}function g(e){const{currentAccount$:t,accountsList:n,removeMargins:a,mode:g,accountSettingsInfo:b,createAccount:v,resetAccount:_,changeAccountSettings:f,deleteAccount:w,trackEvent:y,showErrorNotification:C}=e,k=(0,s.useRef)(null),E=(0,u.useObservable)(t);if(void 0===E)return s.createElement(s.Fragment,null);const P=0===g;if(1===n.length&&void 0===v)return s.createElement("span",{className:o()(h.content,P&&h.popup,h.singleItemDropdownWrapper)},s.createElement(m,{name:E.name,currency:E.currency}));return s.createElement(p,{showSettings:false},s.createElement(d.ToolWidgetMenu,{ref:k,isDrawer:r.CheckMobile.any(),content:s.createElement("span",{className:o()(h.content,P&&h.popup)},s.createElement(m,{name:E.name,currency:E.currency})),className:o()(h.dropdownButton,a&&h.removeMargins,P&&h.popup),title:l.t(null,void 0,i(294111)),"data-name":"account-selector",isShowTooltip:!0},n.map((e=>{const t=E.id===e.id;return s.createElement(c.PopupMenuItem,{key:e.id,className:h.popupMenuItem,labelClassName:h.labelWrapper,isActive:t,label:s.createElement(s.Fragment,null,s.createElement("div",{className:h.accountName},e.name),e.currency&&s.createElement("div",{className:o()(h.currency,t&&h.activeCurrency)},e.currency)),onClick:()=>e.selectAccount()})})),!1),false)}var b=i(635944);function v(e){const{brokerDropdownProps:t,accountDropdownProps:i,commonDropdownProps:n}=e,l=(r.CheckMobile.any()&&(null==t||t.isBeta),0===i.mode);return s.createElement("div",{className:o()(b.wrapper,l&&b.popup)},l?s.createElement("span",{className:b.brokerDropdownWrapper},"Account Manager"):s.createElement(s.Fragment,null),s.createElement(g,{...i}),!l&&s.createElement(a.TerminalDropdown,{...n}))}},
783806:(e,t,i)=>{"use strict";i.d(t,{TerminalDropdown:()=>A});var s=i(50959),n=i(609838),o=i(497754),r=i.n(o),a=i(601227),l=i(72571),c=i(518799),u=i(747633),d=i(192063),h=i(350299);const p=s.lazy((async()=>({default:(await Promise.all([i.e(2109),i.e(2253),i.e(580),i.e(2108),i.e(5145),i.e(855),i.e(2191),i.e(6639),i.e(7194),i.e(4215),i.e(7653),i.e(766),i.e(2985)]).then(i.bind(i,432177))).ExportDataDialogImpl})));function m(e){return s.createElement(s.Suspense,{fallback:null},s.createElement(p,{...e}))}var g=i(661851),b=i(379266),v=i(624216),_=i(759339),f=i(189904),w=i(972535),y=i(823030),C=i(522224),k=i(730743);var E=i(930052),P=i(309210),x=i(379978);function T(e){return s.createElement(E.MatchMedia,{rule:"screen and (max-width: 430px)"},(t=>t||e.forceUseDrawer?s.createElement(I,{...e}):s.createElement(D,{...e})))}function S(e){const{toolboxLabel:t,...i}=e;return s.createElement(d.PopupMenuItem,{toolbox:s.createElement(s.Fragment,null,t&&s.createElement("span",{className:P.toolboxLabel},t),s.createElement(l.Icon,{className:P.icon,icon:x})),suppressToolboxClick:!1,dontClosePopup:!0,...i})}function I(e){const{children:t,className:i,drawerClassName:n,menuItemTheme:o,label:r,icon:a,labelClassName:l,toolboxLabel:c}=e,[u,d]=(0,s.useState)(!1);return s.createElement(s.Fragment,null,s.createElement(S,{theme:o,label:r,toolboxLabel:c,icon:a,labelClassName:l,className:i,onClick:function(){d(!u)}}),u&&s.createElement(_.Drawer,{className:n,position:"Bottom",onClose:function(){d(!1)}},t))}function D(e){const{children:t,className:i,menuClassName:n,menuItemTheme:o,label:r,icon:a,labelClassName:l,toolboxLabel:c}=e,u=(0,s.useRef)((0,f.randomHash)()),d=(0,s.useRef)(null),{isMenuOpened:h,onTriggerClick:p,onTriggerMouseOver:m,onMenuClose:g,getPosition:b,onMenuMouseOver:_}=function(e,t,i={}){const n=s.useContext(y.SubmenuContext);s.useEffect((()=>null==n?void 0:n.registerSubmenu(e,a)),[e]);const o=Boolean((null==n?void 0:n.current)===e);return{isMenuOpened:o,onTriggerClick:function(){(w.mobiletouch||i.forceOpenOnClick)&&(null==n||n.setCurrent(o?null:e))},onMenuClose:function(){null==n||n.setCurrent(null)},getPosition:function(e){return(0,k.calcSubMenuPos)(e.contentWidth,t.current)},onMenuMouseOver:r,onTriggerMouseOver:r};function r(t){!w.mobiletouch&&(0,C.hoverMouseEventFilter)(t)&&(null==n||n.setCurrent(e))}function a(e){var i;return Boolean(null===(i=t.current)||void 0===i?void 0:i.contains(e))}}(u.current,d);return s.createElement(s.Fragment,null,s.createElement(S,{theme:o,label:r,toolboxLabel:c,icon:a,labelClassName:l,className:i,onClick:p,onMouseOver:m,reference:d,isHovered:h}),s.createElement(v.PopupMenu,{className:n,position:b,onClose:g,isOpened:h,doNotCloseOn:d.current,onMouseOver:_},t))}var M=i(275583);function N(e){const{labelClassName:t,summaryFieldsVisibilityInfo$:o,summaryFieldToggler:r,initialSummaryFieldsVisibilityInfo:l}=e,c=(0,g.useObservable)(o,l);return 0===c.size?s.createElement(s.Fragment,null):s.createElement(T,{label:n.t(null,void 0,i(522382)),labelClassName:t,forceUseDrawer:a.CheckMobile.any()
},[...c.values()].map((e=>s.createElement(b.PopupMenuItemToggle,{key:e.id,className:M.toggle,label:s.createElement("span",{className:M.label},e.id),isChecked:e.visible,onClick:()=>r(e.id)}))))}var F=i(517327),z=i(48008);function A(e){const{dataExportController:t,initialSummaryFieldsVisibilityInfo:o,summaryFieldToggler:p,summaryFieldsVisibilityInfo$:g,iconSize:b}=e,[v,_]=function(e){const{dataExportController:t,trackEvent:i}=e,[n,o]=(0,s.useState)(!1);return void 0===t?[()=>{},null]:[()=>o(!0),s.createElement(m,{isOpened:n,onClose:()=>o(!1),trackEvent:i,dataExportController:t})]}({dataExportController:t});return s.createElement(s.Fragment,null,s.createElement(c.ToolWidgetMenu,{arrow:!1,isDrawer:a.CheckMobile.any(),className:F.dropdownButton,content:s.createElement(u.ToolWidgetButton,{title:n.t(null,void 0,i(141610)),icon:s.createElement(l.Icon,{className:r()("big"===b&&F.bigIcon),icon:z})}),"data-name":"terminal-dropdown"},s.createElement(N,{labelClassName:F.label,summaryFieldToggler:p,summaryFieldsVisibilityInfo$:g,initialSummaryFieldsVisibilityInfo:o}),null!==_&&s.createElement(d.PopupMenuItem,{labelClassName:F.label,label:(0,h.appendEllipsis)(n.t(null,void 0,i(125769))),onClick:v})),_)}},407999:(e,t,i)=>{"use strict";i.d(t,{makeAccountManagerHeaderDropdownsProps:()=>m});var s=i(275734),n=i(757604),o=i(650151),r=i(481330),a=i(480802),l=i(752275),c=i(6835),u=i(637401);const d=(0,c.getLogger)("Trading.DataExport");class h{constructor(e,t){this._prefix=t,this._getDataExporters=e}tabs(){return[...this._getDataExporters()].map((([e,t])=>({value:e,content:t.title})))}async exportData(e){const{exporters:t,title:i}=(0,o.ensureDefined)(this._getDataExporters().get(e),"data exporter");try{const e=await Promise.all(t.map((({exportData:e})=>e())));e.forEach(((s,n)=>{const o=t[n].name,r=void 0===o||""===o?`${(0,a.default)(i)}${e.length>1?`-${n+1}`:""}`:(0,a.default)(o);let c="";if(0!==s.length){const e=[p(Object.keys(s[0]))];for(const t of s)e.push(p(Object.values(t)));c=e.join("\n")}(0,l.saveTextFile)(`${(0,a.default)(this._prefix)}-${r}-${(new Date).toISOString()}.csv`,c,"text/csv")}))}catch(e){d.logError((0,u.getLoggerMessage)(e))}}}function p(e){return e.map((e=>"number"==typeof e?e:(0,l.escapeCSVValue)(e))).join(",")}async function m(e,t,i,a){const l=(await e.brokersMetainfo()).filter((e=>!e.configFlags.isSuspended)),c=Promise.resolve(void 0),u=(0,o.ensureNotNull)(e.activeBroker()),d=await c,p=await u.accountsMetainfo(),m=u.accountManagerInfo();if(0===p.length)return;const g=p.map((e=>{var t;return{id:e.id,name:e.name,currency:""===e.currency?void 0:null!==(t=e.currency)&&void 0!==t?t:void 0,isDefault:e.isDefault,selectAccount:async()=>{e.id!==u.currentAccount()&&u.setCurrentAccount(e.id)}}})),b=e=>(0,o.ensureDefined)(g.find((t=>t.id===e))),v=(0,s.fromEventPattern)((e=>u.currentAccountUpdate.subscribe(null,e)),(e=>u.currentAccountUpdate.unsubscribe(null,e)),b).pipe((0,n.startWith)(b(u.currentAccount()))),_=u.metainfo(),f=void 0!==d?(0,r.brokersListFromPlans)(l,d):void 0,w=void 0!==f?{title:m.accountTitle,brokerName:_.title,
brokerId:_.id,logo:_.logoMiniUrl,logoBlack:_.logoMiniBlackUrl,actions:u.buttonDropdownActions(),trading:e,brokers:f,mode:i,isBeta:_.isBeta,realtimeDataPermissionsConfig:_.realtimeDataPermissionsToggleConfig}:void 0,y={dataExportController:void 0!==a?new h(a,_.title):void 0,initialSummaryFieldsVisibilityInfo:t.fieldsVisibilityInfo(),summaryFieldsVisibilityInfo$:t.fieldsVisibilityInfo$,summaryFieldToggler:t.toggleField};return{brokerDropdownProps:w,accountDropdownProps:{currentAccount$:v,accountsList:g,removeMargins:void 0===w,trackEvent:e.trackEvent,showErrorNotification:e.showErrorNotification,mode:i,createAccount:u.config.supportCreateAccount?u.createAccount:void 0,deleteAccount:u.config.supportDeleteAccount?u.deleteAccount:void 0,resetAccount:u.config.supportResetAccount?u.resetAccount:void 0,changeAccountSettings:u.config.supportChangeAccountSettings?u.changeAccountSettings:void 0,accountSettingsInfo:u.config.supportCreateAccount||u.config.supportResetAccount||u.config.supportChangeAccountSettings?u.accountSettingsInfo:void 0},commonDropdownProps:y}}},225604:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AccountManager:()=>cn});var s=i(609838),n=i(50959),o=i(500962),r=i(497754),a=i.n(r),l=i(650151),c=i(688401),u=i(601227),d=i(156963),h=i(481330),p=i(462056);class m{constructor(e){this._delegates=e}subscribe(e,t,i){this._delegates.forEach((s=>s.subscribe(e,t,i)))}unsubscribe(e,t){this._delegates.forEach((i=>i.unsubscribe(e,t)))}unsubscribeAll(e){this._delegates.forEach((t=>t.unsubscribeAll(e)))}}var g=i(382280),b=i(98454),v=i(350299);function _(e){return 0!==e.qty||0!==e.longQty&&void 0!==e.longQty||0!==e.shortQty&&void 0!==e.shortQty}var f=i(247465);class w{constructor(e){this._isActive=!1,this._created=!1,this._started=!1,this._fullUpdateDelegate=null,this._partialUpdateDelegate=null,this._deleteUpdateDelegate=null,this._noMoreEntries=!1,this._isLoadingMore=!1,this._fullUpdateCancel=null,this._exportData=async()=>{const e=this._isActive;e||(this.start(),await this.setActive(!0));const t=await this._view.exportData();return e||await this.setActive(!1),t},this._viewVisibilityHandler=e=>{this._model.setActive(e)},this._sortingChangeHandler=e=>{this._updateModelSortingState(e)},this._sizeChangeHandler=()=>{this._updateModelSortingState({column:this._view.sortingColumn(),mode:this._view.sortingMode()})};const{idProperty:t,name:i,model:s,view:n,source:o,subscriptions:r,supportPagination:a}=e;this._idProperty=t,this._model=s,this._view=n,this._name=i,this._source=o,this._subscriptions=r,this._supportPagination=Boolean(a)}start(){this._started||(this._updateModelSortingState({column:this._view.sortingColumn(),mode:this._view.sortingMode()}),this._subscribeUpdates(),this._subscribeView(),this._started=!0)}stop(){this._started&&(this._unsubscribeUpdates(),this._unsubscribeView(),this.reset(),this._started=!1)}isStarted(){return this._started}async setActive(e){(0,l.assert)(!e||this._started,"Should be started first"),this._isActive!==e&&(this._isActive=e,this._isActive&&!this._created&&await this._fullUpdate(),
this._model.setActive(e))}isActive(){return this._isActive}reset(){this._isActive?this._fullUpdate():(this._deleteRows(),this._created=!1)}destroy(){this._unsubscribeUpdates(),this._unsubscribeView()}getDataExporter(){return{name:this._name,exportData:this._exportData}}highlightRowById(e){this._view.highlightRowById(e)}setRowInactiveById(e,t){this._view.setRowInactiveById(e,t)}setRowInactiveByFilter(e){this._view.setRowInactiveByFilter(e)}addFormatter(e){this._view.addFormatter(e)}addFormatters(e){for(const t of e)this.addFormatter(t)}isRowInViewport(e){return this._view.isRowInViewport(e)}setColumnAvailable(e,t){this._view.setColumnAvailable(e,t)}setRowLinkedByFilter(e){this._view.setRowLinkedByFilter(e)}setRowLinkedById(e,t){this._view.setRowLinkedById(e,t)}rowIdAtEvent(e){return this._view.rowIdAtEvent(e)}rowAtEvent(e){const t=this._view.rowIdAtEvent(e);if(void 0!==t)return this.rowById(t)}rowById(e){return this._model.data().get(e)}_update(e){return!!this._created&&(this._model.addRow(e),!0)}_deleteRow(e){this._created&&this._model.deleteRow(e)}_deleteRows(){this._model.deleteRows(),this._created=!1}_fullUpdate(){if(this._deleteRows(),this._noMoreEntries=!1,!this._isActive)return Promise.resolve();this._fullUpdateCancel&&this._fullUpdateCancel();const e=(0,f.makeCancelable)(this._source());return this._fullUpdateCancel=e.cancel,e.promise.then((e=>{this._fullUpdateCancel=null,this._model.addRows(e),this._created=!0,this._onCreated()})).catch((e=>{if(!(0,f.isCancelled)(e))throw e}))}_onCreated(){}_loadMoreIfBottomVisible(e){if(this._isLoadingMore||!e||this._noMoreEntries)return;const t=this._model.rows().length-1;if(-1===t)return;const i=this._model.rows()[t][this._idProperty];this._isLoadingMore=!0,this._source(i).then((e=>{0!==e.length?(this._model.addRows(e),this._isLoadingMore=!1):this._noMoreEntries=!0})).catch((()=>{this._isLoadingMore=!1}))}_subscribeView(){this._view.onSizeChange.subscribe(this,this._sizeChangeHandler),this._view.onTableVisibilityChange.subscribe(this,this._viewVisibilityHandler),this._view.onSortingChange.subscribe(this,this._sortingChangeHandler),this._supportPagination&&this._view.onBottomVisibilityChange.subscribe(this,this._loadMoreIfBottomVisible)}_unsubscribeView(){this._view.onSizeChange.unsubscribe(this,this._sizeChangeHandler),this._view.onTableVisibilityChange.unsubscribe(this,this._viewVisibilityHandler),this._view.onSortingChange.unsubscribe(this,this._sortingChangeHandler),this._view.onBottomVisibilityChange.unsubscribe(this,this._loadMoreIfBottomVisible)}_updateModelSortingState(e){const t=0!==this._view.size()||this._supportPagination?e.mode:null;this._model.setSortingState({column:null===t?void 0:e.column,mode:t})}_subscribeUpdates(){if(this._fullUpdateDelegate)throw new Error("should unsubscribe first");this._fullUpdateDelegate=this._subscriptions.fullUpdateDelegate,this._fullUpdateDelegate.subscribe(this,this._fullUpdate),this._partialUpdateDelegate=this._subscriptions.rowUpdateDelegate,this._partialUpdateDelegate.subscribe(this,this._update),
this._subscriptions.rowDeleteDelegate&&(this._deleteUpdateDelegate=this._subscriptions.rowDeleteDelegate,this._deleteUpdateDelegate.subscribe(this,this._deleteRow))}_unsubscribeUpdates(){this._fullUpdateDelegate&&(this._fullUpdateDelegate.unsubscribe(this,this._fullUpdate),delete this._fullUpdateDelegate),this._partialUpdateDelegate&&(this._partialUpdateDelegate.unsubscribe(this,this._update),delete this._partialUpdateDelegate),this._deleteUpdateDelegate&&(this._deleteUpdateDelegate.unsubscribe(this,this._deleteRow),delete this._deleteUpdateDelegate)}}var y=i(91679);class C extends class{constructor(e,t){this._filterTabs=[],this._active=!1,this._count=new y.WatchedValue,this._content=e,this._id=t.id,this._name=t.name}setActive(e){this._active!==e&&(this._active=e,this._onActiveChanged(e))}isActive(){return this._active}reset(){}destroy(){}content(){return this._content}name(){return this._name}id(){return this._id||this._name}async contextItems(e){return[]}topline(){return null}activeFilterTabId(){return this._activeFilterTabId}filterTabs(){return this._filterTabs}count(){return this._count.readonly()}activateFilterTab(e){this._activeFilterTabId=e}_setCount(e){this._count.setValue(e)}_onActiveChanged(e){}}{constructor(e,t,i){super(e,t),this._tableControllers=i}reset(){this._tableControllers.forEach((e=>e.reset())),super.reset()}destroy(){this._tableControllers.forEach((e=>e.destroy())),super.destroy()}getExporters(){const e=this._tableControllers.map((e=>e.getDataExporter()));return{title:this.name(),exporters:e}}contextRow(e){}_onActiveChanged(e){this._tableControllers.forEach((t=>t.setActive(e)))}}var k=i(150335),E=i(793361),P=i(47680),x=i(981011),T=i(906355);var S=i(372605),I=i(637927),D=i(918114),M=i(710263),N=i(761248),F=i(637401),z=i(671129),A=i(75577),R=i(187962),O=i(449943),L=i(636080),B=i(252130),U=i(683614),V=i(585938),H=i(972535),W=i(744471);function j(e){e.stopPropagation(),H.mobiletouch&&((0,W.tooltipClickHandler)(e),document.addEventListener("touchend",(e=>e.preventDefault()),{once:!0}))}function G(e){return{ariaLabel:e,tooltip:e,onClick:j}}function q(e){const{dependencies:t,customText:i}=e,s=(0,n.useRef)(null),o=(0,n.useRef)(void 0),r=(0,V.useForceUpdate)(),a=(0,B.useIsMounted)(),l=(0,n.useCallback)((()=>{if(!a.current)return;if(null===s.current||s.current.offsetWidth>=s.current.scrollWidth)return o.current=void 0,void r();const e=null!=i?i:s.current.textContent;null!==e&&e!==o.current&&(o.current=e,r())}),t);return(0,n.useEffect)((()=>l()),[l]),(0,U.useVisibility)(s,(()=>l()),(()=>{})),[s,void 0!==o.current?G(o.current):null]}var Y=i(164530);const K=s.t(null,void 0,i(120294));function $(e){return{text:void 0!==(null==e?void 0:e.text)&&""!==e.text?`${K}\n\n${e.text}`:K,type:(null==e?void 0:e.type)===Y.OrderOrPositionMessageType.Error?Y.OrderOrPositionMessageType.Error:Y.OrderOrPositionMessageType.Warning}}var Z=i(656846),Q=i(468133);const J={[Z.OrderOrPositionMessageType.Information]:"default",[Z.OrderOrPositionMessageType.Warning]:"warning",[Z.OrderOrPositionMessageType.Error]:"danger"},X={
[Z.OrderOrPositionMessageType.Information]:"info",[Z.OrderOrPositionMessageType.Warning]:"exclamation",[Z.OrderOrPositionMessageType.Error]:"exclamation"};function ee(e){e.stopPropagation(),H.mobiletouch&&((0,W.tooltipClickHandler)(e),document.addEventListener("touchend",(e=>e.preventDefault()),{once:!0}))}function te(e){const{type:t,text:i,className:s}=e;return n.createElement("div",{className:a()(Q.message,s)},n.createElement(R.IconQuestionInformation,{className:Q.iconQuestionInformation,icon:X[t],intent:J[t],ariaLabel:i,tooltip:i,onClick:ee}))}function ie(e){return e.replace(/\s+/g," ")}function se(e,t){return(0,n.useMemo)((()=>t?`${ie(e)} - ${ie(t)}`:ie(e)),[e,t])}i(868333);var ne=i(382563);function oe(e){{let t=[];const i=function(e,t=!0){const[i,s]=(0,n.useState)({quotes:null,completed:!1,invalid:!1});return(0,n.useEffect)((()=>{s({completed:!1,invalid:!1,quotes:null});const i=(0,ne.getQuoteSessionInstance)("full"),n=()=>{i.unsubscribe("useSymbolQuotes",e,o)},o=e=>{const{values:i,complete:o,status:r}=e;s({invalid:"ok"!==r,quotes:{...i},completed:void 0!==o||"ok"!==r}),void 0===o&&"ok"===r||t&&n()};return i.subscribe("useSymbolQuotes",e,o),()=>{n()}}),[e]),i}(e,!1),s=i.quotes;return s&&(s.logoid?t=[s.logoid]:s["currency-logoid"]&&s["base-currency-logoid"]&&(t=[s["currency-logoid"],s["base-currency-logoid"]])),{logoUrls:t,description:null==s?void 0:s.description}}}var re=i(497008);function ae(e){var t;const{symbol:i,brokerSymbol:s,message:o}=e,r=oe(i),l=""!==i?o:$(o),c=se(s,null==r?void 0:r.description),[u,d]=q({dependencies:[s],customText:c}),[h,p]=q({dependencies:[null==r?void 0:r.description],customText:c}),m=null!=p?p:d;return n.createElement("div",{className:re.container},n.createElement("span",{className:re.logo},void 0!==(null==r?void 0:r.logoUrls)&&r.logoUrls.length>1?n.createElement(O.CircleLogoPair,{primaryLogoUrl:r.logoUrls[0],secondaryLogoUrl:r.logoUrls[1],size:"xsmall"}):n.createElement(L.CircleLogo,{logoUrl:null===(t=null==r?void 0:r.logoUrls)||void 0===t?void 0:t[0],placeholderLetter:null==s?void 0:s[0],size:"xsmall"})),n.createElement("div",{className:re.tickerAndDescriptionWrapper},n.createElement("div",{className:a()(re.textWrapper,null===m&&re.gap)},n.createElement("span",{className:re.title,ref:u},s),void 0!==(null==r?void 0:r.description)&&n.createElement("span",{className:re.description,ref:h},r.description)),null!==m&&n.createElement(R.IconQuestionInformation,{...m,icon:"info",className:re.tooltipIcon}),void 0!==l&&n.createElement(te,{...l,className:re.messageInformer})))}var le=i(911293);function ce(e){const{brokerSymbol:t,logoComponent:i,tooltipText:s}=e;return n.createElement("div",{className:le.wrapper},i,n.createElement("div",{className:a()(le.title,"apply-common-tooltip"),"data-tooltip":null!=s?s:t},n.createElement("span",{className:le.titleContent},t)))}function ue(e){var t;const{brokerSymbol:i,symbol:s}=e,o=oe(s),r=se(i,null==o?void 0:o.description);return n.createElement(ce,{brokerSymbol:i,
logoComponent:void 0!==(null==o?void 0:o.logoUrls)&&o.logoUrls.length>1?n.createElement(O.CircleLogoPair,{primaryLogoUrl:o.logoUrls[0],secondaryLogoUrl:o.logoUrls[1],size:"xsmall"}):n.createElement(L.CircleLogo,{logoUrl:null===(t=null==o?void 0:o.logoUrls)||void 0===t?void 0:t[0],placeholderLetter:null==i?void 0:i[0],size:"xsmall"}),tooltipText:r})}var de=i(65150);const he=d.enabled("show_symbol_logos")&&d.enabled("show_symbol_logo_in_account_manager");function pe(e){const t=(0,z.useMatchMedia)(A.TradingLayoutBreakpoint.Mobile);return he?t?n.createElement(ae,{...e}):n.createElement(ue,{...e}):t?n.createElement("span",{className:de.title},e.brokerSymbol):n.createElement(ce,{...e})}var me=i(477317);function ge(e){return 1===e?me.blue:me.red}function be(e){const{side:t}=e;return n.createElement("span",{className:ge(t)},(0,F.sideToText)(t))}function ve(e){const{side:t}=e;return n.createElement("span",{className:ge(t)},(0,F.positionSideToText)(t))}var _e=i(410337);function fe(e){const{value:t,noWrap:i}=e;return n.createElement("span",{className:a()(_e.text,i&&_e.noWrap)},t)}const we=" ";function ye(e){const{priceFormatter:t,price:i,prevPrice:s}=e,n=(0,E.splitThousands)(t.format(i),we);if(void 0===s)return{same:n};const o=(0,E.splitThousands)(t.format(s),we),r=n.split("").findIndex(((e,t)=>e!==o[t]));if(-1===r)return{same:n};return{same:n.substring(0,r),differs:n.substring(r)}}function Ce(e){const{price:t,prevPrice:i,lastCharSup:s}=e,{same:o,differs:r}=ye(e);return void 0===r||void 0===i?function(e,t){return n.createElement("span",null,t?ke(e):(0,M.forceLTRStr)(e))}(o,s):n.createElement("span",null,o,n.createElement("span",{className:t>i?me.green:me.red},s?ke(r):r))}function ke(e){const t=/^([^]*)(\S)(\s*)$/.exec(e);return"0"===e||null===t?n.createElement(n.Fragment,null,(0,M.forceLTRStr)(e)):n.createElement(n.Fragment,null,t[1],n.createElement("sup",null,t[2]),void 0!==t[3]&&""!==t[3]&&n.createElement("sup",null,t[3]))}const Ee={3:me.gray,6:me.blue,5:me.red,2:me.green,1:me.orange,4:void 0};function Pe(e){const{status:t}=e;return n.createElement("span",{className:Ee[t],style:{textTransform:"capitalize"}},(0,h.orderStatusToText)(t))}var xe=i(960521);function Te(e){return e?` ${e}`:""}var Se=i(741886);function Ie(e){const{className:t,value:i,currency:s}=e;return n.createElement("span",{className:a()(Se.wrapper,t)},n.createElement("span",null,i),s&&n.createElement("span",{className:Se.currency},s))}function De(e){return new xe.Big(e).round(2)}function Me(e){const t=De(e);return`${t.gt(0)?"+":""}${(0,E.splitThousands)(t.toFixed(2),we)}`}function Ne(e){const{profit:t,currency:i}=e;return(0,S.isNumber)(t)?(0,M.forceLTRStr)(Me(t)+Te(i)):""}function Fe(e){const{profit:t,currency:i}=e;if(!(0,S.isNumber)(t))return n.createElement("span",null);const s=(0,M.forceLTRStr)(Me(t)),o=function(e){const t=De(e);return t.gt(0)?me.green:t.lt(0)?me.red:me.grey}(t);return void 0===i?n.createElement("span",{className:o},s):n.createElement(Ie,{value:s,currency:i,className:o})}function ze(e){return!(0,h.isDefined)(e)||isNaN(e)?"":(0,
M.forceLTRStr)(Math.abs(e||0)<.001?"0.00":(0,E.splitThousands)((e||0).toFixed(2),we))}const Ae=new P.DateTimeFormatter,Re=new class{constructor(){this._dateFormatter=new T.DateFormatter,this._timeFormatter=new x.TimeFormatter}format(e){const t=new Date(e.dateOrDateTime);let i=this._dateFormatter.format(t);return e.hasTime&&(i+=" "+this._timeFormatter.format(t)),i}formatLocal(e){const t=new Date(e.dateOrDateTime);let i=this._dateFormatter.formatLocal(t);return e.hasTime&&(i+=" "+this._timeFormatter.formatLocal(t)),i}},Oe=new I.PercentageFormatter,Le=s.t(null,void 0,i(660187)).toLowerCase(),Be=s.t(null,void 0,i(50985)).toLowerCase();function Ue({values:e}){return e.join(we)}function Ve(e){const{values:[t],prevValues:[i]=[void 0],priceFormatter:s}=e;return(0,h.isDefined)(t)?function(e){const{same:t,differs:i}=ye(e);return(0,M.forceLTRStr)(`${t}${i||""}`)}({price:t,prevPrice:null!=i?i:void 0,priceFormatter:s}):""}function He({values:[e]}){return{value:(0,h.isDefined)(e)&&!isNaN(e)?e:""}}const We=[{name:"symbol",formatElement:({values:[e,t,i]})=>n.createElement(pe,{brokerSymbol:e,symbol:t,message:i}),formatText:({values:[e]})=>e},{name:"side",formatElement:({values:[e]})=>n.createElement(be,{side:e}),formatText:({values:[e]})=>(0,F.sideToText)(e)},{name:"positionSide",formatElement:({values:[e]})=>n.createElement(ve,{side:e}),formatText:({values:[e]})=>(0,F.positionSideToText)(e)},{name:"text",formatElement:e=>n.createElement(fe,{value:Ue(e)}),formatText:Ue},{name:"type",formatText:({values:[e,t,i]})=>(0,F.orderTypeToText)({orderType:e,parentId:t,stopType:i})},{name:"formatPrice",formatElement:({values:[e],priceFormatter:t,prevValues:[i]=[void 0]})=>(0,h.isDefined)(e)&&(0,h.isDefined)(t)?n.createElement(Ce,{priceFormatter:t,price:e,prevPrice:null!=i?i:void 0}):void 0,formatText:Ve,formatRaw:He,isPriceFormatterNeeded:!0},{name:"formatPriceForexSup",formatElement:({values:[e],priceFormatter:t,prevValues:[i]=[void 0]})=>(0,h.isDefined)(e)?n.createElement(Ce,{priceFormatter:t,price:e,prevPrice:null!=i?i:void 0,lastCharSup:t instanceof D.PriceFormatter&&t.hasForexAdditionalPrecision()}):void 0,formatText:Ve,formatRaw:He,isPriceFormatterNeeded:!0},{name:"status",formatElement:({values:[e]})=>(0,h.isDefined)(e)?n.createElement(Pe,{status:e}):void 0,formatText:({values:[e]})=>(0,h.isDefined)(e)?(0,N.capitalizeFirstLetter)((0,F.orderStatusToText)(e)):""},{name:"date",formatText:({values:[e]})=>(0,h.isDefined)(e)&&qe(e)?Ae.format(new Date(e)):""},{name:"localDate",formatText:({values:[e]})=>(0,h.isDefined)(e)&&qe(e)?Ae.formatLocal(new Date(e)):""},{name:"dateOrDateTime",formatText:({values:[e]})=>(0,h.isDefined)(e)&&qe(e.dateOrDateTime)?Re.format(e):""},{name:"localDateOrDateTime",formatText:({values:[e]})=>(0,h.isDefined)(e)&&qe(e.dateOrDateTime)?Re.formatLocal(e):""},{name:"fixed",formatText:({values:[e]})=>ze(e),formatRaw:He},{name:"fixedInCurrency",formatElement:({values:[e,t]})=>(0,h.isDefined)(e)&&(0,h.isDefined)(t)?n.createElement(Ie,{value:ze(e),currency:t}):ze(e),formatText:({values:[e,t]})=>{const i=ze(e),s=Te(t)
;return i?(0,M.forceLTRStr)(i+s):i},requiredFieldsIndexes:[0]},{name:"variablePrecision",formatText:({values:[e]})=>!(0,h.isDefined)(e)||isNaN(e)?"":(0,M.forceLTRStr)(String((0,k.fixComputationError)(e))),formatRaw:He},{name:"pips",formatText:({values:[e]})=>(0,S.isNumber)(e)?(0,M.forceLTRStr)(Math.abs(e)<.01?"0.0":(0,E.splitThousands)(e.toFixed(1),we)):"",formatRaw:He},{name:"integerSeparated",formatText:({values:[e]})=>(0,S.isNumber)(e)?(0,M.forceLTRStr)((0,E.splitThousands)(e.toFixed(0),we)):"",formatRaw:He},{name:"formatQuantity",formatText:({values:[e]})=>(0,S.isNumber)(e)?(0,M.forceLTRStr)((0,E.splitThousands)(e,we)):"",formatRaw:He},{name:"profit",formatElement:({values:[e]})=>(0,h.isDefined)(e)?n.createElement(Fe,{profit:e}):void 0,formatText:({values:[e]})=>(0,h.isDefined)(e)?Ne({profit:e}):"",formatRaw:He},{name:"profitInInstrumentCurrency",formatElement:({values:[e,t]})=>(0,h.isDefined)(e)?n.createElement(Fe,{profit:e,currency:t}):void 0,formatText:({values:[e,t]})=>(0,h.isDefined)(e)?Ne({profit:e,currency:t}):"",formatRaw:({values:[e,t]})=>[{...He({values:[e]}),title:Le},{value:t||"",title:Be}],requiredFieldsIndexes:[0]},{name:"percentage",formatText:({values:[e]})=>(0,S.isNumber)(e)?(0,M.forceLTRStr)(Oe.format(e)):"",formatRaw:e=>({...He(e),title:"%"})},{name:"marginPercent",formatText:({values:[e]})=>(0,h.isDefined)(e)?isFinite(e)?e<.01?e+"%":Oe.format(e):"> 200%":"",formatRaw:({values:[e]})=>({value:isFinite(e)?He({values:[e]}).value:"",title:"%"})},{name:"empty",formatText:()=>""}],je={name:"default",formatText:Ue};function Ge(e){var t;return null!==(t=We.find((t=>t.name===e)))&&void 0!==t?t:je}function qe(e){return"number"==typeof e?e>0:""!==e}var Ye=i(11124);function Ke(e){const t=document.createElement("div");return t.style.position="relative",!1!==(null==e?void 0:e.stretch)&&t.classList.add(Ye.stretch),t}var $e=i(343370),Ze=i(466052);function Qe(e){return void 0!==e.sortProp&&""!==e.sortProp?e.sortProp:e.dataFields.length>0?e.dataFields[0]:void 0}function Je(e,t){return void 0===e&&void 0!==t?1:void 0!==e&&void 0===t?-1:void 0===e||void 0===t?0:e<t?1:e>t?-1:0}class Xe{constructor(e){this.onRowsChanged=new Ze.Delegate,this.onRowChanged=new Ze.Delegate,this._rowsData=new Map,this._priceFormatters=new Map,this._rows=[],this._isActive=!1,this._sortingPostponed=!1,this._sortingMode=null;const{columns:t,options:i,priceFormatterGetter:s,reverse:n=!0}=e,{idProperty:o,defaultSortingParameters:r,group:a}=i;this._idProperty=o,this._reverse=n,this._defaultSortingInfo=void 0!==r?{sortingProperty:r.property,sortingMode:!1===r.asc?1:0}:void 0,this._group=a,this._priceFormatterGetter=s,this._sortAndGroupRowsThrottled=(0,$e.default)((()=>{this._sortAndGroupRows(),this._update()}),1e3),this._columns=new Map(t.map((e=>[e.id,e])))}setActive(e){this._isActive=e,this._onTableStateChanged(e)}addRow(e){const t=e[this._idProperty];this._rowsData.has(t)?this._updateRow(t,e):(this._addRowData(e),this._sortAndGroupRowsThrottled.cancel(),this._sortAndGroupRows(),this._update())}addRows(e){for(const t of e){
const e=t[this._idProperty];this._rowsData.has(e)?this._updateRowData(e,t):this._addRowData(t)}this._sortAndGroupRows(),this._update()}rows(){return this._rows}data(){return this._rowsData}deleteRow(e){const t=this._rowsData.get(e);void 0!==t&&(this._rowsData.delete(e),this._rows.splice(this._rows.indexOf(t),1),this._update())}deleteRows(){this._deleteRows(),this._update()}destroy(){this._sortAndGroupRowsThrottled.cancel(),this._deleteRows()}setSortingState(e){this._sortingColumn===e.column&&this._sortingMode===e.mode||(this._sortingColumn=e.column,this._sortingMode=e.mode,this._onSortingChange())}async resolvePriceFormatter(e){if(void 0!==this._priceFormatterGetter)try{const t=this._rowsData.get(e);if(void 0===t||void 0!==t.priceFormatter)return;t.priceFormatter=null;const i=this._priceFormatters.get(e);if(void 0!==i)return t.priceFormatter=i,void this._update();const s=await this._priceFormatterGetter(t);this._priceFormatters.set(e,s),t.priceFormatter=s,this._update()}catch(e){}}_deleteRows(){this._rowsData.clear(),this._rows=[]}_sortAndGroupRows(){this._isActive?this._rows.sort(((e,t)=>function(e){var t;const{aRow:i,bRow:s,sortingMode:n,sortingProperty:o,groupDefiner:r}=e;let a=0;if(void 0!==r&&(a=Je(r(i),r(s))),0===a&&(a=i.isTotalRow?1:s.isTotalRow?-1:0),null===n||0!==a||void 0===o)return a;let l=i[o],c=s[o];return void 0!==(null==l?void 0:l.dateOrDateTime)&&(l=l.dateOrDateTime,c=null!==(t=null==c?void 0:c.dateOrDateTime)&&void 0!==t?t:1/0),a=Je(l,c),0===n?-a:a}({aRow:e,bRow:t,groupDefiner:this._group,...this._getSortingInfo()}))):this._sortingPostponed=!0}_getSortingInfo(){var e,t,i;const s=void 0!==this._sortingColumn?this._columns.get(this._sortingColumn):void 0,n=void 0!==s?Qe(s):void 0;return void 0!==n?{sortingProperty:n,sortingMode:this._sortingMode}:{sortingProperty:null===(e=this._defaultSortingInfo)||void 0===e?void 0:e.sortingProperty,sortingMode:null!==(i=null===(t=this._defaultSortingInfo)||void 0===t?void 0:t.sortingMode)&&void 0!==i?i:null}}_onSortingChange(){this._sortAndGroupRowsThrottled.cancel(),null===this._sortingMode&&this._resetRowsOrder(),this._sortAndGroupRows(),this._update()}_resetRowsOrder(){this._rows=[...this._rowsData.values()],this._reverse&&this._rows.reverse()}_onTableStateChanged(e){if(!e)return this._sortAndGroupRowsThrottled.cancel(),void(this._sortingPostponed=!0);this._update()}_update(){this._isActive&&(this._sortingPostponed&&(this._sortingPostponed=!1,this._sortAndGroupRows()),this.onRowsChanged.fire())}_updateRowData(e,t){var i,s;const n=(0,l.ensureDefined)(this._rowsData.get(e)),{prevValue:o,priceFormatter:r,...a}=n;for(const e of Object.keys(n))delete n[e];Object.assign(n,t,{priceFormatter:r,prevValue:a}),this.onRowChanged.fire(e);const c=(null===(i=this._group)||void 0===i?void 0:i.call(this,n))!==(null===(s=this._group)||void 0===s?void 0:s.call(this,a)),{sortingProperty:u}=this._getSortingInfo();(void 0!==u&&t[u]!==a[u]||c)&&this._sortAndGroupRowsThrottled()}_updateRow(e,t){this._updateRowData(e,t),this._update()}_addRowData({...e}){
this._rowsData.set(e[this._idProperty],e),this._reverse?this._rows.unshift(e):this._rows.push(e)}}var et=i(870122),tt=i(586240),it=i(898237),st=i(505357),nt=i(87523),ot=i(281670),rt=i(290556);function at(e){switch(e){case"xsmall":return"xsmall";case"small":return"small";case"medium":return"medium";default:return}}var lt=i(60610);function ct(e){return n.createElement(it.LightButton,{className:lt.arrow,variant:"secondary",color:"gray",onClick:e.onClick,startIcon:(t=e.direction,i=e.size,"xsmall"===i?"prev"===t?rt:ot:"prev"===t?nt:st),"aria-label":e.ariaLabel,disabled:e.disabled,reference:e.reference,tabIndex:e.tabIndex,size:e.size,iconOnly:!0});var t,i}var ut=i(374287);function dt(e){const{pageNumber:t,currentPage:i,renderComponent:s,reference:o,getHref:r,getNumberAriaLabel:a,onClick:l,tabIndex:c,fallbackToDummyHref:u=!1,size:d}=e,{href:h,handleClick:p}=function(e){const{getHref:t,fallbackToDummyHref:i,pageNumber:s,onClick:o}=e,r=(0,n.useMemo)((()=>t?t(s):i?"#":void 0),[t,i,s]),a=(0,n.useCallback)((e=>{!i||r&&"#"!==r||e.preventDefault(),o&&o(e,s)}),[o,i,s,r]);return{href:r,handleClick:a}}({pageNumber:t,getHref:r,fallbackToDummyHref:u,onClick:l});return n.createElement(it.LightAnchorButton,{className:ut.number,renderComponent:s,variant:t===i?"primary":"ghost",color:"gray",isSelected:t===i,"aria-current":t===i,reference:o,href:h,onClick:p,tabIndex:c,"aria-label":a?a(t):void 0,ellipsis:!1,size:at(d)},t)}var ht=i(855393);var pt=i(708886),mt=i(65160);function gt({lastPage:e,currentPage:t}){const i=(0,n.useMemo)((()=>function(e){const t=[];for(let i=1;i<=e;i++)t.push(i);return t}(e)),[e]),s=(0,n.useRef)(null),o=(0,n.useRef)(null),r=(0,n.useRef)(0),a=(0,n.useRef)(0),l=(0,n.useRef)(t),[c,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(0),[p,m]=(0,n.useState)(!1),g=(0,n.useCallback)((s=>[i[0],t,e].includes(s)),[i,t,e]);(0,ht.useIsomorphicLayoutEffect)((()=>{if(t===l.current)return;const s=l.current===i[0]&&t===e,n=l.current===e&&t===i[0];u(s||n),l.current=t}),[t,i,e]);const b=(0,n.useCallback)((e=>{var s;const n=null!==(s=e.widthsMap.get("number"))&&void 0!==s?s:0,l=function(e){if(!e||!window)return-1;const t=window.getComputedStyle(e).getPropertyValue("--ui-lib-pagination-items-gap");if(""===t)return-1;return parseInt(t)}(o.current);let c=2*r.current+a.current;-1!==l&&(c-=l);const{dotsCount:u,...d}=function({currentPage:e,elements:t,containerWidth:i,elementWidth:s,dotsWidth:n,maxItemsCount:o}){if(t.length*s<=i&&t.length<=o)return{visible:[...t],hidden:[],dotsCount:0};const r=t.indexOf(e);let a=i-2*n-2*s,l=Math.min(Math.floor(a/s),o-4);const c=Math.floor((l-1)/2),u=l-c-1;return r-c-1<=0?(a=i-n-s,l=Math.min(Math.floor(a/s),o-2),{visible:[...t.slice(0,l),t[t.length-1]],hidden:t.slice(l,t.length-1),dotsCount:1}):r+u+1>=t.length-1?(a=i-n-s,l=Math.min(Math.floor(a/s),o-2),{visible:[t[0],...t.slice(t.length-l,t.length)],hidden:t.slice(1,t.length-l),dotsCount:1}):{visible:[t[0],...t.slice(r-c,r),e,...t.slice(r+1,r+u+1),t[t.length-1]],hidden:[...t.slice(1,r-c),...t.slice(r+u+1,t.length-1)],dotsCount:2}}({currentPage:t,elements:i,
containerWidth:e.containerWidth-c,elementWidth:n,dotsWidth:e.moreButtonWidth,maxItemsCount:r.current>0?11:13}),p=e.moreButtonWidth*u,g=d.visible.length*n+c+p;return h(g),m(e.containerWidth-g<n),d}),[i,t]),v=(0,n.useCallback)((()=>{r.current=s.current?(0,mt.outerWidth)(s.current,!0):0,a.current=o.current?(0,mt.outerWidth)(o.current,!0):0}),[]),{containerRefCallback:_,moreButtonRef:f,innerContainerRefCallback:w,itemsRefs:y,setItemRef:C,hiddenItems:k,visibleItems:E}=(0,pt.useCollapsibleCommon)({itemsList:i,getItemId:bt,calcVisibleAndHiddenItems:b,shouldKeepItemVisible:g,onMeasureCallback:v,forceUpdate:c});return{numbers:i,containerRefCallback:_,innerContainerRefCallback:w,itemsRefs:y,setItemRef:C,dotsRef:f,arrowButtonRef:s,endSlotRef:o,visible:E,hidden:k,contentWidth:d,shouldStretch:p}}function bt(e){return"number"}function vt(e){const{className:t,lastPage:i,currentPage:s,withArrows:o,prevPageAriaLabel:r,nextPageAriaLabel:l,paginationAriaLabel:c,renderComponent:u,getHref:d,getNumberAriaLabel:h,onNumberClick:p,onPrevClick:m,onNextClick:g,endSlot:b,isCompact:v,bottomSlot:_,size:f}=e,{visible:w,numbers:y,containerRefCallback:C,innerContainerRefCallback:k,setItemRef:E,dotsRef:P,arrowButtonRef:x,endSlotRef:T,contentWidth:S,shouldStretch:I}=gt({lastPage:i,currentPage:s}),D=v&&I,M=at(f);return n.createElement("div",{className:a()(ut["numbers-wrapper"],t)},n.createElement("nav",{className:a()(ut.numbers,ut[`size-${f}`],D&&ut.compact),"aria-label":c},o&&n.createElement(ct,{onClick:m,ariaLabel:r,disabled:1===s,direction:"prev",size:M}),w.map(((e,t)=>n.createElement(n.Fragment,{key:e},1===t&&w[1]!==y[1]&&n.createElement(_t,{size:f}),n.createElement(dt,{pageNumber:e,renderComponent:u,currentPage:s,getHref:d,onClick:p,getNumberAriaLabel:h,fallbackToDummyHref:!0,size:f}),t===w.length-2&&w[t]!==y[y.length-2]&&n.createElement(_t,{size:f})))),o&&n.createElement(ct,{onClick:g,ariaLabel:l,disabled:s===i,direction:"next",size:M}),n.createElement("div",{ref:T,className:ut["numbers-end-slot"]},b)),n.createElement("div",{"aria-hidden":!0,className:ut["fake-numbers"],ref:C},n.createElement("div",{className:ut["fake-numbers-inner"],ref:k},n.createElement(_t,{reference:P,size:f}),n.createElement(dt,{pageNumber:999,renderComponent:u,currentPage:s,reference:E("number"),tabIndex:-1,size:f}),o&&n.createElement(ct,{direction:"prev",reference:x,tabIndex:-1,size:M}))),n.createElement("div",{style:{width:`${S}px`}},_))}function _t(e){return n.createElement("span",{"aria-hidden":!0,className:a()(ut.dots,ut[`size-${e.size}`]),ref:e.reference},"…")}var ft=i(985397);function wt(e){const{getDescriptionAriaLabel:t,getDescriptionChunks:i,itemsPerPage:s=0,totalAmountOfItems:o=0,currentPage:r,size:l}=e;if(!i)return null;const c=(r-1)*s+1;let u=c+s-1;u>o&&(u=o);const d=i(c,u,o),h=t?t(c,u,o):void 0;return n.createElement("div",{className:a()(ft.description,ft[`size-${l}`]),"aria-label":h},d.map(((e,t)=>n.createElement(yt,{...e,key:t}))))}function yt(e){return e.isHighlighted?n.createElement("strong",{className:ft["description-strong"]
},e.text):n.createElement("span",null,e.text)}var Ct=i(653005);function kt(e){const{select:t,getDescriptionAriaLabel:i,getDescriptionChunks:s,itemsPerPage:o,totalAmountOfItems:r,isCompact:l,className:c,size:u="medium",...d}=e,h={getDescriptionAriaLabel:i,getDescriptionChunks:s,itemsPerPage:o,totalAmountOfItems:r,currentPage:e.currentPage,size:u},p=Boolean(s&&s(0,0,0).length),m=(0,z.useSafeMatchMedia)(tt["media-phone-vertical"]),g=null!=l?l:m,b=Boolean(g&&(t||p)),v=!g&&t,_=b&&t;return n.createElement("div",{className:a()(Ct.pagination,c)},n.createElement("div",{className:Ct["pagination-group"]},n.createElement(vt,{...d,withArrows:!b,isCompact:b,endSlot:v?n.createElement("div",{className:Ct.select},t):void 0,bottomSlot:b?void 0:n.createElement(wt,{...h}),size:u})),b&&n.createElement("div",{className:Ct["pagination-group"]},n.createElement(ct,{onClick:e.onPrevClick,ariaLabel:e.prevPageAriaLabel,disabled:1===e.currentPage,direction:"prev",size:at(u)}),n.createElement("div",{className:Ct["compact-middle-slot"]},t||n.createElement(wt,{...h})),n.createElement(ct,{onClick:e.onNextClick,ariaLabel:e.nextPageAriaLabel,disabled:e.currentPage===e.lastPage,direction:"next",size:at(u)})),_&&n.createElement(wt,{...h}))}var Et=i(12481),Pt=i(6461),xt=i(692831),Tt=i(427181),St=i(788872),It=(i(936902),i(189904)),Dt=i(662941),Mt=i(650802),Nt=i(297265),Ft=i(518799),zt=i(476853),At=i(379266),Rt=i(753327),Ot=i(860227),Lt=i(935495);const Bt=new Mt.WatchedValue(null).readonly(),Ut=s.t(null,void 0,i(398065));function Vt(e){const{items:t,onCheck:i,overlapManagerWV:s}=e,o=(0,Nt.useWatchedValueReadonly)({watchedValue:null!=s?s:Bt}),r=(0,n.useMemo)((()=>t.filter((e=>e.visible))),[t]),l=e=>{e.stopPropagation()};return n.createElement(Rt.SlotContext.Provider,{value:o},n.createElement(Ft.ToolWidgetMenu,{horizontalDropDirection:zt.HorizontalDropDirection.FromRightToLeft,horizontalAttachEdge:zt.HorizontalAttachEdge.Right,className:Ot.menuButton,arrow:!1,isDrawer:u.CheckMobile.any(),content:n.createElement(it.LightButton,{size:"xsmall",variant:"ghost",color:"gray",iconOnly:!0,startIcon:Lt,className:a()(Ot.icon,"apply-common-tooltip"),"aria-label":Ut,title:Ut})},n.createElement("div",{onMouseOver:l,onMouseOut:l},t.map((e=>n.createElement(At.PopupMenuItemToggle,{key:e.id,label:e.title,isChecked:e.visible,labelClassName:Ot.label,className:Ot.checkBox,onClick:()=>{return t=e.id,void i(t);var t},isDisabled:1===r.length&&r[0].id===e.id}))))))}var Ht=i(722789);function Wt(e){const{isSticky:t,...i}=e;return n.createElement("div",{className:a()(Ht.container,t&&Ht.sticky)},n.createElement(Vt,{...i}))}var jt=i(298314),Gt=i(42357),qt=i(240933),Yt=i(147791),Kt=i.n(Yt),$t=i(586816),Zt=i(823092);const Qt="HeadCell",Jt=.4,Xt={"--head-cell-wrapper-tooltip-size":`${16}px`,"--head-cell-wrapper-tooltip-gap":`${5}px`};function ei(e){const{column:t,alignment:i,dispatch:s,onColumnsReordered:o,canBeReordered:r,informerText:l}=e,c=(0,n.useRef)(null),[{isDragging:u},d,h]=(0,Gt.useDrag)((()=>({type:Qt,item:{id:t.key},canDrag:()=>r,collect:e=>({isDragging:e.isDragging()})
}))),[,p]=(0,qt.useDrop)((()=>({accept:Qt,hover:(e,i)=>{var n;if(e.id===t.key)return;const o=null===(n=c.current)||void 0===n?void 0:n.getBoundingClientRect(),r=i.getClientOffset(),a=i.getDifferenceFromInitialOffset();void 0!==o&&null!==r&&null!==a&&function(e,t,i,s){const n=t-i,o=.4*(s-i);return e>0?n>o:n<o}(a.x,r.x,o.left,o.right)&&s({type:St.ActionType.ReorderColumns,columnKey:e.id,targetColumnKey:t.key})},drop:()=>{o()},canDrop:()=>r})));return(0,n.useEffect)((()=>{r&&d(p(c)),h((0,jt.getEmptyImage)(),{captureDraggingState:!0})}),[t]),n.createElement("div",{ref:c,className:a()(Zt.wrapper,$t.wrapper,"right"===i&&$t.rightAligned),style:{...Xt,opacity:u?Jt:1},onClick:function(){s({type:St.ActionType.UpdateSortDirection,columnKey:t.key})}},n.createElement(Kt(),{...e}),l&&n.createElement(R.IconQuestionInformation,{...G(l),icon:"info",className:$t.tooltipIcon}))}var ti=i(403309),ii=i.n(ti);function si(e){const{visibilityHandler:t,...i}=e;return(0,n.useLayoutEffect)((()=>(t(i.rowKeyValue,!0),()=>t(i.rowKeyValue,!1))),[]),n.createElement(ii(),{...i})}function ni(e,t){if(0===e.length)return[[t],[t.prevValue]];const[i,s]=e.reduce(((e,i)=>{var s;return e[0].push(t[i]),e[1].push(null===(s=t.prevValue)||void 0===s?void 0:s[i]),e}),[[],[]]);return[i,s]}const oi=(0,i(729648).memoize)(Ge);var ri=i(410504);function ai(e){const{label:t,children:i,informerText:s}=e,o=void 0!==t;return n.createElement("div",{className:a()(ri.wrapper,!o&&ri.hiddenLabel)},o&&n.createElement("span",{className:ri.labelWrapper},n.createElement("span",{className:ri.label},t),s&&n.createElement(R.IconQuestionInformation,{...G(s),icon:"info",className:ri.tooltipIcon})),i&&n.createElement("span",{className:ri.contentWrapper},n.createElement("span",{className:a()(ri.content,o&&ri.withPadding)},i)))}var li=i(23642),ci=i(10170),ui=i(73288),di=i(139043),hi=i(563603);function pi(e){const{columnsFilterItems:t,columnsFilterProps:i,rows:s,rowsTag:o,tableProps:r,updateTableProps:a,tableWrapperAttributes:l}=e,[c,u,d,h]=(0,di.useOverlayScroll)(),[p,m]=(0,n.useState)(0),g=(0,n.useRef)(null),b=(0,n.useCallback)((()=>({...l,...u,ref:d})),[l,d]);(0,n.useEffect)((()=>{const e=d.current;if(null!==e)return e.addEventListener("scroll",h),()=>e.removeEventListener("scroll",h)}),[l,h]);const v=(0,n.useMemo)((()=>n.createElement(xt.Table,{...r,childComponents:{...r.childComponents,tableWrapper:{elementAttributes:b}},dispatch:a,data:s})),[b,a,r,o,s]);(0,n.useEffect)((()=>{if(null===g.current||null===d.current)return;const e=g.current.getBoundingClientRect().bottom-d.current.getBoundingClientRect().bottom|0;m(e)}),[r.paging]);const _={"--table-wrapper-scroll-bottom-offset":`${p}px`};return n.createElement(n.Fragment,null,0!==t.length&&n.createElement(Wt,{...i,items:t}),n.createElement("div",{className:hi.scrollWrapper,ref:g,style:_},n.createElement(li.DndProvider,{backend:ci.HTML5Backend},n.createElement(ui.OverlayScrollContainer,{...c,className:hi.scrollContainer}),v)))}const mi={0:St.SortDirection.Ascend,1:St.SortDirection.Descend
},gi=s.t(null,void 0,i(446630)),bi=d.enabled("show_symbol_logos")&&d.enabled("show_symbol_logo_in_account_manager");class vi{constructor(e=0){this._mode=e}value(){return this._mode}next(){switch(this._mode){case 0:this._mode=1;break;case 1:this._mode=null;break;case null:this._mode=0}return this._mode}reset(){this._mode=0}}function _i({values:e}){return e.map((e=>null!=e?String(e):"")).join(we).replace(/&nbsp;/g,we)}const fi=new D.PriceFormatter;function wi(e){return`Column ${e} metainfo`}function yi(e,t){return!1===e.showZeroValues&&t.every((e=>0===e))}function Ci(e){return s.t(null,{replace:{pageNumber:String(e)}},i(987140))}Pt.default.fieldDelimiter="";class ki{constructor(e){var t;this.onTableVisibilityChange=new Ze.Delegate,this.onBottomVisibilityChange=new Ze.Delegate,this.onSizeChange=new Ze.Delegate,this.onSortingChange=new Ze.Delegate,this._animationFrameId=0,this._isVisible=!1,this._rowsTag=(0,It.randomHashN)(5),this._rowsElements=new Map,this._rowsDisplayOptions=new Map,this._highlightTimeoutIds=new Map,this._formatters=new Map,this._visibleColumns=new Set,this._cellContentCaches=new WeakMap,this._hiddenFilterColumns=new Set,this._visibleRows=new Set,this._isScrolled=!1,this._isPaginationShown=!1,this._goToNextPage=()=>{var e;void 0!==(null===(e=this._tableProps.paging)||void 0===e?void 0:e.pageIndex)&&this._updateTablePage(this._tableProps.paging.pageIndex+1)},this._goToPrevPage=()=>{var e;void 0!==(null===(e=this._tableProps.paging)||void 0===e?void 0:e.pageIndex)&&this._updateTablePage(this._tableProps.paging.pageIndex-1)},this._handlePageNumberClick=(e,t)=>{this._updateTablePage(t-1)},this._updateTablePage=e=>{this._tableProps=(0,xt.kaReducer)(this._tableProps,(0,Tt.updatePageIndex)(e)),this._resetTableScrollState(),this._render()},this._makeHeadCellAttributes=({column:{key:e}})=>{var t;const i="settings"===e,s=!(null===(t=this._columnsMetainfo.get(e))||void 0===t?void 0:t.notSortable),n={className:a()(Zt.headCell,s&&Zt.sortable,i&&!this._isMobile&&Zt.rightFixedColumn,e===this._fixedTitleColumnId&&!this._isMobile&&Zt.leftFixedColumn)};return this._isMobile||(!i&&this._fixedColumns&&(n.width="50%"),i&&this._noSettingsColumn&&0===this._getAvailableColumnsFilterItems().length&&(n.style={display:"none"})),n},this._updateTableProps=e=>{if(e.type===St.ActionType.UpdateSortDirection){const t=this._columnsMetainfo.get(e.columnKey);if(void 0===t||t.notSortable||void 0===Qe(t))return;this._handleSortingUpdate(e.columnKey)}this._tableProps=(0,xt.kaReducer)(this._tableProps,e),this._render()},this._handleEmptyRows=()=>{0===this._model.rows().length&&(this._resetTableScrollState(),this._rowsTag=(0,It.randomHashN)(5),this._render(!0))},this._makeHeadCellContent=e=>{const{column:t}=e;if("settings"===t.key){const e=this._getAvailableColumnsFilterItems();if(0!==e.length)return n.createElement(Wt,{...this._columnsFilterProps,items:e})}const i=this._columnsMetainfo.get(t.key);return void 0!==(null==i?void 0:i.help)?n.createElement("span",{className:"apply-common-tooltip",title:i.help},t.title):t.title},
this._makeTextContent=async e=>{var t,i,s,n,o;const{row:r,columnId:a}=e,l=this._columnsMetainfo.get(a);if(void 0===l)return"";const[c,u]=ni(l.dataFields,r);if(yi(l,c))return"";const d=void 0!==l.formatter&&null!==(n=null!==(i=null===(t=this._formatters.get(l.formatter))||void 0===t?void 0:t.formatRaw)&&void 0!==i?i:null===(s=this._formatters.get(l.formatter))||void 0===s?void 0:s.formatText)&&void 0!==n?n:_i;return await this._model.resolvePriceFormatter(r[this._idProperty]),d({values:c,prevValues:l.highlightDiff?u:void 0,priceFormatter:null!==(o=r.priceFormatter)&&void 0!==o?o:fi})},this._makeCellContent=e=>{var t,i,s;const{row:o,columnId:r}=e,a=this._columnsMetainfo.get(r);if(void 0===a)return;const[l,c]=ni(a.dataFields,o);if(yi(a,l))return n.createElement(n.Fragment,null);let u=_i,d=!1;if(void 0!==a.formatter){const e=this._formatters.get(a.formatter);u=null!==(i=null!==(t=null==e?void 0:e.formatElement)&&void 0!==t?t:null==e?void 0:e.formatText)&&void 0!==i?i:u,d=Boolean(null==e?void 0:e.isPriceFormatterNeeded)}const h=this._getCellContentCaches(o),p=h.get(a.id),m=null!==(s=o.priceFormatter)&&void 0!==s?s:fi;if(0!==a.dataFields.length&&void 0!==p&&p.priceFormatter===m&&this._isMobile===p.isMobile&&(0,S.deepEquals)(l,p.values)[0])return p.content;d&&this._model.resolvePriceFormatter(o[this._idProperty]);const g=u({values:l,prevValues:a.highlightDiff?c:void 0,priceFormatter:m});let b;if(this._isMobile){const e=bi&&"symbol"===a.formatter;b=n.createElement(ai,{label:!1===a.showLabelOnMobile||e?void 0:a.label,informerText:a.info},g)}else b=n.createElement(n.Fragment,null,g);return h.set(a.id,{values:l,content:b,priceFormatter:m,isMobile:this._isMobile}),b},this._makeRowContent=e=>n.createElement(si,{...e,visibilityHandler:this._handleRowVisibilityChange}),this._handleRowVisibilityChange=(e,t)=>{t?this._visibleRows.add(e):this._visibleRows.delete(e)},this._makeRowAttributes=({rowKeyValue:e,rowData:t})=>{const i=this._rowsDisplayOptions.get(e);return{className:a()(Zt.row,(null==i?void 0:i.isInactive)&&Zt.inactiveRow,this._isFirstRow(e)&&Zt.withMargin,this._isLastRow(e)&&Zt.lastRow),"data-row-id":e,"data-row-linked":null==i?void 0:i.isLinked,ref:t=>this._setRowElement(e,t),onClick:(e,t)=>{var i,s;null===(s=null===(i=this._rowEventsHandlers)||void 0===i?void 0:i.onClick)||void 0===s||s.call(i,t.childProps.rowData)},onMouseEnter:(e,t)=>{var i,s;null===(s=null===(i=this._rowEventsHandlers)||void 0===i?void 0:i.onMouseEnter)||void 0===s||s.call(i,t.childProps.rowData)},onMouseLeave:(e,t)=>{var i,s;null===(s=null===(i=this._rowEventsHandlers)||void 0===i?void 0:i.onMouseLeave)||void 0===s||s.call(i,t.childProps.rowData)}}},this._setRowElement=(e,t)=>{this._rowsElements.set(e,t)},this._makeCellAttributes=({column:e,rowData:t})=>{const{title:i,key:s}=e,n=(0,l.ensureDefined)(this._columnsMetainfo.get(s),wi(s)),o=function(e,t){if(!1===e.showOnMobile)return!0;const[i]=ni(e.dataFields,t),s=oi(e.formatter),n=t=>!1===e.showZeroValues&&0===t||""===t||null==t
;return void 0!==s.requiredFieldsIndexes&&0!==s.requiredFieldsIndexes.length?s.requiredFieldsIndexes.some((i=>void 0===e.dataFields[i]||n(t[e.dataFields[i]]))):i.every(n)}(n,t);return{className:a()(Zt.cell,("right"===(null==n?void 0:n.alignment)||"settings"===s)&&Zt.rightAlignedCell,!1===(null==n?void 0:n.showLabelOnMobile)&&!1,o&&Zt.hideCellOnMobile,"settings"===s&&!this._isMobile&&Zt.rightFixedColumn,s===this._fixedTitleColumnId&&!this._isMobile&&Zt.leftFixedColumn),"data-label":i}},this._makeCellContentAttributes=({column:e,rowData:t})=>{var i;const{key:s}=e,n=(0,l.ensureDefined)(this._columnsMetainfo.get(s),wi(s)),o=void 0!==(null==n?void 0:n.tooltipProperty)?null===(i=t[n.tooltipProperty])||void 0===i?void 0:i[n.id]:void 0;return{className:a()(Zt.cellContent,void 0!==o&&"apply-common-tooltip common-tooltip-html",!1!==(null==n?void 0:n.isCapitalize)&&Zt.capitalize),title:o}},this._makeTableWrapperAttributes=()=>({className:this._makeTableWrapperClassNames(),onScroll:this._onTableScroll,key:(0,It.randomHashN)(5)}),this._onTableScroll=e=>{const t=Math.abs(e.currentTarget.scrollLeft)>0;t!==this._isScrolled&&(this._isScrolled=t,this._tableWrapperAttributes={...this._tableWrapperAttributes,className:this._makeTableWrapperClassNames()},this._render()),this._isSupportPagination&&this._checkBottomIsVisible(e.currentTarget)},this._resizeHandler=()=>{cancelAnimationFrame(this._animationFrameId),this._animationFrameId=requestAnimationFrame((()=>{const e=this._checkIsMobile();e!==this._isMobile&&(this._isMobile=e,this._visibleColumns.clear(),this._columnsVisibilityInfo=this._makeColumnsVisibilityInfo(),this._columnsFilterProps=this._makeColumnsFilterProps(),this._tableProps.columns=this._makeColumns(),this.onSizeChange.fire(),this._updateRows(),this._update.cancel(),this._render(!0))}))},this._updateRows=()=>{this._rowsTag=(0,It.randomHashN)(5),this._update()},this._updatePaginationShowingState=()=>{const e=this._checkIsPaginationShown();e!==this._isPaginationShown&&(this._isPaginationShown=e,e?this._tableProps.paging={enabled:!0,pageSize:this._pageSize,pageIndex:0}:delete this._tableProps.paging,this._render())},this._saveColumnsOrder=()=>{var e;this._trackEvent(this._id,"Reorder columns");const t=this._tableProps.columns.map((e=>e.key));null===(e=this._getSettingsStorage())||void 0===e||e.setTableColumnsOrder(this._id,t)};const{id:o,model:r,title:c,className:u,container:d,columns:h,stickyMobileColumnsFilter:p,idProperty:m,overlapManager:g,fixedColumns:b,getSettingsStorage:v,rowEventsHandlers:_,trackEvent:f,fixedTitleColumnId:w,emptyStateMessage:y,supportPagination:C,pageSize:k,isScrollBouncingEnabled:E=!1}=e;this._id=o,this._title=c,this._model=r,this._fixedTitleColumnId=w,this._fixedColumns=b,this._pageSize=k,this._isScrollBouncingEnabled=E,this._sortingColumnKey=`${this._id}.sort.column`,this._sortingModeKey=`${this._id}.sort.mode`,this._container=d,this._idProperty=m,this._overlapManager=g,this._isStickyMobileColumnsFilter=p,this._isSupportPagination=C,this._columnsMetainfo=new Map(h.map((e=>[e.id,e]))),
this._getSettingsStorage=v,this._trackEvent=f,this._rowEventsHandlers=_,this._emptyStateMessage=null!=y?y:gi,C&&(this._checkBottomIsVisible=(0,Et.default)(this._checkBottomIsVisible,100)),this._update=(0,$e.default)(this._render,1e3);const P=this._getSavedSortingParameters();this._sortingColumn=null==P?void 0:P.columnId,this._sortingModeSwitcher=new vi(void 0===P?null:P.mode),this._isMobile=this._checkIsMobile(),window.addEventListener("resize",this._resizeHandler);const x="IntersectionObserver"in window;x||(this._isVisible=!0),this._containerVisibilityObserver=x?new IntersectionObserver((e=>{e.forEach((({intersectionRatio:e})=>{this._isVisible=0!==e,this._isVisible||this._resetTableScrollState(),this._render(!this._isVisible),this.onTableVisibilityChange.fire(this._isVisible)}))})):null,null===(t=this._containerVisibilityObserver)||void 0===t||t.observe(this._container),this._columnsVisibilityInfo=this._makeColumnsVisibilityInfo(),this._columnsFilterProps=this._makeColumnsFilterProps(),this._tableWrapperAttributes=this._makeTableWrapperAttributes(),this._tableProps={columns:this._makeColumns(),dispatch:this._updateTableProps,rowKeyField:this._idProperty,sortingMode:St.SortingMode.SingleTripleStateRemote,childComponents:{rootDiv:{elementAttributes:()=>({className:Zt.root})},pagingPages:{content:e=>{const{pageIndex:t,pagesCount:o}=e;var r;if(this._isPaginationShown&&void 0!==t&&void 0!==o)return n.createElement(kt,{size:"xsmall",currentPage:t+1,onPrevClick:this._goToPrevPage,onNextClick:this._goToNextPage,onNumberClick:this._handlePageNumberClick,lastPage:o,paginationAriaLabel:(r=this._title,r?s.t(null,{replace:{tableName:r}},i(540451)):s.t(null,void 0,i(673862))),nextPageAriaLabel:s.t(null,void 0,i(654563)),prevPageAriaLabel:s.t(null,void 0,i(737928)),getNumberAriaLabel:Ci})},elementAttributes:()=>({className:Zt.paginationWrapper})},table:{elementAttributes:e=>{var t;return{className:a()(Zt.table,u),"data-selector":"table",style:{borderCollapse:"separate",height:0===(null===(t=e.data)||void 0===t?void 0:t.length)?"100%":void 0}}}},tableBody:{elementAttributes:()=>({className:Zt.tableBody}),content:e=>0===e.data.length?n.createElement("tr",{className:Zt.emptyStateRow},n.createElement("td",{colSpan:this._getEmptyStateColspan(),className:Zt.emptyStateCell},n.createElement(Dt.EmptyStateBlock,{className:Zt.emptyStateBlock,iconClass:"",text:this._emptyStateMessage}))):void 0},tableHead:{elementAttributes:()=>({className:Zt.tableHead})},headRow:{elementAttributes:()=>({className:Zt.headRow})},headCell:{elementAttributes:this._makeHeadCellAttributes,content:e=>{var t;const i=this._columnsMetainfo.get(e.column.key);return n.createElement(ei,{...e,alignment:null!==(t=null==i?void 0:i.alignment)&&void 0!==t?t:"left",dispatch:(0,Et.default)(this._updateTableProps,100),onColumnsReordered:this._saveColumnsOrder,canBeReordered:!this._isMobile&&"settings"!==e.column.key&&e.column.key!==this._fixedTitleColumnId,informerText:null==i?void 0:i.info})}},cell:{elementAttributes:this._makeCellAttributes},dataRow:{
content:this._makeRowContent,elementAttributes:this._makeRowAttributes},cellText:{content:({column:e,rowData:t})=>this._makeCellContent({columnId:e.key,row:t}),elementAttributes:this._makeCellContentAttributes},headCellContent:{elementAttributes:()=>({className:Zt.headCellContent}),content:this._makeHeadCellContent}}},this._render(),this._subscribeModel()}rowIdAtEvent(e){return function(e){if(void 0!==e.dataset.rowId)return e.dataset.rowId;let t=e.parentElement;for(;null!==t;){if(void 0!==t.dataset.rowId)return t.dataset.rowId;t=t.parentElement}}(e.target)}isRowInViewport(e){return this._visibleRows.has(e)}sortingColumn(){return this._sortingColumn}sortingMode(){return this._sortingModeSwitcher.value()}size(){return this._isMobile?0:1}highlightRowById(e){const t=this._rowElementById(e);void 0!==t&&(clearTimeout(this._highlightTimeoutIds.get(e)),t.classList.remove(Zt.highlightedRow),t.classList.add(Zt.highlightedRow),this._highlightTimeoutIds.set(e,setTimeout((()=>{t.classList.remove(Zt.highlightedRow)}),700)))}addFormatter(e){this._formatters.set(e.name,e)}setColumnAvailable(e,t){if(this._setColumnAvailableInFilter(e,t),t){const t=this._isMobile?".invisibleMobileColumns":".invisibleColumns";if(et.getJSON(`${this._id}${t}`,[]).includes(e))return}this._setColumnVisibility(e,t)}setRowInactiveById(e,t){var i;(null===(i=this._rowsDisplayOptions.get(e))||void 0===i?void 0:i.isInactive)!==t&&(this._setRowInactiveById(e,t),this._render())}setRowInactiveByFilter(e){this._model.data().forEach(((t,i)=>this._setRowInactiveById(i,e(t)))),this._render()}setRowLinkedById(e,t){var i;(null===(i=this._rowsDisplayOptions.get(e))||void 0===i?void 0:i.isLinked)!==t&&(this._setRowLinkedById(e,t),this._render())}setRowLinkedByFilter(e){this._model.data().forEach(((t,i)=>this._setRowLinkedById(i,e(t)))),this._render()}destroy(){var e;window.removeEventListener("resize",this._resizeHandler),cancelAnimationFrame(this._animationFrameId),this._unsubscribeModel(),null===(e=this._containerVisibilityObserver)||void 0===e||e.disconnect(),o.unmountComponentAtNode(this._container)}async exportData(){const e=[...this._columnsVisibilityInfo.values()];return Promise.all(this._model.rows().map((async t=>{const i={};for(const{isVisible:s,label:n,id:o}of e){if(!s||"settings"===o)continue;const e=await this._makeTextContent({columnId:o,row:t}),r=e=>{i[n+(e.title?` (${e.title})`:"")]=e.value};Array.isArray(e)?e.forEach(r):e instanceof Object?r(e):i[n]=e||""}return i})))}_checkIsPaginationShown(){return void 0!==this._pageSize&&this._model.rows().length>this._pageSize}_setRowInactiveById(e,t){this._updateRowDisplayOptions(e,{isInactive:t})}_setRowLinkedById(e,t){this._updateRowDisplayOptions(e,{isLinked:t})}_rowElementById(e){var t;return null!==(t=this._rowsElements.get(e))&&void 0!==t?t:void 0}_getEmptyStateColspan(){return this._noSettingsColumn&&0!==this._getAvailableColumnsFilterItems().length?this._visibleColumns.has("settings")?this._visibleColumns.size:this._visibleColumns.size+1:this._visibleColumns.size}_makeColumns(){const e=new Map
;for(const[t,i]of this._columnsMetainfo){const{isVisible:s,isVisibleOnMobile:n,forceInvisible:o}=(0,l.ensureDefined)(this._columnsVisibilityInfo.get(t),wi(t)),r={key:t,title:i.label,visible:(this._isMobile?n:s)&&!o,style:{minWidth:this._isMobile?void 0:80,maxWidth:this._isMobile?void 0:300}},a=this._sortingModeSwitcher.value();t===this._sortingColumn&&null!==a&&(r.sortDirection=mi[a]),e.set(r.key,r)}const t=this._getSavedColumnsOrder();return this._columnsMetainfo.has("settings")||(this._noSettingsColumn=!0,e.set("settings",{key:"settings",title:"",visible:!0}),this._columnsMetainfo.set("settings",{label:"",id:"settings",alignment:"right",dataFields:[],formatter:"empty",notSortable:!0,showOnMobile:!1})),this._isMobile||void 0===t?[...e.values()]:this._reorderColumns(t,e)}_resetTableScrollState(){this._isScrolled=!1,this._tableWrapperAttributes=this._makeTableWrapperAttributes()}_render(e=!1){if(!e&&!this._isVisible)return;const t=this._model.rows();let i=[];this._isMobile&&0!==t.length&&(i=this._getAvailableColumnsFilterItems()),o.render(n.createElement(pi,{rows:t,rowsTag:this._rowsTag,tableProps:this._tableProps,updateTableProps:this._updateTableProps,columnsFilterItems:i,columnsFilterProps:this._columnsFilterProps,tableWrapperAttributes:this._tableWrapperAttributes}),this._container)}_updateRowDisplayOptions(e,t){const i=this._rowsDisplayOptions.get(e);this._rowsDisplayOptions.set(e,{...i,...t})}_handleSortingUpdate(e){e===this._sortingColumn?this._sortingModeSwitcher.next():(this._sortingColumn=e,this._sortingModeSwitcher.reset()),this._updateSortingColumnSettings(),this.onSortingChange.fire({column:e,mode:this._sortingModeSwitcher.value()})}_updateSortingColumnSettings(){const e=this._sortingModeSwitcher.value();if(null===e)return et.remove(this._sortingColumnKey),void et.remove(this._sortingModeKey);et.setValue(this._sortingColumnKey,this._sortingColumn),et.setValue(this._sortingModeKey,e)}_getSavedSortingParameters(){const e=et.getValue(this._sortingColumnKey);if(void 0===e)return;const t=et.getInt(this._sortingModeKey);return{columnId:e,mode:null!=t?t:1}}_setColumnAvailableInFilter(e,t){t?this._hiddenFilterColumns.delete(e):this._hiddenFilterColumns.add(e)}_getCellContentCaches(e){let t=this._cellContentCaches.get(e);return void 0===t&&(t=new Map,this._cellContentCaches.set(e,t)),t}_makeColumnsVisibilityInfo(){const e=new Map,t=[...this._columnsMetainfo.values()].filter((e=>e.hideByDefault)).map((e=>e.id)),i=et.getJSON(`${this._id}.invisibleColumns`,t),s=et.getJSON(`${this._id}.invisibleMobileColumns`,t);return this._columnsMetainfo.forEach((t=>{const n=t.id===this._fixedTitleColumnId,o=i.includes(t.id)&&!n,r=s.includes(t.id)&&!n;(this._isMobile?r:o)?this._visibleColumns.delete(t.id):this._visibleColumns.add(t.id),e.set(t.id,{isVisible:!o,isVisibleOnMobile:!r,isAlwaysVisible:t.notHideable||n,id:t.id,label:t.label})})),e}_isFirstRow(e){var t;return e===(null===(t=this._model.rows()[0])||void 0===t?void 0:t[this._idProperty])}_isLastRow(e){var t;const i=this._model.rows()
;return e===(null===(t=i[i.length-1])||void 0===t?void 0:t[this._idProperty])}_makeTableWrapperClassNames(){return a()(Zt.tableWrapper,this._isScrolled&&!this._isMobile&&Zt.isScrolled,!this._isScrollBouncingEnabled&&Zt.noBouncingScroll)}_checkBottomIsVisible(e){const t=e.querySelector('[data-selector="table"]');if(null===t)return;const{bottom:i}=t.getBoundingClientRect(),s=window.innerHeight-i>=-100;this.onBottomVisibilityChange.fire(s)}_makeColumnsFilterProps(){return{items:[...this._columnsVisibilityInfo.values()].filter((e=>"settings"!==e.id&&!e.isAlwaysVisible)).map((e=>({id:e.id,title:e.label,visible:(this._isMobile?e.isVisibleOnMobile:e.isVisible)&&!e.forceInvisible}))),onCheck:e=>this._toggleColumnVisibility(e),overlapManagerWV:this._overlapManager,isSticky:this._isStickyMobileColumnsFilter}}_toggleColumnVisibility(e){const t=!this._visibleColumns.has(e);this._setColumnVisibility(e,t);const i=`${this._id}${this._isMobile?".invisibleMobileColumns":".invisibleColumns"}`,s=new Set(et.getJSON(i,[]));t?s.delete(e):s.add(e),et.setJSON(i,[...s])}_setColumnVisibility(e,t){t?this._visibleColumns.add(e):this._visibleColumns.delete(e);const i=this._columnsVisibilityInfo.get(e);void 0!==i&&(this._isMobile?this._columnsVisibilityInfo.set(e,{...i,isVisibleOnMobile:t&&!i.forceInvisible}):this._columnsVisibilityInfo.set(e,{...i,isVisible:t&&!i.forceInvisible}),this._columnsFilterProps=this._makeColumnsFilterProps()),this._updateTableProps({type:t?St.ActionType.ShowColumn:St.ActionType.HideColumn,columnKey:e})}_getAvailableColumnsFilterItems(){return this._columnsFilterProps.items.filter((e=>!this._hiddenFilterColumns.has(e.id)))}_checkIsMobile(){return window.matchMedia(A.TradingLayoutBreakpoint.Mobile).matches}_subscribeModel(){this._model.onRowsChanged.subscribe(this,this._handleEmptyRows),this._model.onRowsChanged.subscribe(this,this._updateRows),this._model.onRowsChanged.subscribe(this,this._updatePaginationShowingState)}_unsubscribeModel(){this._model.onRowsChanged.unsubscribe(this,this._handleEmptyRows),this._model.onRowsChanged.unsubscribe(this,this._updateRows),this._model.onRowsChanged.unsubscribe(this,this._updatePaginationShowingState)}_reorderColumns(e,t){const i=new Map(t),s=i.get("settings");i.delete("settings");const n=[],o=void 0!==this._fixedTitleColumnId?i.get(this._fixedTitleColumnId):void 0;void 0!==o&&(n.push(o),i.delete(o.key));for(const t of e){const e=i.get(t);void 0!==e&&(n.push(e),i.delete(t))}return n.push(...i.values()),void 0!==s&&n.push(s),n}_getSavedColumnsOrder(){var e;return null===(e=this._getSettingsStorage())||void 0===e?void 0:e.tableColumnsOrder(this._id)}}var Ei=i(964492);class Pi extends C{constructor(e){const t=Ke(),i=[],s=[],n=[],o=[],r=1===e.tables.length;e.tables.forEach((a=>{var l,c,u,d;const h=Ke({stretch:r}),p=Ke({stretch:r}),m=new Xe({options:a.options,priceFormatterGetter:a.priceFormatterFn,reverse:null===(l=a.flags)||void 0===l?void 0:l.reverse,columns:a.columns}),g=new ki({id:a.id,model:m,container:p,columns:a.columns,idProperty:a.options.idProperty,
className:a.options.className,stickyMobileColumnsFilter:!0,overlapManager:e.overlapManager,fixedColumns:null===(c=a.flags)||void 0===c?void 0:c.fixedColumns,getSettingsStorage:e.getTableSettingsStorage,rowEventsHandlers:a.rowEventsHandlers,trackEvent:e.trackEvent,supportPagination:null===(u=a.flags)||void 0===u?void 0:u.supportPagination,isScrollBouncingEnabled:!r});if(a.title){const e=function(e){const t=document.createElement("h3");return t.classList.add(Ei.title,Ei.hidden),t.textContent=e,t}(a.title);h.appendChild(e),o.push(e)}h.appendChild(p),t.appendChild(h);const b=new w({idProperty:a.options.idProperty,name:a.title||void 0,model:m,view:g,source:a.source,subscriptions:a.subscriptions,supportPagination:null===(d=a.flags)||void 0===d?void 0:d.supportPagination});s.push(m),n.push(g),i.push(b),b.addFormatters(a.formatters.concat(We)),b.start()}));const a={id:e.id,name:e.title};super(t,a,i),this._tableViewModels=s,this._tableViews=n,this._titleElements=o}destroy(){this._tableViewModels.forEach((e=>e.destroy())),this._tableViews.forEach((e=>e.destroy())),super.destroy()}_onActiveChanged(e){super._onActiveChanged(e),e&&setTimeout((()=>{for(const e of this._titleElements)e.classList.remove(Ei.hidden)}))}}const xi={danger:me.red,success:me.green};function Ti(e){const{text:t,notificationType:i}=e;return n.createElement("span",{className:a()(i&&xi[i])},t)}const Si="notificationType",Ii={name:Si,formatText:je.formatText,formatElement:({values:[e,t]})=>n.createElement(Ti,{text:e,notificationType:t})},Di=[{label:s.t(null,void 0,i(631976)),id:"time",dataFields:["time"],formatter:"localDate"},{label:s.t(null,void 0,i(767369)),id:"title",dataFields:["title","type"],formatter:Si},{label:s.t(null,void 0,i(37229)),id:"text",dataFields:["text"]}];class Mi extends C{constructor(e,t,i){super(e,t,i),i.forEach((e=>e.addFormatters(t.formatters.concat(We))))}}class Ni extends Mi{constructor(e){var t;const i=Ke(),s="id",n=new Xe({options:{idProperty:s,defaultSortingParameters:e.initialSorting},priceFormatterGetter:e.priceFormatterFn,columns:e.columns}),o=new ki({id:e.id,title:e.title,model:n,container:i,columns:e.columns,idProperty:s,overlapManager:e.overlapManager,getSettingsStorage:e.getTableSettingsStorage,rowEventsHandlers:e.tableRowEventsHandlers,trackEvent:e.trackEvent,fixedTitleColumnId:e.fixedTitleColumnId,pageSize:void 0===e.overlapManager?100:20}),r=new(null!==(t=e.tableController)&&void 0!==t?t:w)({idProperty:s,model:n,view:o,source:e.source,subscriptions:e.subscriptions});super(i,{id:e.id,name:e.title,formatters:e.formatters},[r]),this._tableViewModel=n,this._tableView=o,r.start()}destroy(){this._tableViewModel.destroy(),this._tableView.destroy(),super.destroy()}}var Fi=i(747633),zi=i(982101),Ai=i(610600),Ri=i(552019);function Oi(e){const{closeFn:t,closeTitle:o,isDisabled:r}=e;return n.createElement(Fi.ToolWidgetButton,{className:zi.icon,title:null!=o?o:s.t(null,{context:"position"},i(987323)),icon:Ri,onClick:e=>{e.stopPropagation(),t()},isDisabled:r})}function Li(e){const{editFn:t,editTitle:o,isDisabled:r}=e
;return n.createElement(Fi.ToolWidgetButton,{className:a()(zi.icon,zi.editIcon),title:null!=o?o:s.t(null,void 0,i(116744)),icon:Ai,onClick:e=>{e.stopPropagation(),t()},isDisabled:r})}function Bi(e){const[t,i]=(0,n.useState)(!1),s=(0,B.useIsMounted)(),{closeFn:o,closeTitle:r,editFn:a,editTitle:l,message:c,showCloseButton:u,showEditButton:d}=e,h=void 0!==o,p=void 0!==a;return n.createElement("span",{className:zi.wrapper},void 0!==c&&n.createElement(te,{...c}),(u||d)&&n.createElement("div",{className:zi.buttons},d&&n.createElement(Li,{editFn:p?async function(){try{i(!0),await(null==a?void 0:a())}finally{s.current&&i(!1)}}:()=>{},editTitle:l,isDisabled:!p||t}),u&&n.createElement(Oi,{closeFn:h?async function(){try{i(!0),await(null==o?void 0:o())}finally{s.current&&i(!1)}}:()=>{},closeTitle:r,isDisabled:!h||t})))}var Ui=i(148442);const Vi={2:"orderstatus-filled",1:"orderstatus-cancelled",6:"orderstatus-working",3:"orderstatus-inactive",4:"orderstatus-placing",5:"orderstatus-rejected"};function Hi(e){return Vi[e]}class Wi{constructor(e,t,i,s){this._calculateCounts=async e=>{const t=await this._source();if(null==e?void 0:e.aborted)return;const i=new Set,s={};for(const{id:e}of this._ordersFilterTabs)s[e]=0;for(const e of t){if(i.has(e.id))continue;i.add(e.id),s["orderstatustatus-all"]=(0,l.ensureDefined)(s["orderstatustatus-all"])+1;const t=Hi(e.status);void 0!==s[t]&&(s[t]=(0,l.ensureDefined)(s[t])+1)}this._countChanged.fire(s);for(const{id:e,count:t}of this._ordersFilterTabs)t.setValue(s[e])},this._source=e,this._orderUpdateDelegate=t,this._fullUpdateDelegate=i,this._ordersFilterTabs=s,this._abortController=new AbortController,this._countChanged=new Ze.Delegate,this._calculateCounts=(0,Ui.respectLatest)(this._calculateCounts),this._calculateCountsDebounced=(0,Et.default)((()=>this._calculateCounts(this._abortController.signal)),100)}countChanged(){return this._countChanged}start(){this._abortController=new AbortController,this._orderUpdateDelegate.subscribe(this,this._calculateCountsDebounced),this._fullUpdateDelegate.subscribe(this,this._calculateCountsDebounced),this._calculateCounts(this._abortController.signal)}stop(){this._abortController.abort(),this._ordersFilterTabs.forEach((({count:e})=>e.setValue(0))),this._orderUpdateDelegate.unsubscribe(this,this._calculateCountsDebounced),this._fullUpdateDelegate.unsubscribe(this,this._calculateCountsDebounced)}}class ji{constructor(e,t,i,s){this.filterFullUpdateDelegate=new Ze.Delegate,this.filterObjectUpdateDelegate=new Ze.Delegate,this.filterObjectDeleteDelegate=new Ze.Delegate,this._filteredObjects=[],this._requestsCount=0,this._started=!1,this._objectsRequest=null,this._source=e,this._objectUpdateDelegate=t,this._objectDeleteDelegate=i,this._fullUpdateDelegate=s}start(){this._requestsCount++;const e=this._source,t=this._objectsRequest||Promise.resolve([]);this._objectsRequest=t.then((()=>e())).then((e=>{const t=e.filter((e=>this._satisfy(e)));return this._requestsCount--,this._requestsCount||(this.stop(),this._filteredObjects=t,this._objectsRequest=null,
this._objectUpdateDelegate.subscribe(this,this._onObjectUpdated),this._objectDeleteDelegate&&this._objectDeleteDelegate.subscribe(this,this._onObjectDeleted),this._fullUpdateDelegate.subscribe(this,this._onFullUpdate),this._started=!0),t.slice(0)}))}stop(){this._objectUpdateDelegate.unsubscribe(this,this._onObjectUpdated),this._fullUpdateDelegate.unsubscribe(this,this._onFullUpdate),this._objectDeleteDelegate&&this._objectDeleteDelegate.unsubscribe(this,this._onObjectDeleted),this._filteredObjects=[],this._started=!1}isStarted(){return this._started}filterSource(){return this._objectsRequest?this._objectsRequest:Promise.resolve(this._filteredObjects.slice(0))}_satisfy(e){throw new Error("should be implemented")}_onFullUpdate(){this.stop(),this.start(),this.filterFullUpdateDelegate.fire()}_onObjectDeleted(e){const t=this._filteredObjects.find((t=>t.id===e));t&&this.filterObjectDeleteDelegate.fire(t.id)}_onObjectUpdated(e){const t=this._filteredObjects.find((t=>t.id===e.id)),i=t?this._filteredObjects.indexOf(t):-1;this._satisfy(e)?(t?this._filteredObjects[i]=e:this._filteredObjects.push(e),this.filterObjectUpdateDelegate.fire(e)):t&&(this.filterObjectDeleteDelegate.fire(t.id),this._filteredObjects.splice(i,1))}}class Gi extends ji{constructor(e,t,i,s){super(e,t,i,s),this._filterStatus=null}setFilterStatus(e){this._filterStatus=e,this.isStarted()&&(this.stop(),this.start())}filterStatus(){return this._filterStatus}_satisfy(e){return!this._filterStatus||e.status===this._filterStatus}}class qi extends ji{constructor(e,t,i,s,n){super(e,t,i,s),this._filter=n}_satisfy(e){return this._filter(e)}}class Yi{constructor(e,t,i){this._orders=[],this._source=e,this._rowUpdateDelegate=t,this._fullUpdateDelegate=i,this._orders=[],this._statusChanged=new Ze.Delegate}statusChanged(){return this._statusChanged}start(){this._source().then((e=>{this._orders=e.map((e=>Object.assign({},e))),this._rowUpdateDelegate.subscribe(this,this._onRowUpdated),this._fullUpdateDelegate.subscribe(this,this._onFullUpdate)}))}stop(){this._fullUpdateDelegate.unsubscribe(this,this._onFullUpdate),this._rowUpdateDelegate.unsubscribe(this,this._onRowUpdated),this._orders=[]}_onFullUpdate(){this.stop(),this.start()}_onRowUpdated(e){const t=this._orders.find((({id:t})=>t===e.id));(null==t?void 0:t.status)!==e.status&&(void 0!==t?t.status=e.status:this._orders.push(Object.assign({},e)),this._statusChanged.fire(e))}}class Ki extends w{constructor(e){super(e),this._onLinkingBound=this._onLinking.bind(this),c.linking.proSymbol.subscribe(this._onLinkingBound)}destroy(){c.linking.proSymbol.unsubscribe(this._onLinkingBound),super.destroy()}_update(e){if(!super._update(e))return!1;const t=c.linking.proSymbol.value();return this.setRowLinkedById(e.id,t===e.symbol),!0}_onCreated(){this.setRowLinkedByFilter((e=>e.symbol===c.linking.proSymbol.value()))}_onLinking(e){this.setRowLinkedByFilter((t=>t.symbol===e))}}class $i extends Ki{constructor(e){super(e),this._title=e.title,this._getFilterStatus=e.filterStatusGetter,this._isAlwaysActive=e.isAlwaysActive}fullUpdate(){
return this._fullUpdate()}getDataExporter(){const e=super.getDataExporter(),t=this._getFilterStatus(),n=null!==t?(0,h.orderStatusToText)(t):s.t(null,void 0,i(695271));return e.name=`${this._title} ${n}`,e}_update(e){return!!super._update(e)&&(this.setRowInactiveById(e.id,!this._filterByStatus(e.status)),!0)}_onCreated(){super._onCreated(),this.setRowInactiveByFilter((e=>!this._filterByStatus(e.status)))}_filterByStatus(e){return this._isAlwaysActive||null!==this._getFilterStatus()||(0,h.isOrderActive)(e)}}const Zi=["formatPrice","formatPriceForexSup"],Qi="orderSettings",Ji="Orders Page";function Xi(e,t){return{id:e,label:t,count:new y.WatchedValue(0)}}class es extends C{constructor(e){const t=e.formatters||[],o=new qi(e.source,e.subscriptions.rowUpdateDelegate,null,e.subscriptions.fullUpdateDelegate,e.filter),r=function(e){const t=[Xi("orderstatustatus-all",s.t(null,void 0,i(695271)))],n=e.map((e=>Xi(Hi(e),(0,N.capitalizeFirstLetter)((0,h.orderStatusToText)(e)))));return t.concat(n)}(e.possibleOrderStatuses),a=new Wi(o.filterSource.bind(o),o.filterObjectUpdateDelegate,o.filterFullUpdateDelegate,r),l=new Gi(o.filterSource.bind(o),o.filterObjectUpdateDelegate,o.filterObjectDeleteDelegate,o.filterFullUpdateDelegate),c=e.subscriptions.fullUpdateDelegate;e.source=l.filterSource.bind(l),e.subscriptions.rowUpdateDelegate=l.filterObjectUpdateDelegate,e.subscriptions.rowDeleteDelegate=l.filterObjectDeleteDelegate,e.subscriptions.fullUpdateDelegate=l.filterFullUpdateDelegate;const u=Ke(),d="id",p={group:e=>+(0,h.isOrderActive)(e.status),idProperty:d,defaultSortingParameters:e.initialSorting},m=e.columns.map((e=>Zi.includes(e.formatter)?{...e,showZeroValues:!1}:e)),g=[...m,{label:"",id:"settings",alignment:"right",dataFields:[],formatter:Qi,notSortable:!0,showOnMobile:!1}],b=new Xe({columns:g,priceFormatterGetter:e.priceFormatterFn,options:p}),_=new ki({id:e.tableId,title:e.title,model:b,className:"orders",container:u,columns:g,idProperty:d,overlapManager:e.overlapManager,getSettingsStorage:e.getTableSettingsStorage,rowEventsHandlers:e.tableRowEventsHandlers,trackEvent:e.trackEvent,fixedTitleColumnId:"symbol",pageSize:void 0===e.overlapManager?100:20}),f={id:e.id,name:e.title},w=new $i({idProperty:d,title:e.title,model:b,view:_,source:e.source,subscriptions:e.subscriptions,filterStatusGetter:()=>this._ordersFilter.filterStatus(),isAlwaysActive:e.isAlwaysActive});super(u,f,[w]),this._tableViewModel=b,this._tableView=_,this._tableController=w,this._globalFullUpdateDelegate=c,this._statusWatcher=new Yi(o.filterSource.bind(o),o.filterObjectUpdateDelegate,o.filterFullUpdateDelegate),this._orderPreFilter=o,this._ordersFilter=l,this._ordersFilterCountsUpdater=a,this._possibleOrderStatuses=e.possibleOrderStatuses,this._columns=m,this._pendingOrdersByStatuses={},this._configFlags=e.configFlags,this._trackEvent=e.trackEvent,this._closeFn=t=>(e.trackEvent(Ji,"Cancel Order"),e.cancelFn(t)),this._editFn=(t,i,s,n)=>(e.trackEvent(Ji,"Edit Order"),e.modifyFn(t,i,s,n));const y={name:Qi,formatElement:({values:[t]})=>{
const o=""!==t.symbol,r=this._isPlacingOrderCancellingDisabled(t.status),a=(0,h.isOrderActive)(t.status),l=!o||!a,c=l&&r?void 0:()=>this._closeFn(t.id),u=l||!(0,h.isModifyOrderSupported)(t,this._configFlags)?void 0:()=>this._editFn(t),d=o?t.message:$(t.message);return n.createElement(Bi,{closeFn:c,closeTitle:s.t(null,void 0,i(620036)),editFn:u,editTitle:(0,v.appendEllipsis)(s.t(null,void 0,i(433241))),message:d,showCloseButton:!e.isAlwaysActive&&(a||!r),showEditButton:!e.isAlwaysActive&&(0,h.isBrokerSupportOrderModification)(this._configFlags)&&a})},formatText:()=>""};w.addFormatters([...We,y,...t]),this._filterTabs=r,this._subscribeUpdates()}destroy(){this._unsubscribeUpdates(),this._tableViewModel.destroy(),this._tableView.destroy(),super.destroy()}async contextItems(e){const t=this._tableController.rowIdAtEvent(e);if(void 0===t)return[];const n=this._tableController.rowById(t);if(void 0===n||""===n.symbol)return[];const o=[];return(0,h.isModifyOrderSupported)(n,this._configFlags)&&o.push({text:(0,v.appendEllipsis)(s.t(null,void 0,i(433241))),enabled:(0,h.isOrderActive)(n.status),action:()=>this._editFn(n)}),o.push({text:s.t(null,void 0,i(316075)),enabled:(0,h.isOrderActive)(n.status)||!this._isPlacingOrderCancellingDisabled(n.status),action:()=>this._closeFn(t)}),o}contextRow(e){return this._tableController.rowAtEvent(e)}activateFilterTab(e){if(this._activeFilterTabId===e)return;const t=void 0===this._activeFilterTabId;super.activateFilterTab(e);const i=function(e){return ts[e]}(e);this._ordersFilter.setFilterStatus(i),this._columns.forEach((e=>{var t;void 0!==e.supportedStatusFilters&&this._tableController.setColumnAvailable(e.id,e.supportedStatusFilters.includes(null!==(t=i)&&void 0!==t?t:0))})),t||(this._trackEvent(Ji,"Order status filter",null!==i?(0,h.orderStatusToText)(i):void 0),this._tableController.fullUpdate().then((()=>{if(null===i)return void(this._pendingOrdersByStatuses={});const e=this._pendingOrdersByStatuses[i];void 0!==e&&(e.forEach((e=>this._tableController.highlightRowById(e))),e.clear())})))}_subscribeUpdates(){this._tableController.start(),this._orderPreFilter.start(),this._ordersFilter.start(),this._statusWatcher.start(),this._statusWatcher.statusChanged().subscribe(this,this._onStatusChange),this._ordersFilterCountsUpdater.start(),this._ordersFilterCountsUpdater.countChanged().subscribe(this,this._onCountChanged),this._globalFullUpdateDelegate.subscribe(this,this._onGlobalFullUpdate)}_unsubscribeUpdates(){this._tableController.stop(),this._orderPreFilter.stop(),this._ordersFilter.stop(),this._statusWatcher.stop(),this._statusWatcher.statusChanged().unsubscribe(this,this._onStatusChange),this._ordersFilterCountsUpdater.stop(),this._ordersFilterCountsUpdater.countChanged().unsubscribe(this,this._onCountChanged),this._globalFullUpdateDelegate.unsubscribe(this,this._onGlobalFullUpdate)}_onGlobalFullUpdate(){this._pendingOrdersByStatuses={}}_onCountChanged(e){var t,i;const s=(null!==(t=e[Hi(6)])&&void 0!==t?t:0)+(null!==(i=e[Hi(3)])&&void 0!==i?i:0);this._setCount(s)}_onStatusChange(e){var t
;null!==this._ordersFilter.filterStatus()&&4!==e.status&&(this._possibleOrderStatuses.forEach((t=>{var i;null===(i=this._pendingOrdersByStatuses[t])||void 0===i||i.delete(e.id)})),this._pendingOrdersByStatuses[e.status]||(this._pendingOrdersByStatuses[e.status]=new Set),null===(t=this._pendingOrdersByStatuses[e.status])||void 0===t||t.add(e.id),setTimeout((()=>{this._ordersFilter.filterStatus()===e.status&&this._tableController.isRowInViewport(e.id)&&this._tableController.highlightRowById(e.id)}),0))}_isPlacingOrderCancellingDisabled(e){return!this._configFlags.supportPlacingOrderCancelling||4!==e}}const ts={"orderstatus-filled":2,"orderstatus-cancelled":1,"orderstatus-working":6,"orderstatus-inactive":3,"orderstatus-placing":4,"orderstatus-rejected":5,"orderstatustatus-all":null};var is=i(126775);class ss{constructor(e,t,i){this._calculateCounts=async e=>{const t=await this._source();if(null==e?void 0:e.aborted)return;const i=t.filter(_).length;i!==this._count&&(this._count=i,this._countChanged.fire(i))},this._source=e,this._rowUpdateDelegate=t,this._fullUpdateDelegate=i,this._countChanged=new Ze.Delegate,this._abortController=new AbortController,this._calculateCounts=(0,Ui.respectLatest)(this._calculateCounts),this._calculateCountsDebounced=(0,Et.default)((()=>this._calculateCounts(this._abortController.signal)),100)}countChanged(){return this._countChanged}start(){this._abortController=new AbortController,this._rowUpdateDelegate.subscribe(this,this._calculateCountsDebounced),this._fullUpdateDelegate.subscribe(this,this._calculateCountsDebounced),this._calculateCounts(this._abortController.signal)}stop(){this._abortController.abort(),this._count=void 0,this._rowUpdateDelegate.unsubscribe(this,this._calculateCountsDebounced),this._fullUpdateDelegate.unsubscribe(this,this._calculateCountsDebounced)}}const ns="Trading.PositionsTable.Filter",os=["formatPrice","formatPriceForexSup"],rs=s.t(null,void 0,i(948313)),as=s.t(null,void 0,i(518617)),ls=s.t(null,void 0,i(42168)),cs=s.t(null,void 0,i(721801)),us="positionSettings",ds="individualPositionSettings",hs={1:"net-positions",0:"individual-positions"};function ps(e){const{id:t,name:i,content:s,source:n,subscriptions:o,columns:r,priceFormatterFn:a,rowEventsHandlers:l,overlapManager:c,getTableSettingsStorage:u,trackEvent:d}=e,h="id",p=new Xe({priceFormatterGetter:a,columns:r,options:{idProperty:h}}),m=new ki({id:t,model:p,title:i,className:"positions",container:s,columns:r,idProperty:h,getSettingsStorage:u,overlapManager:c,fixedTitleColumnId:"symbol",rowEventsHandlers:l,trackEvent:d,emptyStateMessage:cs,pageSize:void 0===c?100:20});return{model:p,view:m,controller:new ms({idProperty:h,name:i,model:p,view:m,source:n,subscriptions:o})}}class ms extends Ki{_update(e){return _(e)?super._update(e):(this._deleteRow(e.id),!0)}}class gs extends C{constructor(e){const t=function(){const e=document.createElement("div");return e.classList.add(is.pageContainer),e}(),o={id:"positions",name:rs},r=Ke(),a=e.positions.columns.map((e=>os.includes(e.formatter)?{...e,showZeroValues:!1}:e))
;a.push({label:"",id:"settings",alignment:"right",dataFields:["id","message","symbol"],formatter:us,notSortable:!0,showOnMobile:!1});const c=ps({id:e.brokerId+".positions",name:e.individualPositions?as:rs,content:r,source:e.positions.source,subscriptions:Object.assign({},e.positions.subscriptions,{fullUpdateDelegate:e.fullUpdateDelegate}),columns:a,priceFormatterFn:e.priceFormatterFn,overlapManager:e.overlapManager,getTableSettingsStorage:e.getTableSettingsStorage,rowEventsHandlers:e.tableRowEventsHandlers,trackEvent:e.trackEvent});t.appendChild(r);const u=[c.controller];let d,h=null;if(e.individualPositions){const i=e.individualPositions.columns.map((e=>os.includes(e.formatter)?{...e,showZeroValues:!1}:e));i.push({label:"",id:"settings",alignment:"right",dataFields:["id","message","canBeClosed","symbol"],formatter:ds,notSortable:!0,showOnMobile:!1}),h=Ke(),d=ps({id:e.brokerId+".individualPositions",name:ls,content:h,source:e.individualPositions.source,subscriptions:Object.assign({},e.individualPositions.subscriptions,{fullUpdateDelegate:e.fullUpdateDelegate}),columns:i,priceFormatterFn:e.priceFormatterFn,overlapManager:e.overlapManager,getTableSettingsStorage:e.getTableSettingsStorage,rowEventsHandlers:e.tableRowEventsHandlers,trackEvent:e.trackEvent}),t.appendChild(h),u.push(d.controller)}super(t,o,u),this._positionsTableContainer=r,this._individualPositionsTableContainer=h,this._positionsTableController=c.controller,this._positionsTableViewModel=c.model,this._positionsTableView=c.view,this._individualPositionsTableController=null==d?void 0:d.controller,this._individualPositionsTableViewModel=null==d?void 0:d.model,this._individualPositionsTableView=null==d?void 0:d.view,null!==e.individualPositions&&(this._filterTabs=[],this._filterTabs[0]={id:"individual-positions",label:ls,count:new y.WatchedValue(0)},this._filterTabs[1]={id:"net-positions",label:as,count:new y.WatchedValue(0)});const p=e.formatters||[];this._fullUpdateDelegate=e.fullUpdateDelegate,this._posSubscriptions=e.positions.subscriptions,this._checkSupportIndividualPositions=e.checkSupportIndividualPositions,this._checkPositionReverseSupport=e.checkPositionReverseSupport,this._trackEvent=e.trackEvent,this._storeFunctions(e);const m={name:us,formatElement:({values:[e,t,o]})=>{const r=""===o,a=r||null===this._closePositionFn?void 0:this._closePositionFn.bind(null,e),l=r||null===this._editPositionFn?void 0:this._editPositionFn.bind(null,e),c=r?$(t):t;return n.createElement(Bi,{closeFn:a,closeTitle:s.t(null,{context:"position"},i(987323)),editFn:l,editTitle:(0,v.appendEllipsis)(s.t(null,void 0,i(911810))),message:c,showCloseButton:null!==this._closePositionFn,showEditButton:null!==this._editPositionFn})},formatText:()=>""};if(this._positionsTableController.addFormatters([m,...We,...p]),e.individualPositions){const t={name:ds,formatElement:({values:[e,t,o,r]})=>{
const a=""===r,l=a||null===this._closeIndividualPositionFn||!o?void 0:this._closeIndividualPositionFn.bind(null,e),c=a||null===this._editIndividualPositionFn?void 0:this._editIndividualPositionFn.bind(null,e);return n.createElement(Bi,{closeFn:l,closeTitle:s.t(null,{context:"position"},i(987323)),editFn:c,editTitle:(0,v.appendEllipsis)(s.t(null,void 0,i(911810))),message:t,showEditButton:null!==this._editIndividualPositionFn,showCloseButton:null!==this._closeIndividualPositionFn})},formatText:()=>""};(0,l.ensure)(this._individualPositionsTableController).addFormatters([t,...We,...p]),this._individualPositionsFilterCounter=new ss(e.individualPositions.source,e.individualPositions.subscriptions.countUpdateDelegate,this._fullUpdateDelegate)}else this._individualPositionsFilterCounter=null;this._positionsFilterCounter=new ss(e.positions.source,this._posSubscriptions.countUpdateDelegate,this._fullUpdateDelegate),this._subscribeUpdates();const g=et.getInt(ns,0);this._activeFilterTabId=this._checkSupportIndividualPositions()?hs[g]:"net-positions",this._selectPage(this._activeFilterTabId)}async contextItems(e){const t=this._activeTableController(),n=t.rowIdAtEvent(e);if(void 0===n)return[];const o=(0,l.ensureDefined)(t.rowById(n));if(""===o.symbol)return[];const r=[];if("individual-positions"===this._activeFilterTabId)return this._editIndividualPositionFn&&r.push({text:(0,v.appendEllipsis)(s.t(null,void 0,i(911810))),action:this._editIndividualPositionFn.bind(null,n)}),this._closeIndividualPositionFn&&o.canBeClosed&&r.push({text:s.t(null,void 0,i(437431)),action:this._closeIndividualPositionFn.bind(null,n)}),r;this._editPositionFn&&r.push({text:(0,v.appendEllipsis)(s.t(null,void 0,i(911810))),action:this._editPositionFn.bind(null,n)}),this._closePositionFn&&r.push({text:s.t(null,void 0,i(437431)),action:this._closePositionFn.bind(null,n)});const a=await this._checkPositionReverseSupport(o.symbol);return this._reversePositionFn&&a&&r.push({text:s.t(null,void 0,i(419780)),action:this._reversePositionFn.bind(null,n)}),r}contextRow(e){return this._activeTableController().rowAtEvent(e)}destroy(){var e,t;this._unsubscribeUpdates(),this._positionsTableViewModel.destroy(),this._positionsTableView.destroy(),null===(e=this._individualPositionsTableViewModel)||void 0===e||e.destroy(),null===(t=this._individualPositionsTableView)||void 0===t||t.destroy(),super.destroy()}activateFilterTab(e){super.activateFilterTab(e),this._selectPage(e)}_onActiveChanged(e){e?this._activeTableController().setActive(!0):(this._positionsTableController.setActive(!1),this._individualPositionsTableController&&this._individualPositionsTableController.setActive(!1))}_onPositionsCountChanged(e){var t;this._setCount(e),null===(t=this._filterTabs[1])||void 0===t||t.count.setValue(e)}_onIndividualPositionsCountChanged(e){var t;null===(t=this._filterTabs[0])||void 0===t||t.count.setValue(e)}_activeTableController(){return this._checkSupportIndividualPositions()&&"individual-positions"===this._activeFilterTabId?(0,
l.ensure)(this._individualPositionsTableController):this._positionsTableController}_subscribeUpdates(){this._positionsFilterCounter.start(),this._positionsFilterCounter.countChanged().subscribe(this,this._onPositionsCountChanged),this._individualPositionsFilterCounter&&(this._individualPositionsFilterCounter.start(),this._individualPositionsFilterCounter.countChanged().subscribe(this,this._onIndividualPositionsCountChanged)),this._fullUpdateDelegate.subscribe(this,this._stopIndividualPositionsControllerIfNeeded)}_unsubscribeUpdates(){this._positionsFilterCounter.stop(),this._positionsFilterCounter.countChanged().unsubscribe(this,this._onPositionsCountChanged),this._individualPositionsFilterCounter&&(this._individualPositionsFilterCounter.stop(),this._individualPositionsFilterCounter.countChanged().unsubscribe(this,this._onIndividualPositionsCountChanged)),this._fullUpdateDelegate.unsubscribe(this,this._stopIndividualPositionsControllerIfNeeded)}_stopIndividualPositionsControllerIfNeeded(){var e;this.isActive()&&this._checkSupportIndividualPositions()||null===(e=this._individualPositionsTableController)||void 0===e||e.stop()}_selectPage(e){var t,i,s;const n="net-positions"===e;n?this._positionsTableController.start():null===(t=this._individualPositionsTableController)||void 0===t||t.start(),this._positionsTableContainer.classList.toggle("js-hidden",!n),null===(i=this._individualPositionsTableContainer)||void 0===i||i.classList.toggle("js-hidden",n),this._positionsTableController.setActive(n),null===(s=this._individualPositionsTableController)||void 0===s||s.setActive(!n),et.setValue(ns,n?1:0)}_storeFunctions(e){const t="Positions Page",i=e.positions.closeFn;this._closePositionFn=i?e=>(this._trackEvent(t,"Close Position"),i(e)):null;const s=e.positions.editFn;this._editPositionFn=s?e=>(this._trackEvent(t,"Edit Position"),s(e)):null;const n=e.positions.reverseFn;this._reversePositionFn=n?e=>(this._trackEvent(t,"Reverse Position"),n(e)):null;const o=e.individualPositions;if(o){const e=o.closeFn;this._closeIndividualPositionFn=e?i=>(this._trackEvent(t,"Close Individual position"),e(i)):null;const i=o.editFn;this._editIndividualPositionFn=i?e=>(this._trackEvent(t,"Edit Individual position"),i(e)):null}}}var bs=i(661851),vs=i(790170);function _s(e){const{wValue:t,formatter:i,text:s}=e,o=(0,Nt.useWatchedValueReadonly)({watchedValue:t}),r=(0,n.useMemo)((()=>{const e=Ge(null!=i?i:"fixed");return e.isPriceFormatterNeeded?je:e}),[i]),a=(0,n.useMemo)((()=>function(e,t){var i;const s=(null!==(i=e.formatElement)&&void 0!==i?i:e.formatText)({values:[t]});return"string"!=typeof s?s:s.replace(/&nbsp;/g," ")}(r,o)),[r,o]);return void 0===a?n.createElement(n.Fragment,null):n.createElement("div",{className:vs.accountSummaryField},n.createElement("div",{className:vs.title},s),n.createElement("div",{className:vs.value},a))}var fs=i(634762);function ws(e){const{summaryFields:t,displayMode:i}=e;return 0===t.length?n.createElement(n.Fragment,null):n.createElement("div",{className:r(0===i&&fs.addMargin,fs.accountSummaryRow)
},t.map((e=>n.createElement(_s,{...e,key:e.text}))))}var ys=i(605899),Cs=i(353249);function ks(e){const{brokerDropdownProps:t,accountDropdownProps:i,commonDropdownProps:s,summaryFieldsVisibilityManager:o,summaryFields:a,displayMode:l,isBetaBroker:c}=e,u=(0,bs.useObservable)(o.fieldsVisibilityInfo$,o.fieldsVisibilityInfo()),d=a.flatMap((e=>{var t;return(null===(t=u.get(e.text))||void 0===t?void 0:t.visible)?e:[]})),h=void 0!==i&&void 0!==s,p=0!==d.length;return h||p?n.createElement("div",{className:r(Cs.headerWrapper,!h&&Cs.withoutDropdowns)},h&&n.createElement("div",{className:Cs.brokerBlock},n.createElement(ys.AccountManagerHeaderDropdowns,{brokerDropdownProps:t,accountDropdownProps:i,commonDropdownProps:s}),!1),p&&n.createElement(ws,{summaryFields:d,displayMode:l})):n.createElement(n.Fragment,null)}var Es=i(407999),Ps=i(27938);function xs(e){const{element:t}=e;return n.createElement("div",{ref:e=>{null!==e&&(e.contains(t)||(null!==e.firstChild&&e.removeChild(e.firstChild),e.append(t)))}})}var Ts=i(414823),Ss=i(873637),Is=i(949922);const Ds=Is.tabs;function Ms(e){const{id:t,label:i,count:s,isActive:o}=e,r=(0,Nt.useWatchedValueReadonly)({watchedValue:s}),l=0!==r&&void 0!==r?` ${r}`:"";return n.createElement("span",{"data-account-manager-tab-id":t},i,n.createElement("span",{className:a()(!o&&Is.count)},l))}function Ns(e){const{pages:t,onActivate:i,defaultActiveTabId:s}=e,[o,r]=(0,n.useState)(s);return(0,n.useEffect)((()=>{i({id:o})}),[o,i]),n.createElement(Ss.UnderlineButtonTabs,{id:(0,Ts.createDomId)("account-manager-tabs"),className:Ds,overflowBehaviour:"scroll",size:"xsmall",isActive:({id:e})=>e===o,items:t.map((e=>function(e,t){const i=e.id();return{id:i,label:n.createElement(Ms,{id:i,label:e.name(),count:e.count(),isActive:i===t})}}(e,o))),onActivate:({id:e})=>r(e)})}var Fs=i(897107),zs=i(298563),As=i(273388),Rs=i(234539);const Os=(0,n.createContext)("small");i(737402);var Ls=i(72571),Bs=i(792331);function Us({endIcon:e,children:t,className:i,"aria-hidden":s}){return n.createElement("span",{"aria-hidden":s,className:i},t&&n.createElement("span",{className:Bs.content},t),e&&n.createElement(Ls.Icon,{className:Bs["end-icon-wrap"],icon:e,"aria-hidden":!0}))}var Vs=i(573606);const Hs=(0,n.forwardRef)(((e,t)=>{const i=n.useContext(Os),s=(0,n.useContext)(Rs.CustomBehaviourContext),{id:o,active:a,fake:l,theme:c=Vs,enableActiveStateStyles:u=s.enableActiveStateStyles,hideFocusOutline:d=!1,endIcon:h,children:p,...m}=e;return n.createElement("button",{...m,id:o,ref:t,className:r(c["square-tab-button"],a&&c.selected,c[`size-${i}`],l&&c.fake,!u&&c["disable-active-state-styles"],d&&c["disable-focus-outline"])},n.createElement(Us,{endIcon:h,className:Vs["tab-content"]},p),n.createElement(Us,{"aria-hidden":!0,endIcon:h,className:Vs["tab-hidden-content"]},p))}));Hs.displayName="SquareTabButton";const Ws=(0,n.forwardRef)(((e,t)=>{const{item:i,highlighted:s,handleItemRef:o,onClick:r,...a}=e,l=(0,n.useCallback)((()=>{r&&r(i)}),[r,i]),c=(0,n.useCallback)((e=>{o&&o(i,e),(0,As.isomorphicRef)(t)(e)}),[i,o,t]);return n.createElement(Hs,{
...a,id:i.id,onClick:l,ref:c,endIcon:i.endIcon},i.label)}));Ws.displayName="SquareTab";var js=i(525388),Gs=i(904925),qs=i(192063),Ys=i(602948),Ks=i(77819);function $s(e){const{isDropped:t=!1}=e;return n.createElement(Ls.Icon,{icon:Ys,className:r(Ks["arrow-icon"],t&&Ks.dropped)})}function Zs(e){const{disabled:t,isOpened:i,hideFocusOutline:s,fake:o,items:r,buttonContent:a,buttonRef:l,buttonTheme:c,isHighlighted:u,onButtonClick:d,onItemClick:h,onClose:p}=e,m=(0,n.useRef)(null),g=(0,js.useMergedRefs)([l,m]);return n.createElement(Gs.PopupMenuDisclosureView,{buttonRef:m,listboxTabIndex:-1,isOpened:i,onClose:p,listboxAria:{"aria-hidden":!0},button:n.createElement(Hs,{"aria-hidden":!0,disabled:t,active:i,onClick:d,ref:g,tabIndex:-1,theme:c,hideFocusOutline:s,fake:o},a,n.createElement($s,{isDropped:i})),popupChildren:r.map((e=>n.createElement(qs.PopupMenuItem,{key:e.id,onClick:h,onClickArg:e,isActive:u(e),label:e.label,isDisabled:e.disabled,dontClosePopup:!0})))})}const Qs=(0,i(493173).mergeThemes)(Vs,Bs);var Js=i(744012);function Xs(e){const{disabled:t,moreButtonContent:o=s.t(null,void 0,i(141610)),size:a="small",theme:l=Qs,className:c,style:u,"data-name":d="square-tabs-buttons"}=e,{enableActiveStateStyles:h,moreButtonRef:p,setItemRef:m,getBindings:g,handleMoreButtonClick:b,handleCollapsedItemClick:v,scrollWrapBinding:_,overflowBehaviour:f,tablistBinding:w,visibleTabs:y,hiddenTabs:C,handleActivate:k,isMobileTouch:E,getItemId:P,isDisclosureOpened:x,isHighlighted:T,closeDisclosure:S}=(0,zs.useTabsMainHandlers)(Fs.TabNames.SquareButtonTabs,e,{isRtl:M.isRtl,scrollIntoViewOptions:{additionalScroll:parseInt(Js[`css-value-square-tabs-${a}-gap`])}});return n.createElement(Os.Provider,{value:a},n.createElement("div",{..._,className:r(l["scroll-wrap"],"scroll"===f&&l["enable-scroll"],c),style:u,"data-name":d},n.createElement("div",{...w,className:r(l["square-tabs"],l[`size-${a}`])},y.map((e=>{var t;const{"aria-disabled":i,...s}=null!==(t=g(e))&&void 0!==t?t:{};return n.createElement(Ws,{...s,key:e.id,item:e,onClick:()=>k(e),theme:l,enableActiveStateStyles:h,hideFocusOutline:E,ref:m(P(e)),...e.dataId&&{"data-id":e.dataId}})})),C.map((e=>{var t;const{"aria-disabled":i,...s}=null!==(t=g(e))&&void 0!==t?t:{};return n.createElement(Ws,{...s,key:e.id,item:e,theme:l,enableActiveStateStyles:h,fake:!0})})),n.createElement(Zs,{disabled:t,isOpened:x,items:C,buttonContent:o,buttonRef:p,buttonTheme:l,isHighlighted:T,onButtonClick:b,onItemClick:v,onClose:S,hideFocusOutline:E,fake:0===C.length}))))}function en(e){var t;const{id:i,items:s,onActivate:o,defaultActiveFilterTabId:r}=e,[a,c]=(0,n.useState)(null!=r?r:(0,l.ensureDefined)(null===(t=s[0])||void 0===t?void 0:t.id,"AccountManagerPageFilterTabs item"));return(0,n.useEffect)((()=>{o({id:a})}),[a,o]),n.createElement(Xs,{id:(0,Ts.createDomId)("account-manager-page-filter-tabs",i),className:Ds,onActivate:e=>c(e.id),isActive:e=>e.id===a,size:"xsmall",overflowBehaviour:"scroll",items:s.map((e=>({id:e.id,label:n.createElement(Ms,{...e,isActive:e.id===a})})))})}
var tn=i(685014),sn=i(951983),nn=i(118087);const on=[6,3,2,1,5],rn=[2,1,5],an="data-account-manager-page-id";function ln(e){return`[data-account-manager-page-id="${e}"]`}class cn{constructor(e){this._showContextMenu=async e=>{e.preventDefault();let t=await this._contextItems(e);void 0!==t&&(d.enabled("property_pages")||(t=t.slice(0,-1)),p.ContextMenuManager.showMenu((0,h.convertActionDescriptionsToActions)(t),function(e){const t=e instanceof MouseEvent?e:e.touches[0];return{clientX:t.clientX,clientY:t.clientY}}(e),void 0,{menuName:"AccountManagerContextMenu"}))},this._activateTab=({id:e})=>{if(e===this._currentTabId)return;if(void 0!==this._currentTabId){const e=this._container.querySelector(ln(this._currentTabId));null==e||e.classList.remove(nn.active)}(0,l.ensureNotNull)(this._container.querySelector(ln(e)),"Page to activate").classList.add(nn.active),this._currentTabId=e,this._attachFilter(),this._trading.trackEvent("Bottom Panel",`Select ${e} page`),this._updatePagesActiveStatuses()};const{broker:t,bridge:i,mode:s,summaryFieldsVisibilityManager:n,overlapManager:o}=e;this._adapter=(0,l.ensureNotNull)(t),this._bridge=i,this._container=i.container,this._mode=s,this._overlapManager=o,this._summaryFieldsVisibilityManager=n,this._pages=[],this._trading=(0,l.ensureNotNull)((0,g.tradingService)()),this._info=this._adapter.accountManagerInfo(),this._dispatch=this.bindContextMenu(),this._renderTemplate()}async priceFormatter(e){return e.symbol?this._trading.formatter(e.symbol):null}remove(){for(this._unmountComponentBySelector(".js-account-manager-header"),this._unmountComponentBySelector(".js-top-panel"),this._unmountComponentBySelector(".js-secondary-panel"),this._unsubscribe(),this._pages.forEach((e=>e.destroy())),this.unbindContextMenu();this._container.firstChild;)this._container.removeChild(this._container.firstChild)}bindContextMenu(){return u.CheckMobile.isIPad()?this._bindLongPressMenu():0===this._mode?this._bindTapMenu():this._bindContextMenu()}unbindContextMenu(){null!==this._dispatch&&(this._dispatch(),this._dispatch=null)}static async create(e){const t=new cn(e);return await t._create(),t._subscribe(),t._fullUpdate(),t}_bindContextMenu(){return this._container.addEventListener("contextmenu",this._showContextMenu),()=>this._container.removeEventListener("contextmenu",this._showContextMenu)}_bindLongPressMenu(){let e;const t=t=>{clearTimeout(e),e=setTimeout((()=>this._showContextMenu(t)),400)},i=()=>clearTimeout(e);return this._container.addEventListener("touchstart",t),this._container.addEventListener("touchend",i),this._container.addEventListener("touchmove",i),()=>{clearTimeout(e),this._container.removeEventListener("touchstart",t),this._container.removeEventListener("touchend",i),this._container.removeEventListener("touchmove",i)}}_bindTapMenu(){const e=e=>{void 0!==this._currentPage().contextRow(e)&&this._showContextMenu(e)},t=e=>{e.preventDefault()};return this._container.addEventListener("click",e),this._container.addEventListener("contextmenu",t),()=>{this._container.removeEventListener("click",e),
this._container.removeEventListener("contextmenu",t)}}_unmountComponentBySelector(e){const t=this._container.querySelector(e);null!==t&&o.unmountComponentAtNode(t)}_ensuredCurrentTabId(){return(0,l.ensureDefined)(this._currentTabId,"Current tab id")}_initializeTabs(){this._activateTab({id:this._pages[0].id()}),o.render(n.createElement(Ns,{pages:this._pages,defaultActiveTabId:this._ensuredCurrentTabId(),onActivate:this._activateTab}),(0,l.ensureNotNull)(this._container.querySelector(".js-top-panel"),"AccountManagerTabs container"))}_linkTableRowSymbol(e){0!==this._mode&&void 0!==e.symbol&&""!==e.symbol&&c.linking.setSymbolAndLogInitiator(e.symbol,"account manager")}_onTableRowClick(e,t,i){const s=e;0!==this._mode&&""!==s.symbol&&(c.linking.proSymbol.value()!==s.symbol?c.linking.setSymbolAndLogInitiator(s.symbol,"account manager"):t.setSelectedItem({id:s.id,type:i}))}_onTableRowMouseEnter(e,t,i){const s=e;0!==this._mode&&c.linking.proSymbol.value()===s.symbol&&t.setHoveredItem({id:s.id,type:i})}_onTableRowMouseLeave(e,t){const i=e;0!==this._mode&&c.linking.proSymbol.value()===i.symbol&&t.dropHoveredItem()}_makeTableRowEventsHandlers(e,t){return{onClick:i=>this._onTableRowClick(i,e,t),onMouseEnter:i=>this._onTableRowMouseEnter(i,e,t),onMouseLeave:t=>this._onTableRowMouseLeave(t,e)}}async _getPages(){const e=this._adapter.metainfo().id,t=this._adapter.accountManagerInfo(),o=this._adapter.metainfo().configFlags,r=this._getPagesAvailabilityInfo(),a=(0,l.ensureNotNull)(this._trading.brokerCommandsUI()),c={},u=await this._trading.tradedItemsChartCollectionFacade(),d=void 0!==t.customFormatters?t.customFormatters.map((({name:e,formatText:t,formatElement:i,isPriceFormatterNeeded:s})=>void 0===i?{name:e,formatText:t}:{name:e,formatText:t,formatElement:e=>{const t=i(e);return t instanceof window.parent.Element?n.createElement(xs,{element:t}):t},isPriceFormatterNeeded:s})):[];if(r.positions){const i=this._makeTableRowEventsHandlers(u,Ps.TradedItemType.Position),s=async e=>{const t=await this._adapter.getSymbolSpecificTradingOptions(e);return Boolean(null==t?void 0:t.supportReversePosition)};c.positionPage={ctor:gs,ctorArguments:{brokerId:e,formatters:d,tableRowEventsHandlers:i,priceFormatterFn:this.priceFormatter.bind(this),checkSupportIndividualPositions:()=>!0===o.supportPositionNetting,checkPositionReverseSupport:s,positions:{source:()=>this._adapter.positions().then((e=>e.filter((e=>_(e))))),closeFn:a.closePosition.bind(a),editFn:o.supportPositionBrackets?a.editPositionBrackets.bind(a):null,reverseFn:o.supportReversePosition?a.reversePosition.bind(a):null,columns:(0,l.ensureDefined)(t.positionColumns),subscriptions:{rowUpdateDelegate:new m([this._adapter.positionPartialUpdate,this._adapter.positionUpdate]),countUpdateDelegate:this._adapter.positionUpdate,plSubscription:this._adapter.subscribePL.bind(this._adapter)}},individualPositions:o.supportPositionNetting?{source:()=>this._adapter.individualPositions().then((e=>e.filter((e=>0!==e.qty)))),closeFn:o.supportCloseIndividualPosition?a.closeIndividualPosition.bind(a):null,
editFn:o.supportIndividualPositionBrackets?(0,l.ensureDefined)(a.editIndividualPositionBrackets).bind(a):null,reverseFn:null,columns:(0,l.ensureDefined)(t.individualPositionColumns||t.positionColumns),subscriptions:{rowUpdateDelegate:new m([this._adapter.individualPositionPartialUpdate,this._adapter.individualPositionUpdate]),countUpdateDelegate:this._adapter.individualPositionUpdate,plSubscription:this._adapter.subscribePL.bind(this._adapter)}}:null,fullUpdateDelegate:this._adapter.currentAccountUpdate,overlapManager:this._overlapManager,getTableSettingsStorage:this._trading.getBrokerTradingSettingsStorage,trackEvent:this._trading.trackEvent}}}const h=this._adapter.orders.bind(this._adapter),p=this._makeTableRowEventsHandlers(u,Ps.TradedItemType.Order);c.orderPage={ctor:es,ctorArguments:{id:"orders",title:s.t(null,void 0,i(293104)),source:h,cancelFn:a.cancelOrder.bind(a),modifyFn:a.modifyOrder.bind(a),columns:t.orderColumns,tableId:e+".orders",tableRowEventsHandlers:p,formatters:d,priceFormatterFn:this.priceFormatter.bind(this),subscriptions:{fullUpdateDelegate:this._adapter.currentAccountUpdate,rowUpdateDelegate:new m([this._adapter.orderPartialUpdate,this._adapter.orderUpdate]),orderUpdateDelegate:this._adapter.orderUpdate},possibleOrderStatuses:on.filter((e=>!t.possibleOrderStatuses||-1!==t.possibleOrderStatuses.indexOf(e))),filter:()=>!0,initialSorting:t.orderColumnsSorting,configFlags:o,overlapManager:this._overlapManager,getTableSettingsStorage:this._trading.getBrokerTradingSettingsStorage,trackEvent:this._trading.trackEvent}};const g=this._adapter.ordersHistory.bind(this._adapter);return r.history&&(c.historyPage={ctor:es,ctorArguments:{id:"history",title:s.t(null,void 0,i(197698)),source:()=>Promise.all([h(),g()]).then((e=>[].concat(...e))),cancelFn:a.cancelOrder.bind(a),modifyFn:a.modifyOrder.bind(a),columns:(0,l.ensureDefined)(t.historyColumns),tableId:e+".history",tableRowEventsHandlers:p,formatters:d,priceFormatterFn:this.priceFormatter.bind(this),subscriptions:{fullUpdateDelegate:this._adapter.currentAccountUpdate,rowUpdateDelegate:new m([this._adapter.orderPartialUpdate,this._adapter.orderUpdate]),orderUpdateDelegate:this._adapter.orderUpdate},possibleOrderStatuses:rn.filter((e=>!t.possibleOrderStatuses||-1!==t.possibleOrderStatuses.indexOf(e))),filter:e=>![3,4,6].includes(e.status),initialSorting:t.historyColumnsSorting,isAlwaysActive:!0,configFlags:o,overlapManager:this._overlapManager,getTableSettingsStorage:this._trading.getBrokerTradingSettingsStorage,trackEvent:this._trading.trackEvent}}),c.customPages=t.pages.map((t=>{const i=t.tables.map((i=>{var s;return{id:`${e}.${t.id}.${i.id}`,title:i.title||"",columns:i.columns,source:i.getData,options:{className:"balances",idProperty:"id",defaultSortingParameters:i.initialSorting},formatters:d,priceFormatterFn:this.priceFormatter.bind(this),subscriptions:{fullUpdateDelegate:this._adapter.currentAccountUpdate,rowUpdateDelegate:i.changeDelegate},flags:i.flags,rowEventsHandlers:(null===(s=i.flags)||void 0===s?void 0:s.supportLinking)?{
onClick:this._linkTableRowSymbol}:void 0}}));return{ctor:Pi,ctorArguments:{id:t.id,title:t.title,tables:i,displayMode:this._mode,overlapManager:this._overlapManager,getTableSettingsStorage:this._trading.getBrokerTradingSettingsStorage,trackEvent:this._trading.trackEvent}}})),r.notifications&&(c.notificationsPage={ctor:Ni,ctorArguments:{id:"notifications-log",title:s.t(null,void 0,i(386249)),source:()=>Promise.resolve(this._trading.getNotifications()),columns:Di,formatters:[Ii],priceFormatterFn:this.priceFormatter.bind(this),subscriptions:{fullUpdateDelegate:this._trading.onNotificationsChanged,rowUpdateDelegate:this._trading.onNewNotification},overlapManager:this._overlapManager,initialSorting:{property:"time",asc:!1},getTableSettingsStorage:this._trading.getBrokerTradingSettingsStorage,trackEvent:this._trading.trackEvent}}),c}_getPagesAvailabilityInfo(){const e=this._adapter.metainfo().configFlags;return{positions:Boolean(e.supportPositions),orders:!0,history:Boolean(e.supportOrdersHistory),tradeHistory:Boolean(e.supportTradeHistoryTabInAccountManager),notifications:Boolean(d.enabled("show_trading_notifications_history")&&e.showNotificationsLog)}}_renderTemplate(){const e=this._getPagesAvailabilityInfo(),t=Object.values(e).filter((e=>e)).length+this._adapter.accountManagerInfo().pages.length,i=(0,l.ensureNotNull)((0,b.parseHtmlElement)(((e=0,t)=>`<div class="${a()(nn.accountManager,0===t&&nn.popup)}">\n\t\t\t\t<div class="js-account-manager-header"></div>\n\t\t\t\t<div class="${nn.topPanel} js-top-panel"></div>\n\t\t\t\t<div class="${nn.secondaryPanel} js-secondary-panel"></div>\n\t\t\t\t<div class="${nn.content}">\n\t\t\t\t\t${`<div class="${nn.page} js-page"></div>`.repeat(e)}\n\t\t\t\t</div>\n\t\t\t</div>`)(t,this._mode)));this._container.appendChild(i)}async _create(){const e=await this._getPages();for(const t of Object.values(e))if(Array.isArray(t)){const e=t.map((e=>new e.ctor(e.ctorArguments)));this._pages.push(...e)}else this._pages.push(new t.ctor(t.ctorArguments));const t=this._container.querySelectorAll(".js-page");this._pages.forEach(((e,i)=>{t[i].innerHTML="",t[i].appendChild(e.content()),t[i].setAttribute(an,e.id())})),this._initializeTabs(),this._render()}async _render(){let e;1===this._mode&&(e=await(0,Es.makeAccountManagerHeaderDropdownsProps)(this._trading,this._summaryFieldsVisibilityManager,1,(()=>this._getDataExporters()))),o.render(n.createElement(ks,{...e,summaryFields:this._info.summary,summaryFieldsVisibilityManager:this._summaryFieldsVisibilityManager,isBetaBroker:this._adapter.metainfo().isBeta,displayMode:this._mode}),this._container.querySelector(".js-account-manager-header"))}_getDataExporters(){const e=new Map;for(const t of this._pages){const i=t.getExporters();e.set(i.title,i)}return e}_subscribe(){const e=e=>{e?this._updatePagesActiveStatuses():this._pages.forEach((e=>e.setActive(!1)))};this._bridge.visible.subscribe(e,{callWithLast:!0}),this._dispatchVisibilityHandler=()=>this._bridge.visible.unsubscribe(e)}_updatePagesActiveStatuses(){const e=this._currentPage().id()
;for(const t of this._pages)t.setActive(1===this._adapter.connectionStatus()&&t.id()===e)}_attachFilter(){const e=this._currentPage(),t=e.filterTabs(),i=(0,l.ensureNotNull)(this._container.querySelector(".js-secondary-panel"),"Filter container");0===t.length?o.unmountComponentAtNode(i):o.render(n.createElement(en,{key:e.id(),id:e.id(),onActivate:({id:t})=>e.activateFilterTab(t),defaultActiveFilterTabId:e.activeFilterTabId(),items:t}),i)}_fullUpdate(){this._pages.forEach((e=>e.reset()))}_unsubscribe(){this._dispatchVisibilityHandler&&(this._dispatchVisibilityHandler(),delete this._dispatchVisibilityHandler)}_currentPage(){const e=this._ensuredCurrentTabId();return(0,l.ensureDefined)(this._pages.find((t=>t.id()===e)),"Current page")}async _contextItems(e){const t=this._currentPage().contextRow(e);if(void 0===t)return;const n="Bottom Panel Context Menu",o=await this._currentPage().contextItems(e);if(this._info&&this._info.contextMenuActions)return this._info.contextMenuActions(e,o);const r={separator:!0},a=[],l=t.symbol;if(l)if(1===this._mode){0!==o.length&&a.push(r);const e=await this._trading.makeNewOrderContextMenuAction(l,n);a.push(e)}else 0!==o.length&&a.push(r),a.push({text:s.t(null,void 0,i(903147)).replace("{symbol}",l),icon:tn,action:()=>{this._trading.trackEvent(n,"Open chart"),c.linking.setSymbolAndLogInitiator(l,"account manager"),this._trading.tradingPanelPopup.hide()}});else;return d.enabled("property_pages")&&(0!==o.length&&a.push(r),a.push({text:(0,v.appendEllipsis)(s.t(null,void 0,i(670360))),icon:sn,action:()=>{this._trading.trackEvent(n,"Trading Properties"),this._trading.showTradingProperties()}})),o.concat(a)}}},241347:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SummaryFieldsVisibilityManager:()=>n});var s=i(947488);class n{constructor(e,t){var i;this.toggleField=e=>{var t;const i=this._fieldsVisibilityInfo$.getValue(),s=new Map(i),n=s.get(e);void 0!==n&&(n.visible=!n.visible,this._fieldsVisibilityInfo$.next(s),null===(t=this._settingsGetter())||void 0===t||t.setSummaryFieldsVisibilityInfo(s))},this._settingsGetter=t;const n=null===(i=this._settingsGetter())||void 0===i?void 0:i.summaryFieldsVisibilityInfo();this._fieldsVisibilityInfo$=new s.BehaviorSubject(new Map(e.map((({text:e,isDefault:t})=>{var i,s,o;return[e,{id:e,visible:null===(o=null!==(s=null===(i=null==n?void 0:n.get(e))||void 0===i?void 0:i.visible)&&void 0!==s?s:t)||void 0===o||o}]})))),this.fieldsVisibilityInfo$=this._fieldsVisibilityInfo$.asObservable()}fieldsVisibilityInfo(){return this._fieldsVisibilityInfo$.getValue()}}},164530:(e,t,i)=>{"use strict";i.d(t,{BracketType:()=>s.BracketType,OrderOrPositionMessageType:()=>s.OrderOrPositionMessageType});i(282729);var s=i(656846);i(311757)},27938:(e,t,i)=>{"use strict";var s;i.d(t,{TradedItemType:()=>s}),function(e){e[e.Position=0]="Position",e[e.Order=1]="Order"}(s||(s={}))},75577:(e,t,i)=>{"use strict";i.d(t,{TradingLayoutBreakpoint:()=>n});var s=i(312282);const n={Mobile:s.mobile}},761248:(e,t,i)=>{"use strict";function s(e){return e.charAt(0).toUpperCase()+e.substring(1)}i.d(t,{
capitalizeFirstLetter:()=>s})},602948:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z"/></svg>'},935495:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="m4 4h-2v10h2zm-2-1c-.55228 0-1 .44772-1 1v10c0 .5523.44772 1 1 1h2c.55228 0 1-.4477 1-1v-10c0-.55228-.44772-1-1-1zm8 1h-2v10h2zm-2-1c-.55228 0-1 .44772-1 1v10c0 .5523.44772 1 1 1h2c.5523 0 1-.4477 1-1v-10c0-.55228-.4477-1-1-1zm6 1h2v10h-2zm-1 0c0-.55228.4477-1 1-1h2c.5523 0 1 .44772 1 1v10c0 .5523-.4477 1-1 1h-2c-.5523 0-1-.4477-1-1z"/></svg>'},552019:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M13.35 5.35a.5.5 0 0 0-.7-.7L9 8.29 5.35 4.65a.5.5 0 1 0-.7.7L8.29 9l-3.64 3.65a.5.5 0 0 0 .7.7L9 9.71l3.65 3.64a.5.5 0 0 0 .7-.7L9.71 9l3.64-3.65z"/></svg>'},48008:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M3 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm6-1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm7-2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1 0a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"/></svg>'},610600:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M13.5 7l1.65-1.65a.5.5 0 0 0 0-.7l-1.8-1.8a.5.5 0 0 0-.7 0L11 4.5M13.5 7L11 4.5M13.5 7l-8.35 8.35a.5.5 0 0 1-.36.15H2.5v-2.3a.5.5 0 0 1 .15-.35L11 4.5"/></svg>'},290556:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m3.83 8.51.28.34 3.5 4 .76-.66L5.6 9.02H14v-1H5.6l2.78-3.17-.76-.66-3.5 4-.28.33Z"/></svg>'},281670:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m14.16 8.5-.28.34-3.5 4-.76-.66L12.4 9H4V8h8.4L9.62 4.84l.76-.66 3.5 4 .28.33Z"/></svg>'},499084:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16Zm3.87-12.15c.36.2.49.66.28 1.02l-4 7a.75.75 0 0 1-1.18.16l-3-3a.75.75 0 1 1 1.06-1.06l2.3 2.3 3.52-6.14a.75.75 0 0 1 1.02-.28Z"/></svg>'},530162:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM9 4c-.79 0-1.38.7-1.25 1.48l.67 4.03a.59.59 0 0 0 1.16 0l.67-4.03A1.27 1.27 0 0 0 9 4Zm0 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'},527941:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM8 6a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm1 2c.49 0 1 .59 1 1v3.01c0 .42-.51.99-1 .99s-1-.57-1-.99V9c0-.41.51-1 1-1Z"/></svg>'},482353:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 17A8 8 0 1 0 9 1a8 8 0 0 0 0 16Zm0-3a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM6 7.5a3 3 0 1 1 6 0c0 .96-.6 1.48-1.17 1.98-.55.48-1.08.95-1.08 1.77h-1.5c0-1.37.7-1.9 1.33-2.38.49-.38.92-.71.92-1.37C10.5 6.67 9.82 6 9 6s-1.5.67-1.5 1.5H6Z"/></svg>'},685014:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M8 5.5h12A2.5 2.5 0 0 1 22.5 8v12a2.5 2.5 0 0 1-2.5 2.5H8A2.5 2.5 0 0 1 5.5 20V8A2.5 2.5 0 0 1 8 5.5zM4 8a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4V8zm15.49 5.07a.75.75 0 1 0-.98-1.14l-2.97 2.55-2.51-2.51a.75.75 0 0 0-1.02-.04l-3.5 3a.75.75 0 1 0 .98 1.14l2.97-2.55 2.51 2.51c.28.28.72.3 1.02.04l3.5-3z"/></svg>'},87523:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M11.42 7.52 6.02 14l5.4 6.48 1.16-.96-3.98-4.77H21v-1.5H8.6l3.98-4.77-1.16-.96Z"/></svg>'},505357:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="m16.58 7.52 5.4 6.48-5.4 6.48-1.16-.96 3.98-4.77H7v-1.5h12.4l-3.98-4.77 1.16-.96Z"/></svg>'},465890:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11" height="9" fill="none"><path stroke-width="2" d="M0.999878 4L3.99988 7L9.99988 1"/></svg>'},379978:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 5l3.5 3.5L8 12"/></svg>'},987323:e=>{e.exports={ar:["إغلاق"],ca_ES:"Close",cs:"Close",de:"Close",el:"Close",en:"Close",es:["Cierre"],fa:"Close",fr:["Fermer"],he_IL:["סגור"],hu_HU:["Zárás"],id_ID:["Tutup"],it:["Chiudi"],ja:["決済"],ko:["종"],ms_MY:["Tutup"],nl_NL:"Close",pl:["Zamknij"],pt:["Fechar"],ro:"Close",ru:["Закрыть позицию"],sv:["Stäng"],th:["ปิด"],tr:["Kapat"],vi:["Đóng"],zh:["平仓"],zh_TW:["平倉"]}},398065:e=>{e.exports={ar:["إنشاء العمود"],ca_ES:["Configuració columna"],cs:"Column setup",de:["Säulen-Einstellung"],el:"Column setup",en:"Column setup",es:["Configuración columna"],fa:"Column setup",fr:["Configuration des colonnes"],he_IL:["הגדרת עמודות"],hu_HU:["Oszlopbeállítás"],id_ID:["Pengaturan Kolom"],it:["Impostazione colonne"],ja:["カラムの設定"],ko:["컬럼 셋업"],ms_MY:["Persediaan lajur"],nl_NL:"Column setup",pl:["Konfiguracja kolumn"],pt:["Configuração das Colunas"],ro:"Column setup",ru:["Настройка столбцов"],sv:["Ordna kolumner"],th:["ตั้งค่าคอลัมน์"],tr:["Sütun ayarları"],vi:["Thiết lập Cột"],zh:["栏目设置"],zh_TW:["欄目設定"]}},620036:e=>{e.exports={ar:["إلغاء"],ca_ES:["Cancel·la"],cs:["Zrušit"],de:["Abbrechen"],el:["Άκυρο"],
en:"Cancel",es:["Cancelar"],fa:["لغو"],fr:["Annuler"],he_IL:["ביטול"],hu_HU:["Törlés"],id_ID:["Batal"],it:["Annulla"],ja:["キャンセル"],ko:["취소"],ms_MY:["Batal"],nl_NL:["Annuleren"],pl:["Anuluj"],pt:["Cancelar"],ro:"Cancel",ru:["Отмена"],sv:["Avbryt"],th:["ยกเลิก"],tr:["İptal"],vi:["Hủy bỏ"],zh:["取消"],zh_TW:["取消"]}},316075:e=>{e.exports={ar:["إلغاء أمر"],ca_ES:["Cancel·lar ordre"],cs:"Cancel Order",de:["Auftrag abbrechen"],el:"Cancel Order",en:"Cancel Order",es:["Cancelar orden"],fa:"Cancel Order",fr:["Annuler Ordre"],he_IL:["בטל פקודה"],hu_HU:["Megbízás Törlése"],id_ID:["Batalkan Order"],it:["Annulla ordine"],ja:["注文をキャンセル"],ko:["주문 취소"],ms_MY:["Batalkan Pesanan"],nl_NL:"Cancel Order",pl:["Anuluj zlecenie"],pt:["Cancelar ordem"],ro:"Cancel Order",ru:["Отменить заявку"],sv:["Avbryt order"],th:["ยกเลิกคำสั่ง"],tr:["Emir İptal"],vi:["Hủy Lệnh"],zh:["取消订单"],zh_TW:["取消報單"]}},437431:e=>{e.exports={ar:["إغلاق صفقة"],ca_ES:"Close Position",cs:"Close Position",de:["Position Schließen"],el:"Close Position",en:"Close Position",es:["Cerrar posición"],fa:"Close Position",fr:["Fermer la Position"],he_IL:["סגור פוזיציה"],hu_HU:["Záró Pozíció"],id_ID:["Tutup Posisi"],it:["Chiudi posizione"],ja:["ポジションを決済"],ko:["포지션 닫기"],ms_MY:["Kedudukan Penutup"],nl_NL:"Close Position",pl:["Zamknij pozycję"],pt:["Fechar Posição"],ro:"Close Position",ru:["Закрыть позицию"],sv:["Stäng position"],th:["ปิดสถานะ"],tr:["Pozisyonu Kapat"],vi:["Đóng Trạng thái"],zh:["平仓"],zh_TW:["平倉"]}},426634:e=>{e.exports={ar:["إنشاء حساب"],ca_ES:["Crear un compte"],cs:"Create account",de:["Account erstellen"],el:"Create account",en:"Create account",es:["Crear una cuenta"],fa:"Create account",fr:["Créer un compte"],he_IL:["צור חשבון"],hu_HU:"Create account",id_ID:["Buat akun"],it:["Crea account"],ja:["アカウントを作成"],ko:["어카운트 만들기"],ms_MY:["Cipta akaun"],nl_NL:"Create account",pl:["Załóz konto"],pt:["Criar conta"],ro:"Create account",ru:["Создать учётную запись"],sv:["Skapa konto"],th:["สร้างบัญชี"],tr:["Hesap oluştur"],vi:["Tạo tài khoản"],zh:["创建账户"],zh_TW:["建立帳號"]}},50985:e=>{e.exports={ar:["عملة"],ca_ES:["Divisa"],cs:["Měna"],de:["Währung"],el:"Currency",en:"Currency",es:["Divisa"],fa:"Currency",fr:["Devise"],he_IL:["מַטְבֵּעַ"],hu_HU:["Valuta"],id_ID:["Mata Uang"],it:["Valuta"],ja:["通貨"],ko:["통화"],ms_MY:["Mata wang"],nl_NL:"Currency",pl:["Waluta"],pt:["Moeda"],ro:"Currency",ru:["Валюта"],sv:["Valuta"],th:["สกุลเงิน"],tr:["Döviz"],vi:["Tiền tệ"],zh:["货币"],zh_TW:["貨幣"]}},271207:e=>{e.exports={ar:["حساب"],ca_ES:"Account",cs:"Account",de:["Benutzerkonto"],el:"Account",en:"Account",es:["Cuenta"],fa:"Account",fr:["Compte"],he_IL:["חשבון‏"],hu_HU:["Számla"],id_ID:["Akun"],it:"Account",ja:["アカウント"],ko:["계정"],ms_MY:["Akaun"],nl_NL:"Account",pl:["Rachunek"],pt:["Conta"],ro:"Account",ru:["Счёт"],sv:["Konto"],th:["แอคเคาห์"],tr:["Hesap"],vi:["Tài khoản"],zh:["账户"],zh_TW:["帳號"]}},695271:e=>{e.exports={ar:["كل"],ca_ES:["Tots"],cs:["Vše"],de:["Alle"],el:"All",en:"All",es:["Todos"],fa:["همه"],fr:["Tout"],he_IL:["הכל"],hu_HU:["Összes"],id_ID:["Seluruhnya"],it:["Tutto"],ja:["すべて"],ko:["전체"],
ms_MY:["Semua"],nl_NL:"All",pl:["Wszystko"],pt:["Todos"],ro:"All",ru:["Все"],sv:["Alla"],th:["ทั้งหมด"],tr:["Tümü"],vi:["Tất cả"],zh:["全部"],zh_TW:["全部"]}},654563:e=>{e.exports={ar:["انتقل إلى الصفحة التالية"],ca_ES:"Go to next page",cs:"Go to next page",de:["Zur nächsten Seite"],el:"Go to next page",en:"Go to next page",es:["Ir a la página siguiente"],fa:"Go to next page",fr:["Aller à la page suivante"],he_IL:["עבור אל העמוד הבא"],hu_HU:"Go to next page",id_ID:["Ke halaman selanjutnya"],it:["Vai alla pagina successiva"],ja:["次のページに進む"],ko:["다음 페이지로 이동"],ms_MY:["Pergi ke halaman seterusnya"],nl_NL:"Go to next page",pl:["Przejdź do następnej strony"],pt:["Ir para próxima página"],ro:"Go to next page",ru:["Следующая страница"],sv:"Go to next page",th:"Go to next page",tr:["Sonraki sayfaya git"],vi:["Truy cập trang tiếp theo"],zh:["转到下一页"],zh_TW:["前往下一頁"]}},987140:e=>{e.exports={ar:["انتقل إلى الصفحة رقم {pageNumber} من الجدول"],ca_ES:"Go to page #{pageNumber} of table",cs:"Go to page #{pageNumber} of table",de:["Gehe auf Seite #{pageNumber} der Tabelle"],el:"Go to page #{pageNumber} of table",en:"Go to page #{pageNumber} of table",es:["Ir a la página #{pageNumber} de la tabla"],fa:"Go to page #{pageNumber} of table",fr:["Aller à la page #{pageNumber} du tableau"],he_IL:["עבור לדף #{pageNumber} בטבלה"],hu_HU:"Go to page #{pageNumber} of table",id_ID:["Menuju halaman #{pageNumber} dari tabel"],it:["Vai alla pagina #{pageNumber} della tabella"],ja:["テーブルの{pageNumber}ページに移動"],ko:["표의 #{pageNumber} 페이지로 이동합니다."],ms_MY:["Pergi ke halaman #{pageNumber} jadual"],nl_NL:"Go to page #{pageNumber} of table",pl:["Przejdź do strony #{pageNumber} tabeli"],pt:["Ir para a página #{pageNumber} da tabela"],ro:"Go to page #{pageNumber} of table",ru:["Перейти на страницу #{pageNumber} таблицы"],sv:"Go to page #{pageNumber} of table",th:"Go to page #{pageNumber} of table",tr:["Tablonun #{pageNumber} sayfasına git"],vi:["Truy cập trang #{pageNumber} của bảng"],zh:["转到表格的第#{pageNumber}页"],zh_TW:["到表的第#{pageNumber}頁"]}},737928:e=>{e.exports={ar:["انتقل إلى الصفحة السابقة"],ca_ES:"Go to previous page",cs:"Go to previous page",de:["Zur vorherigen Seite"],el:"Go to previous page",en:"Go to previous page",es:["Ir a la página anterior"],fa:"Go to previous page",fr:["Aller à la page précédente"],he_IL:["עבור אל העמוד הקודם"],hu_HU:"Go to previous page",id_ID:["Ke halaman sebelumnya"],it:["Vai alla pagina precedente"],ja:["前のページに戻る"],ko:["이전 페이지로 이동"],ms_MY:["Pergi ke halaman sebelum"],nl_NL:"Go to previous page",pl:["Wróć do poprzedniej strony"],pt:["Ir para página anterior"],ro:"Go to previous page",ru:["Предыдущая страница"],sv:"Go to previous page",th:"Go to previous page",tr:["Önceki sayfaya git"],vi:["Truy cập trang trước đó"],zh:["转到上一页"],zh_TW:["前往上一頁"]}},116744:e=>{e.exports={ar:["تعديل"],ca_ES:["Editar"],cs:["Upravit"],de:["Bearbeiten"],el:"Edit",en:"Edit",es:["Editar"],fa:["ویرایش"],fr:["Editer"],he_IL:["עריכה"],hu_HU:["Szerkesztés"],id_ID:"Edit",it:["Modifica"],ja:["編集"],ko:["편집"],ms_MY:"Edit",nl_NL:["Aanpassen"],pl:["Edytuj"],
pt:["Editar"],ro:"Edit",ru:["Редактировать"],sv:["Redigera"],th:["ปรับเปลียน"],tr:["Düzenle"],vi:["Chỉnh sửa"],zh:["编辑"],zh_TW:["編輯"]}},125769:e=>{e.exports={ar:["تصدير البيانات"],ca_ES:["Exporta dades"],cs:"Export data",de:["Daten exportieren"],el:"Export data",en:"Export data",es:["Exportar datos"],fa:"Export data",fr:["Exporter les données"],he_IL:["ייצוא נתונים"],hu_HU:"Export data",id_ID:["Ekspor data"],it:["Esporta dati"],ja:["データのエクスポート"],ko:["데이터 익스포트"],ms_MY:["Eksport data"],nl_NL:"Export data",pl:["Eksportuj dane"],pt:["Exportar dados"],ro:"Export data",ru:["Экспорт данных"],sv:["Exportera data"],th:["ส่งออกข้อมูล"],tr:["Verileri dışa aktar"],vi:["Xuất dữ liệu"],zh:["导出数据"],zh_TW:["匯出數據"]}},197698:e=>{e.exports={ar:["السجل"],ca_ES:"History",cs:"History",de:["Verlauf"],el:"History",en:"History",es:["Histórico"],fa:"History",fr:["Historique"],he_IL:["היסטוריה"],hu_HU:["Előzmények"],id_ID:["Histori"],it:["Storico"],ja:["履歴"],ko:["과거"],ms_MY:["Sejarah"],nl_NL:"History",pl:["Historia"],pt:["Histórico"],ro:"History",ru:["История"],sv:["Historik"],th:["ประวัติศาสตร์"],tr:["Geçmiş"],vi:["Lịch sử"],zh:["历史"],zh_TW:["歷史"]}},42168:e=>{e.exports={ar:["مراكز فردية"],ca_ES:"Individual Positions",cs:"Individual Positions",de:["Einzelpositionen"],el:"Individual Positions",en:"Individual Positions",es:["Posiciones individuales"],fa:"Individual Positions",fr:["Positions individuelles"],he_IL:"Individual Positions",hu_HU:"Individual Positions",id_ID:["Posisi Individual"],it:["Posizioni individuali"],ja:["個別ポジション"],ko:["개별 포지션"],ms_MY:["Kedudukan Individu"],nl_NL:"Individual Positions",pl:["Pojedyncze Pozycje"],pt:["Posições Individuais"],ro:"Individual Positions",ru:["Индивидуальные позиции"],sv:["Individuella positioner"],th:["สถานะส่วนบุคคล"],tr:["Bireysel Pozisyonlar"],vi:["Vị thế Cá nhân"],zh:["个人持仓"],zh_TW:["個人部位"]}},903147:e=>{e.exports={ar:["فتح الرسم البياني {symbol}"],ca_ES:"Open chart with {symbol}",cs:"Open chart with {symbol}",de:["Chart öffnen für {symbol}"],el:"Open chart with {symbol}",en:"Open chart with {symbol}",es:["Abrir gráfico con {symbol}"],fa:"Open chart with {symbol}",fr:["Ouvrir le graphique avec {symbol}"],he_IL:["פתח גרף עם {symbol}"],hu_HU:"Open chart with {symbol}",id_ID:["Buka chart {symbol}"],it:["Apri grafico {symbol}"],ja:["{symbol} のチャートを開く"],ko:["{symbol} 차트 열기"],ms_MY:["Buka carta dengan {symbol}"],nl_NL:"Open chart with {symbol}",pl:["Otwórz wykres z {symbol}"],pt:["Abrir o gráfico com {symbol}"],ro:"Open chart with {symbol}",ru:["Открыть график {symbol}"],sv:["Öppet diagram med {symbol}"],th:["เปิดชาร์ตด้วย {symbol}"],tr:["Grafiği {symbol} ile aç"],vi:["Mở biểu đồ với {symbol}"],zh:["打开{symbol}图表"],zh_TW:["打開 {symbol} 圖表"]}},293104:e=>{e.exports={ar:["أوامر التداول"],ca_ES:["Ordres"],cs:"Orders",de:"Orders",el:"Orders",en:"Orders",es:["Órdenes"],fa:"Orders",fr:["Ordres"],he_IL:["פקודות"],hu_HU:["Megbízások"],id_ID:["Order"],it:["Ordini"],ja:["注文"],ko:["주문"],ms_MY:["Pesanan"],nl_NL:"Orders",pl:["Zlecenia"],pt:["Ordens"],ro:"Orders",ru:["Заявки"],sv:["Ordrar"],th:["ออเดอร์"],
tr:["Emirler"],vi:["Lệnh"],zh:["订单"],zh_TW:["訂單"]}},433241:e=>{e.exports={ar:["تعديل الأمر"],ca_ES:["Modifica ordre"],cs:"Modify Order",de:["Order modifizieren"],el:"Modify Order",en:"Modify Order",es:["Modificar orden"],fa:"Modify Order",fr:["Modifier l'ordre"],he_IL:["שנה הוראה"],hu_HU:"Modify Order",id_ID:["Memodifikasi Order"],it:["Modifica ordine"],ja:["注文の変更"],ko:["오더 고치기"],ms_MY:["Ubah Suai Pesanan"],nl_NL:"Modify Order",pl:["Modyfikuj zlecenie"],pt:["Modificar ordem"],ro:"Modify Order",ru:["Изменить заявку"],sv:["Ändra order"],th:["แก้ไขออเดอร์"],tr:["Emir Değiştir"],vi:["Chỉnh Lệnh"],zh:["修改订单"],zh_TW:["修改訂單"]}},141610:e=>{e.exports={ar:["المزيد"],ca_ES:["Més"],cs:["Více"],de:["Mehr"],el:"More",en:"More",es:["Más"],fa:["بیشتر"],fr:["Plus"],he_IL:["עוד"],hu_HU:["Több"],id_ID:["Lebih lanjut"],it:["Altro"],ja:["詳細"],ko:["더보기"],ms_MY:["Lebih"],nl_NL:["Meer"],pl:["Więcej"],pt:["Mais"],ro:"More",ru:["Ещё"],sv:["Mer"],th:["เพิ่มเติม"],tr:["Daha Fazla"],vi:["Thêm nữa"],zh:["更多"],zh_TW:["更多"]}},294111:e=>{e.exports={ar:"Manage accounts",ca_ES:"Manage accounts",cs:"Manage accounts",de:["Kontoverwaltung"],el:"Manage accounts",en:"Manage accounts",es:["Gestionar cuentas"],fa:"Manage accounts",fr:["Gérer les comptes"],he_IL:["נהל חשבונות"],hu_HU:"Manage accounts",id_ID:["Kelola akun"],it:["Gestione degli account"],ja:["アカウントを管理する"],ko:["계정 관리"],ms_MY:["Uruskan akaun"],nl_NL:"Manage accounts",pl:["Zarządzaj kontami"],pt:["Gerenciar contas"],ro:"Manage accounts",ru:["Управление счетами"],sv:"Manage accounts",th:"Manage accounts",tr:["Hesapları yönetin"],vi:["Quản lý tài khoản"],zh:["管理账户"],zh_TW:["管理帳戶"]}},386249:e=>{e.exports={ar:["سجل الإشعارات"],ca_ES:"Notifications log",cs:"Notifications log",de:["Handelsprotokoll"],el:"Notifications log",en:"Notifications log",es:["Registro de notificaciones"],fa:"Notifications log",fr:["Journal des notifications"],he_IL:["יומן התראות"],hu_HU:["Értesítési napló"],id_ID:["Log pemberitahuan"],it:["Registro notifiche"],ja:["通知履歴"],ko:["알림 로그"],ms_MY:["Log Notifikasi"],nl_NL:"Notifications log",pl:["Dziennik powiadomień"],pt:["Registro de notificações"],ro:"Notifications log",ru:["Журнал уведомлений"],sv:["Meddelandelogg"],th:["บันทึกการแจ้งเตือน"],tr:["Bildirimler"],vi:["Nhật ký thông báo"],zh:["通知日志"],zh_TW:["通知紀錄"]}},518617:e=>{e.exports={ar:["إجمالي المراكز"],ca_ES:"Net Positions",cs:"Net Positions",de:["Nettopositionen"],el:"Net Positions",en:"Net Positions",es:["Posiciones Netas"],fa:"Net Positions",fr:["Positions nettes"],he_IL:["פוזיציות נטו"],hu_HU:"Net Positions",id_ID:["Posisi Bersih"],it:["Posizioni nette"],ja:["ネットポジション"],ko:["넷 포지션"],ms_MY:["Kedudukan Bersih"],nl_NL:"Net Positions",pl:["Pozycje Netto"],pt:["Posições Líquidas"],ro:"Net Positions",ru:["Чистые позиции"],sv:["Nettopositioner"],th:["สถานะสุทธิ"],tr:["Net Pozisyonlar"],vi:["Vị thế thực"],zh:["净持仓"],zh_TW:["淨部位"]}},522382:e=>{e.exports={ar:["صف ملخص"],ca_ES:"Summary row",cs:"Summary row",de:["Zusammenfassung der Zeile"],el:"Summary row",en:"Summary row",es:["Línea de resumen"],fa:"Summary row",
fr:["Ligne de résumé"],he_IL:["שורת סיכום"],hu_HU:"Summary row",id_ID:["Row rangkuman"],it:["Riga sommario"],ja:["サマリー行"],ko:["요약줄"],ms_MY:["Baris kesimpulan"],nl_NL:"Summary row",pl:["Wiersz podsumowania"],pt:["Linha de resumo"],ro:"Summary row",ru:["Информация по счёту"],sv:["Sammanfattning av rad"],th:["แถวสรุป"],tr:["Özet satırı"],vi:["Tóm tắt hàng"],zh:["摘要行"],zh_TW:["摘要行"]}},948313:e=>{e.exports={ar:["مراكز تداول"],ca_ES:["Posicions"],cs:"Positions",de:["Positionen"],el:"Positions",en:"Positions",es:["Posiciones"],fa:"Positions",fr:"Positions",he_IL:["פוזיציות"],hu_HU:["Pozíciók"],id_ID:["Posisi"],it:["Posizioni"],ja:["ポジション"],ko:["포지션"],ms_MY:["Kedudukan"],nl_NL:"Positions",pl:["Pozycje"],pt:["Posições"],ro:"Positions",ru:["Позиции"],sv:["Positioner"],th:["ตำแหน่ง"],tr:["Pozisyonlar"],vi:["Vị thế"],zh:["持仓"],zh_TW:["持倉"]}},540451:e=>{e.exports={ar:['ترقيم الصفحات لجدول "{tableName}"'],ca_ES:'Pagination of "{tableName}" table',cs:'Pagination of "{tableName}" table',de:['Seitennummerierung der "{tableName}" Tabelle'],el:'Pagination of "{tableName}" table',en:'Pagination of "{tableName}" table',es:['Paginación de la tabla "{tableName}".'],fa:'Pagination of "{tableName}" table',fr:["Pagination du tableau {tableName}"],he_IL:['עימוד של הטבלה "{tableName}".'],hu_HU:'Pagination of "{tableName}" table',id_ID:['Pagination dari tabel "{tableName}"'],it:['Impaginazione della tabella "{tableName}"'],ja:['テーブル "{tableName}" のページ設定'],ko:["표의 #{tableName} 페이지로 이동합니다."],ms_MY:['Penomboran jadual "{tableName}"'],nl_NL:'Pagination of "{tableName}" table',pl:["Paginacja tabeli „{tableName}”."],pt:['Paginação da tabela "{tableName}"'],ro:'Pagination of "{tableName}" table',ru:["Нумерация страниц таблицы «{tableName}»"],sv:'Pagination of "{tableName}" table',th:'Pagination of "{tableName}" table',tr:['"{tableName}" tablosunun sayfalandırılması'],vi:['Phân trang của bảng "{tableName}"'],zh:["“{tableName}”表的分页"],zh_TW:["“{tableName}”表的分頁"]}},911810:e=>{e.exports={ar:["حماية المركز"],ca_ES:"Protect Position",cs:"Protect Position",de:["Position absichern"],el:"Protect Position",en:"Protect Position",es:["Proteger posición"],fa:"Protect Position",fr:["Protéger la position"],he_IL:["הגן על הפוזיציה."],hu_HU:"Protect Position",id_ID:["Lindungi Posisi"],it:["Proteggi posizione"],ja:["ポジション保護"],ko:["프로텍트 포지션"],ms_MY:["Melindungi Kedudukan"],nl_NL:"Protect Position",pl:["Zabezpiecz pozycję"],pt:["Proteger a posição"],ro:"Protect Position",ru:["Защитить позицию"],sv:["Skydda position"],th:["ป้องกันโพซิชั่น"],tr:["Pozisyonu Koru"],vi:["Bảo vệ Vị thế"],zh:["保护持仓"],zh_TW:["保護倉位"]}},419780:e=>{e.exports={ar:["عكس الصفقة"],ca_ES:"Reverse Position",cs:"Reverse Position",de:["Position Umkehren"],el:"Reverse Position",en:"Reverse Position",es:["Revertir posición"],fa:"Reverse Position",fr:["Inverser la Position"],he_IL:["הפוך פוזיציה"],hu_HU:["Fordított Pozíció"],id_ID:["Membalik Posisi"],it:["Inverti posizione"],ja:["ポジションを反転"],ko:["리버스 포지션"],ms_MY:["Kedudukan Terbalik"],nl_NL:"Reverse Position",pl:["Odwróć pozycje"],pt:["Reverter Posição"],
ro:"Reverse Position",ru:["Перевернуть позицию"],sv:["Omvänd position"],th:["ตำแหน่งการย้อนกลับ"],tr:["Karşıt Pozisyon"],vi:["Vị thế Đảo ngược"],zh:["平仓反手"],zh_TW:["平倉反手"]}},673862:e=>{e.exports={ar:"Table pagination",ca_ES:"Table pagination",cs:"Table pagination",de:["Seitennummerierung der Tabelle"],el:"Table pagination",en:"Table pagination",es:["Paginación de la tabla"],fa:"Table pagination",fr:["Pagination du tableau"],he_IL:["עימוד הטבלה"],hu_HU:"Table pagination",id_ID:["Pagination tabel"],it:["Impaginazione della tabella"],ja:["テーブルのページ設定"],ko:["표 페이지 매김"],ms_MY:["Penomboran jadual"],nl_NL:"Table pagination",pl:["Paginacja tabeli"],pt:["Paginação da tabela"],ro:"Table pagination",ru:["Нумерация страниц таблицы"],sv:"Table pagination",th:"Table pagination",tr:["Sayfalandırma tablosu"],vi:["Phân trang của bảng"],zh:["表格分页"],zh_TW:["表格分頁"]}},120294:e=>{e.exports={ar:["لم يتم التعرف على الرمز. يتم عرض بيانات التداول في وضع القراءة فقط."],ca_ES:"The symbol is not recognized. Trading data is displayed in read-only mode.",cs:"The symbol is not recognized. Trading data is displayed in read-only mode.",de:["Das Symbol wird nicht erkannt. Die Trading-Daten werden im Lese-Modus angezeigt."],el:"The symbol is not recognized. Trading data is displayed in read-only mode.",en:"The symbol is not recognized. Trading data is displayed in read-only mode.",es:["No se ha reconocido el símbolo. Los datos del trading se muestran en modo de solo lectura."],fa:"The symbol is not recognized. Trading data is displayed in read-only mode.",fr:["Le symbole n'est pas reconnu. Les données de trading sont affichées en mode lecture seule."],he_IL:["הסימול אינו מזוהה. נתוני המסחר מוצגים במצב קריאה בלבד."],hu_HU:"The symbol is not recognized. Trading data is displayed in read-only mode.",id_ID:["Simbol tidak dikenali. Data trading ditampilkan dalam mode hanya-membaca."],it:["Il simbolo non è riconosciuto. I dati di trading sono mostrati in modalità di sola lettura."],ja:["シンボルが認識できません。取引データは読み取り専用で表示されています。"],ko:["알 수 없는 심볼입니다. 트레이딩 데이터는 리드-온리 모드로 디스플레이됩니다."],ms_MY:["Simbol adalah tidak dikenali. Data perdagangan ini dipaparkan dalam mod baca sahaja."],nl_NL:"The symbol is not recognized. Trading data is displayed in read-only mode.",pl:["Symbol nie został rozpoznany. Dane handlowe są wyświetlane w trybie tylko do odczytu."],pt:["O símbolo não é reconhecido. Os dados de negociação são exibidos no modo somente leitura."],ro:"The symbol is not recognized. Trading data is displayed in read-only mode.",ru:["Символ не распознаётся. Торговые данные будут отображаться режиме только для чтения."],sv:["Symbolen känns inte igen. Handelsdata visas i skrivskyddat läge."],th:["ไม่รู้จักสัญลักษณ์ ข้อมูลการซื้อขายจะแสดงในโหมดอ่านอย่างเดียว"],tr:["Sembol tanınmıyor. İşlem verileri ancak salt okunur modda görüntülenebilir."],vi:["Mã giao dịch không được xác nhận. Dữ liệu giao dịch được hiển thị ở chế độ chỉ đọc."],zh:["此商品代码无法识别。交易数据以只读模式显示。"],zh_TW:["此商品代碼無法識別。交易數據以唯讀模式顯示。"]}},721801:e=>{e.exports={ar:["لا توجد مراكز مفتوحة في حساب تداولك حتى الآن"],
ca_ES:"There are no open positions in your trading account yet",cs:"There are no open positions in your trading account yet",de:["Es gibt noch keine offenen Positionen in Ihrem Handelskonto"],el:"There are no open positions in your trading account yet",en:"There are no open positions in your trading account yet",es:["Aún no hay posiciones abiertas en su cuenta de trading"],fa:"There are no open positions in your trading account yet",fr:["Il n'y a pas encore de positions ouvertes sur votre compte de trading"],he_IL:["עדיין אין פוזיציות פתוחות בחשבון המסחר שלך"],hu_HU:"There are no open positions in your trading account yet",id_ID:["Belum ada posisi terbuka di akun trading anda"],it:["Non ci sono ancora posizioni aperte nel tuo conto trading"],ja:["あなたの取引口座には未決済のポジションはありません"],ko:["아직 거래 계좌에 열린 포지션이 없습니다."],ms_MY:["Tiada posisi dibuka pada akaun dagangan anda lagi"],nl_NL:"There are no open positions in your trading account yet",pl:["Na Twoim rachunku handlowym nie ma jeszcze otwartych pozycji"],pt:["Ainda não há posições abertas em sua conta de negociação"],ro:"There are no open positions in your trading account yet",ru:["На вашем торговом счёте пока нет открытых позиций"],sv:["Det finns ännu inga öppna positioner på ditt handelskonto"],th:"There are no open positions in your trading account yet",tr:["Yatırım hesabınızda henüz açık pozisyon yok"],vi:["Chưa có vị thế mở cho tài khoản giao dịch của bạn"],zh:["您的交易账户中还没有未平仓位"],zh_TW:["您的交易帳戶中沒有未結部位"]}},446630:e=>{e.exports={ar:["لا توجد بيانات تداول هنا حتى الآن"],ca_ES:"There is no trading data here yet",cs:"There is no trading data here yet",de:["Es gibt hier noch keine Handelsdaten"],el:"There is no trading data here yet",en:"There is no trading data here yet",es:["Aún no hay datos de trading aquí"],fa:"There is no trading data here yet",fr:["Il n'y a pas encore de données de trading ici"],he_IL:["אין כאן עדיין נתוני מסחר"],hu_HU:"There is no trading data here yet",id_ID:["Belum tersedia data trading di sini"],it:["Non ci sono ancora dati di trading"],ja:["ここにはまだ取引データはありません"],ko:["아직 거래 데이터가 없습니다."],ms_MY:["Tiada data dagangan di sini lagi"],nl_NL:"There is no trading data here yet",pl:["Nie ma tu jeszcze żadnych danych handlowych"],pt:["Ainda não há dados de negociação aqui"],ro:"There is no trading data here yet",ru:["Здесь пока нет данных о сделках"],sv:["Det finns ingen handelsdata här ännu"],th:"There is no trading data here yet",tr:["Burada henüz işlem verisi yok"],vi:["Chưa có dữ liệu giao dịch ở đây"],zh:["这里暂无交易数据"],zh_TW:["這裡還沒有交易數據"]}},767369:e=>{e.exports={ar:["عنوان"],ca_ES:["Títol"],cs:"Title",de:["Titel"],el:"Title",en:"Title",es:["Título"],fa:"Title",fr:["Titre"],he_IL:["כותרת"],hu_HU:["Cím"],id_ID:["Judul"],it:["Titolo"],ja:["タイトル"],ko:["타이틀"],ms_MY:["Tajuk"],nl_NL:"Title",pl:["Tytuł"],pt:["Título"],ro:"Title",ru:["Заголовок"],sv:["Titel"],th:["หัวเรื่อง"],tr:["Başlık"],vi:["Tiêu đề"],zh:["标题"],zh_TW:["標題"]}},670360:e=>{e.exports={ar:["ضبط إعدادات التداول"],ca_ES:"Trading Settings",cs:"Trading Settings",de:["Trading Einstelllungen"],
el:"Trading Settings",en:"Trading Settings",es:["Configuración del trading"],fa:"Trading Settings",fr:["Paramètres de trading"],he_IL:["הגדרות מסחר"],hu_HU:"Trading Settings",id_ID:["Pengaturan Trading"],it:["Impostazioni trading"],ja:["トレード設定"],ko:["트레이딩 세팅"],ms_MY:["Tetapan Dagangan"],nl_NL:"Trading Settings",pl:["Ustawienia tradingowe"],pt:["Preferências de Negociação"],ro:"Trading Settings",ru:["Настройки торговли"],sv:["Inställningar för handel"],th:["การตั้งค่าการซื้อขาย"],tr:["İşlem Ayarları"],vi:["Cài đặt Giao dịch"],zh:["交易设置"],zh_TW:["交易設定"]}},660187:e=>{e.exports={ar:["قيمة"],ca_ES:["Valor"],cs:["Hodnota"],de:["Wert"],el:"Value",en:"Value",es:["Valor"],fa:"Value",fr:["Valeur"],he_IL:["ערך"],hu_HU:["Érték"],id_ID:["Nilai"],it:["Valore"],ja:["値"],ko:["값"],ms_MY:["Nilai"],nl_NL:"Value",pl:["Wartość"],pt:["Valor"],ro:"Value",ru:["Значение"],sv:["Värde"],th:["มูลค่า"],tr:["Değer"],vi:["Giá trị"],zh:["价格"],zh_TW:["價格"]}}}]);