(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2985],{323428:e=>{e.exports={button:"button-PYEOTd6i",disabled:"disabled-PYEOTd6i",hidden:"hidden-PYEOTd6i",icon:"icon-PYEOTd6i",dropped:"dropped-PYEOTd6i"}},345350:e=>{e.exports={"nav-button":"nav-button-znwuaSC1",link:"link-znwuaSC1",background:"background-znwuaSC1",icon:"icon-znwuaSC1","flip-icon":"flip-icon-znwuaSC1","size-large":"size-large-znwuaSC1","preserve-paddings":"preserve-paddings-znwuaSC1","size-medium":"size-medium-znwuaSC1","size-small":"size-small-znwuaSC1","size-xsmall":"size-xsmall-znwuaSC1","size-xxsmall":"size-xxsmall-znwuaSC1","visually-hidden":"visually-hidden-znwuaSC1"}},101414:e=>{e.exports={button:"button-D4RPB3ZC",content:"content-D4RPB3ZC","icon-only":"icon-only-D4RPB3ZC",link:"link-D4RPB3ZC","color-brand":"color-brand-D4RPB3ZC","variant-primary":"variant-primary-D4RPB3ZC","variant-secondary":"variant-secondary-D4RPB3ZC","color-gray":"color-gray-D4RPB3ZC","color-green":"color-green-D4RPB3ZC","color-red":"color-red-D4RPB3ZC","color-black":"color-black-D4RPB3ZC","color-black-friday":"color-black-friday-D4RPB3ZC","color-cyber-monday":"color-cyber-monday-D4RPB3ZC","size-xsmall":"size-xsmall-D4RPB3ZC","start-icon-wrap":"start-icon-wrap-D4RPB3ZC","end-icon-wrap":"end-icon-wrap-D4RPB3ZC","with-start-icon":"with-start-icon-D4RPB3ZC","with-end-icon":"with-end-icon-D4RPB3ZC","size-small":"size-small-D4RPB3ZC","size-medium":"size-medium-D4RPB3ZC","size-large":"size-large-D4RPB3ZC","size-xlarge":"size-xlarge-D4RPB3ZC",animated:"animated-D4RPB3ZC",stretch:"stretch-D4RPB3ZC",grouped:"grouped-D4RPB3ZC","adjust-position":"adjust-position-D4RPB3ZC","first-row":"first-row-D4RPB3ZC","first-col":"first-col-D4RPB3ZC","no-corner-top-left":"no-corner-top-left-D4RPB3ZC","no-corner-top-right":"no-corner-top-right-D4RPB3ZC","no-corner-bottom-right":"no-corner-bottom-right-D4RPB3ZC","no-corner-bottom-left":"no-corner-bottom-left-D4RPB3ZC","text-wrap":"text-wrap-D4RPB3ZC","multiline-content":"multiline-content-D4RPB3ZC","secondary-text":"secondary-text-D4RPB3ZC","primary-text":"primary-text-D4RPB3ZC"}},281026:e=>{e.exports={container:"container-WDZ0PRNh","container-xxsmall":"container-xxsmall-WDZ0PRNh","container-xsmall":"container-xsmall-WDZ0PRNh","container-small":"container-small-WDZ0PRNh","container-medium":"container-medium-WDZ0PRNh","container-large":"container-large-WDZ0PRNh","intent-default":"intent-default-WDZ0PRNh",focused:"focused-WDZ0PRNh",readonly:"readonly-WDZ0PRNh",disabled:"disabled-WDZ0PRNh","with-highlight":"with-highlight-WDZ0PRNh",grouped:"grouped-WDZ0PRNh","adjust-position":"adjust-position-WDZ0PRNh","first-row":"first-row-WDZ0PRNh","first-col":"first-col-WDZ0PRNh",stretch:"stretch-WDZ0PRNh","font-size-medium":"font-size-medium-WDZ0PRNh","font-size-large":"font-size-large-WDZ0PRNh","no-corner-top-left":"no-corner-top-left-WDZ0PRNh","no-corner-top-right":"no-corner-top-right-WDZ0PRNh","no-corner-bottom-right":"no-corner-bottom-right-WDZ0PRNh","no-corner-bottom-left":"no-corner-bottom-left-WDZ0PRNh",
"size-xxsmall":"size-xxsmall-WDZ0PRNh","size-xsmall":"size-xsmall-WDZ0PRNh","size-small":"size-small-WDZ0PRNh","size-medium":"size-medium-WDZ0PRNh","size-large":"size-large-WDZ0PRNh","intent-success":"intent-success-WDZ0PRNh","intent-warning":"intent-warning-WDZ0PRNh","intent-danger":"intent-danger-WDZ0PRNh","intent-primary":"intent-primary-WDZ0PRNh","border-none":"border-none-WDZ0PRNh","border-thin":"border-thin-WDZ0PRNh","border-thick":"border-thick-WDZ0PRNh",highlight:"highlight-WDZ0PRNh",shown:"shown-WDZ0PRNh"}},7236:e=>{e.exports={"inner-slot":"inner-slot-W53jtLjw",interactive:"interactive-W53jtLjw",icon:"icon-W53jtLjw","inner-middle-slot":"inner-middle-slot-W53jtLjw","before-slot":"before-slot-W53jtLjw","after-slot":"after-slot-W53jtLjw"}},625650:e=>{e.exports={loader:"loader-UL6iwcBa",static:"static-UL6iwcBa",item:"item-UL6iwcBa","tv-button-loader":"tv-button-loader-UL6iwcBa",medium:"medium-UL6iwcBa",small:"small-UL6iwcBa",black:"black-UL6iwcBa",white:"white-UL6iwcBa",gray:"gray-UL6iwcBa",primary:"primary-UL6iwcBa"}},83073:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-PhMf7PhQ",submitButton:"submitButton-PhMf7PhQ",buttons:"buttons-PhMf7PhQ"}},488803:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 430px)"}},755596:e=>{e.exports={dialog:"dialog-b8SxMnzX",wrapper:"wrapper-b8SxMnzX",separator:"separator-b8SxMnzX",bounded:"bounded-b8SxMnzX"}},869827:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-BZKENkhT",unsetAlign:"unsetAlign-BZKENkhT",title:"title-BZKENkhT",subtitle:"subtitle-BZKENkhT",textWrap:"textWrap-BZKENkhT",ellipsis:"ellipsis-BZKENkhT",close:"close-BZKENkhT",icon:"icon-BZKENkhT"}},366986:e=>{e.exports={button:"button-tFul0OhX","button-children":"button-children-tFul0OhX",hiddenArrow:"hiddenArrow-tFul0OhX",invisibleFocusHandler:"invisibleFocusHandler-tFul0OhX"}},760673:e=>{e.exports={placeholder:"placeholder-V6ceS6BN"}},345719:e=>{e.exports={separator:"separator-Pf4rIzEt"}},805184:(e,t,n)=>{"use strict";n.d(t,{Button:()=>c});var o=n(50959),r=n(171529);function a(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function i(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function s(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:n,appearance:o,useFullWidth:r,icon:l,...c}=e;return{...c,color:i(t),size:s(n),variant:a(o),stretch:r,startIcon:l}}function c(e){return o.createElement(r.SquareButton,{...l(e)})}},389986:(e,t,n)=>{"use strict";n.d(t,{CloseButton:()=>u});var o=n(50959),r=n(270762),a=n(117105),i=n(315130),s=n(238822),l=n(663346),c=n(534983);function d(e="large"){switch(e){case"large":return a;case"medium":default:return i;case"small":return s;case"xsmall":return l;case"xxsmall":return c}}
const u=o.forwardRef(((e,t)=>o.createElement(r.NavButton,{...e,ref:t,icon:d(e.size)})))},270762:(e,t,n)=>{"use strict";n.d(t,{NavButton:()=>c});var o=n(50959),r=n(497754),a=n(72571),i=n(345350);function s(e){const{size:t="large",preservePaddings:n,isLink:o,flipIconOnRtl:a,className:s}=e;return r(i["nav-button"],i[`size-${t}`],n&&i["preserve-paddings"],a&&i["flip-icon"],o&&i.link,s)}function l(e){const{children:t,icon:n}=e;return o.createElement(o.Fragment,null,o.createElement("span",{className:i.background}),o.createElement(a.Icon,{icon:n,className:i.icon,"aria-hidden":!0}),t&&o.createElement("span",{className:i["visually-hidden"]},t))}const c=(0,o.forwardRef)(((e,t)=>{const{icon:n,type:r="button",preservePaddings:a,flipIconOnRtl:i,size:c,"aria-label":d,...u}=e;return o.createElement("button",{...u,className:s({...e,children:d}),ref:t,type:r},o.createElement(l,{icon:n},d))}));c.displayName="NavButton";var d=n(591365),u=n(273388);(0,o.forwardRef)(((e,t)=>{const{icon:n,renderComponent:r,"aria-label":a,...i}=e,c=null!=r?r:d.CustomComponentDefaultLink;return o.createElement(c,{...i,className:s({...e,children:a,isLink:!0}),reference:(0,u.isomorphicRef)(t)},o.createElement(l,{icon:n},a))})).displayName="NavAnchorButton"},171529:(e,t,n)=>{"use strict";n.d(t,{SquareButton:()=>b});var o=n(50959),r=n(497754),a=n(331774),i=n(72571),s=n(101414),l=n.n(s);const c="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text";function d(e){const{color:t="brand",size:n="medium",variant:o="primary",stretch:i=!1,icon:s,startIcon:d,endIcon:u,iconOnly:p=!1,className:h,isGrouped:m,cellState:f,disablePositionAdjustment:b=!1,primaryText:g,secondaryText:C,isAnchor:v=!1}=e,x=function(e){let t="";return 0!==e&&(1&e&&(t=r(t,l()["no-corner-top-left"])),2&e&&(t=r(t,l()["no-corner-top-right"])),4&e&&(t=r(t,l()["no-corner-bottom-right"])),8&e&&(t=r(t,l()["no-corner-bottom-left"]))),t}((0,a.getGroupCellRemoveRoundBorders)(f));return r(h,l().button,l()[`size-${n}`],l()[`color-${t}`],l()[`variant-${o}`],i&&l().stretch,(s||d)&&l()["with-start-icon"],u&&l()["with-end-icon"],p&&l()["icon-only"],x,m&&l().grouped,m&&!b&&l()["adjust-position"],m&&f.isTop&&l()["first-row"],m&&f.isLeft&&l()["first-col"],g&&C&&l()["multiline-content"],v&&l().link,c)}function u(e){const{startIcon:t,icon:n,iconOnly:a,children:s,endIcon:d,primaryText:u,secondaryText:p}=e,h=null!=t?t:n,m=!(t||n||d||a)&&!s&&u&&p;return o.createElement(o.Fragment,null,h&&o.createElement(i.Icon,{icon:h,className:l()["start-icon-wrap"]}),s&&o.createElement("span",{className:l().content},s),d&&!a&&o.createElement(i.Icon,{icon:d,className:l()["end-icon-wrap"]}),m&&function(e){return e.primaryText&&e.secondaryText&&o.createElement("div",{className:r(l()["text-wrap"],c)},o.createElement("span",{className:l()["primary-text"]}," ",e.primaryText," "),"string"==typeof e.secondaryText?o.createElement("span",{className:l()["secondary-text"]}," ",e.secondaryText," "):o.createElement("span",{className:l()["secondary-text"]
},o.createElement("span",null,e.secondaryText.firstLine),o.createElement("span",null,e.secondaryText.secondLine)))}(e))}var p=n(601198),h=n(380327),m=n(800417);function f(e){const{className:t,color:n,variant:o,size:r,stretch:a,animated:i,icon:s,iconOnly:l,startIcon:c,endIcon:d,primaryText:u,secondaryText:p,...h}=e;return{...h,...(0,m.filterDataProps)(e),...(0,m.filterAriaProps)(e)}}function b(e){const{reference:t,tooltipText:n,...r}=e,{isGrouped:a,cellState:i,disablePositionAdjustment:s}=(0,o.useContext)(h.ControlGroupContext),l=d({...r,isGrouped:a,cellState:i,disablePositionAdjustment:s});return o.createElement("button",{...f(r),className:l,ref:t,"data-overflow-tooltip-text":null!=n?n:e.primaryText?[e.primaryText,e.secondaryText].join(" "):(0,p.getTextForTooltip)(e.children)},o.createElement(u,{...r}))}},331774:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},34735:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>C,InputClasses:()=>f});var o=n(50959),r=n(497754),a=n(650151),i=n(525388),s=n(800417),l=n(380327),c=n(331774);var d=n(281026),u=n.n(d);function p(e){let t="";return 0!==e&&(1&e&&(t=r(t,u()["no-corner-top-left"])),2&e&&(t=r(t,u()["no-corner-top-right"])),4&e&&(t=r(t,u()["no-corner-bottom-right"])),8&e&&(t=r(t,u()["no-corner-bottom-left"]))),t}function h(e,t,n,o){const{removeRoundBorder:a,className:i,intent:s="default",borderStyle:l="thin",size:d,highlight:h,disabled:m,readonly:f,stretch:b,noReadonlyStyles:g,isFocused:C}=e,v=p(null!=a?a:(0,c.getGroupCellRemoveRoundBorders)(n));return r(u().container,u()[`container-${d}`],u()[`intent-${s}`],u()[`border-${l}`],d&&u()[`size-${d}`],v,h&&u()["with-highlight"],m&&u().disabled,f&&!g&&u().readonly,C&&u().focused,b&&u().stretch,t&&u().grouped,!o&&u()["adjust-position"],n.isTop&&u()["first-row"],n.isLeft&&u()["first-col"],i)}function m(e,t,n){const{highlight:o,highlightRemoveRoundBorder:a}=e;if(!o)return u().highlight;const i=p(null!=a?a:(0,c.getGroupCellRemoveRoundBorders)(t));return r(u().highlight,u().shown,u()[`size-${n}`],i)}const f={FontSizeMedium:(0,a.ensureDefined)(u()["font-size-medium"]),FontSizeLarge:(0,a.ensureDefined)(u()["font-size-large"])},b={passive:!1};function g(e,t){const{style:n,id:r,role:a,onFocus:c,onBlur:d,onMouseOver:u,onMouseOut:p,onMouseDown:f,onMouseUp:g,onKeyDown:C,onClick:v,tabIndex:x,startSlot:w,middleSlot:y,endSlot:D,onWheel:E,onWheelNoPassive:N=null,size:k}=e,{isGrouped:R,cellState:S,disablePositionAdjustment:P=!1}=(0,o.useContext)(l.ControlGroupContext),B=function(e,t=null,n){const r=(0,o.useRef)(null),a=(0,o.useRef)(null),i=(0,o.useCallback)((()=>{if(null===r.current||null===a.current)return;const[e,t,n]=a.current;null!==t&&r.current.addEventListener(e,t,n)}),[]),s=(0,o.useCallback)((()=>{if(null===r.current||null===a.current)return;const[e,t,n]=a.current;null!==t&&r.current.removeEventListener(e,t,n)}),[]),l=(0,o.useCallback)((e=>{s(),r.current=e,i()}),[]);return(0,
o.useEffect)((()=>(a.current=[e,t,n],i(),s)),[e,t,n]),l}("wheel",N,b);return o.createElement("span",{style:n,id:r,role:a,className:h(e,R,S,P),tabIndex:x,ref:(0,i.useMergedRefs)([t,B]),onFocus:c,onBlur:d,onMouseOver:u,onMouseOut:p,onMouseDown:f,onMouseUp:g,onKeyDown:C,onClick:v,onWheel:E,...(0,s.filterDataProps)(e),...(0,s.filterAriaProps)(e)},w,y,D,o.createElement("span",{className:m(e,S,k)}))}g.displayName="ControlSkeleton";const C=o.forwardRef(g)},102691:(e,t,n)=>{"use strict";n.d(t,{AfterSlot:()=>u,BeforeSlot:()=>s,EndSlot:()=>d,MiddleSlot:()=>c,StartSlot:()=>l});var o=n(50959),r=n(497754),a=n(7236),i=n.n(a);function s(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["before-slot"],t)},n)}function l(e){const{className:t,interactive:n=!0,icon:a=!1,children:s}=e;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,a&&i().icon,t)},s)}function c(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["inner-slot"],i()["inner-middle-slot"],t)},n)}function d(e){const{className:t,interactive:n=!0,icon:a=!1,children:s}=e;return o.createElement("span",{className:r(i()["inner-slot"],n&&i().interactive,a&&i().icon,t)},s)}function u(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(i()["after-slot"],t)},n)}},942544:(e,t,n)=>{"use strict";n.d(t,{useControlDisclosure:()=>r});var o=n(772069);function r(e){const{intent:t,highlight:n,...r}=e,{isFocused:a,...i}=(0,o.useDisclosure)(r);return{...i,isFocused:a,highlight:null!=n?n:a,intent:null!=t?t:a?"primary":"default"}}},234404:(e,t,n)=>{"use strict";n.d(t,{Loader:()=>s});var o=n(50959),r=n(497754),a=n(625650),i=n.n(a);function s(e){const{className:t,size:n="medium",staticPosition:a,color:s="black"}=e,l=r(i().item,i()[s],i()[n]);return o.createElement("span",{className:r(i().loader,a&&i().static,t)},o.createElement("span",{className:l}),o.createElement("span",{className:l}),o.createElement("span",{className:l}))}},976669:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AdaptiveConfirmDialog:()=>p});var o=n(50959),r=n(497754),a=n.n(r),i=n(805184),s=n(650151),l=n(609838),c=n(180185),d=n(533408),u=n(83073);class p extends o.PureComponent{constructor(){super(...arguments),this._dialogRef=o.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:o}=this.props;switch(e){case"submit":t();break;case"cancel":n()}o()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:o}=this.props;13===(0,c.hashFromEvent)(e)&&o&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:r,footerLeftRenderer:a,submitButtonText:i,submitButtonDisabled:s,defaultActionOnClose:l,submitOnEnterKey:c,...u}=this.props;return o.createElement(d.AdaptivePopupDialog,{...u,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,s.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){
return e=>{const{render:t,footerLeftRenderer:r,additionalButtons:s,submitButtonText:c,submitButtonDisabled:d,onSubmit:p,cancelButtonText:h,showCancelButton:m=!0,submitButtonClassName:f,cancelButtonClassName:b,buttonsWrapperClassName:g}=this.props;return o.createElement(o.Fragment,null,t(e),o.createElement("div",{className:u.footer},r&&r(e.isSmallWidth),o.createElement("div",{className:a()(u.buttons,g)},s,m&&o.createElement(i.Button,{className:b,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=h?h:l.t(null,void 0,n(620036))),o.createElement("span",{className:u.submitButton},o.createElement(i.Button,{className:f,disabled:d,name:"submit",onClick:p,"data-name":"submit-button"},null!=c?c:l.t(null,void 0,n(468988)))))))}}}p.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},996038:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>r});var o=n(488803);const r={SmallHeight:o["small-height-breakpoint"],TabletSmall:o["tablet-small-breakpoint"],TabletNormal:o["tablet-normal-breakpoint"]}},533408:(e,t,n)=>{"use strict";n.d(t,{AdaptivePopupDialog:()=>S});var o=n(50959),r=n(650151),a=n(660538),i=n(497754),s=n.n(i),l=n(180185),c=n(710263),d=n(698043),u=n(40766),p=n(494707),h=n(996038),m=n(930052),f=n(910549);var b=n(206594),g=n(559410),C=n(609838),v=n(389986),x=n(190410),w=n(869827);function y(e){const{title:t,titleTextWrap:r=!1,subtitle:a,showCloseIcon:i=!0,onClose:l,onCloseButtonKeyDown:c,renderBefore:d,renderAfter:u,draggable:p,className:h,unsetAlign:m,closeAriaLabel:f=C.t(null,void 0,n(680395)),closeButtonReference:b}=e,[g,y]=(0,o.useState)(!1);return o.createElement(x.DialogHeaderContext.Provider,{value:{setHideClose:y}},o.createElement("div",{className:s()(w.container,h,(a||m)&&w.unsetAlign)},d,o.createElement("div",{"data-dragg-area":p,className:w.title},o.createElement("div",{className:s()(r?w.textWrap:w.ellipsis)},t),a&&o.createElement("div",{className:s()(w.ellipsis,w.subtitle)},a)),u,i&&!g&&o.createElement(v.CloseButton,{className:w.close,"data-name":"close","aria-label":f,onClick:l,onKeyDown:c,ref:b,size:"medium",preservePaddings:!0})))}var D=n(273388),E=n(800417),N=n(755596);const k={vertical:20},R={vertical:0};class S extends o.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._orientationMediaQuery=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleCloseBtnClick=()=>{this.props.onKeyboardClose&&this.props.onKeyboardClose(),this._handleClose()},this._handleClose=()=>{this.props.onClose()},this._handleOpen=()=>{void 0!==this.props.onOpen&&this.props.isOpened&&this.props.onOpen(this.props.fullScreen||window.matchMedia(h.DialogBreakpoints.TabletSmall).matches)},this._handleKeyDown=e=>{if(!e.defaultPrevented){if(this.props.onKeyDown&&this.props.onKeyDown(e),27===(0,l.hashFromEvent)(e)){if(e.defaultPrevented)return
;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose();const{activeElement:n}=document,o=(0,r.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if((0,d.isTextEditingField)(n))return void o.focus();if(o.contains(n))return this.props.onKeyboardClose&&this.props.onKeyboardClose(),void this._handleClose()}}var t,n;(function(e){if("function"==typeof e)return e();return Boolean(e)})(this.props.disableTabNavigationContainment)||(n=e,[9,l.Modifiers.Shift+9].includes((0,l.hashFromEvent)(n))&&n.stopPropagation())}},this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()},this._calculatePositionWithOffsets=(e,t)=>{const n=(0,r.ensureDefined)(this.props.fullScreenViewOffsets).value();return{top:n.top,left:(0,c.isRtl)()?-n.right:n.left,width:t.clientWidth-n.left-n.right,height:t.clientHeight-n.top-n.bottom}}}componentDidMount(){this.props.ignoreClosePopupsAndDialog||g.subscribe(b.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),this._handleOpen(),void 0!==this.props.onOpen&&(this._orientationMediaQuery=window.matchMedia("(orientation: portrait)"),(0,a.mediaQueryAddEventListener)(this._orientationMediaQuery,this._handleOpen)),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.subscribe(this._requestResize)}componentWillUnmount(){this.props.ignoreClosePopupsAndDialog||g.unsubscribe(b.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null),null!==this._orientationMediaQuery&&(0,a.mediaQueryRemoveEventListener)(this._orientationMediaQuery,this._handleOpen),this.props.fullScreenViewOffsets&&this.props.fullScreen&&this.props.fullScreenViewOffsets.unsubscribe(this._requestResize)}focus(){(0,r.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,wrapperClassName:t,headerClassName:n,isOpened:r,title:a,titleTextWrap:i,dataName:l,onClickOutside:c,additionalElementPos:d,additionalHeaderElement:b,backdrop:g,shouldForceFocus:C=!0,shouldReturnFocus:v,onForceFocus:x,showSeparator:w,subtitle:S,draggable:P=!0,fullScreen:B=!1,showCloseIcon:O=!0,rounded:z=!0,isAnimationEnabled:_,growPoint:L,dialogTooltip:Z,unsetHeaderAlign:W,onDragStart:T,dataDialogName:I,closeAriaLabel:A,containerAriaLabel:K,reference:M,containerTabIndex:F,closeButtonReference:V,onCloseButtonKeyDown:j,shadowed:H,fullScreenViewOffsets:U,fixedBody:G}=this.props,Q="after"!==d?b:void 0,q="after"===d?b:void 0,$="string"==typeof a?a:I||"",X=(0,E.filterDataProps)(this.props),Y=(0,D.mergeRefs)([this._handleReference,M]);return o.createElement(m.MatchMedia,{rule:h.DialogBreakpoints.SmallHeight},(d=>o.createElement(m.MatchMedia,{
rule:h.DialogBreakpoints.TabletSmall},(h=>o.createElement(u.PopupDialog,{rounded:!(h||B)&&z,className:s()(N.dialog,B&&U&&N.bounded,e),isOpened:r,reference:Y,onKeyDown:this._handleKeyDown,onClickOutside:c,onClickBackdrop:c,fullscreen:h||B,guard:d?R:k,boundByScreen:h||B,shouldForceFocus:C,onForceFocus:x,shouldReturnFocus:v,backdrop:g,draggable:P,isAnimationEnabled:_,growPoint:L,name:this.props.dataName,dialogTooltip:Z,onDragStart:T,containerAriaLabel:K,containerTabIndex:F,calculateDialogPosition:B&&U?this._calculatePositionWithOffsets:void 0,shadowed:H,fixedBody:G,...X},o.createElement("div",{className:s()(N.wrapper,t),"data-name":l,"data-dialog-name":$},void 0!==a&&o.createElement(y,{draggable:P&&!(h||B),onClose:this._handleCloseBtnClick,renderAfter:q,renderBefore:Q,subtitle:S,title:a,titleTextWrap:i,showCloseIcon:O,className:n,unsetAlign:W,closeAriaLabel:A,closeButtonReference:V,onCloseButtonKeyDown:j}),w&&o.createElement(p.Separator,{className:N.separator}),o.createElement(f.PopupContext.Consumer,null,(e=>this._renderChildren(e,h||B)))))))))}}},190410:(e,t,n)=>{"use strict";n.d(t,{DialogHeaderContext:()=>o});const o=n(50959).createContext({setHideClose:()=>{}})},444144:(e,t,n)=>{"use strict";n.d(t,{ControlDisclosureView:()=>p});var o=n(50959),r=n(497754),a=n.n(r),i=n(525388),s=n(34735),l=n(102691),c=n(904925),d=n(364228),u=n(366986);const p=o.forwardRef(((e,t)=>{const{listboxId:n,className:r,listboxClassName:p,listboxTabIndex:h,hideArrowButton:m,matchButtonAndListboxWidths:f,popupPosition:b,disabled:g,isOpened:C,scrollWrapReference:v,repositionOnScroll:x,closeOnHeaderOverlap:w,listboxReference:y,size:D="small",onClose:E,onOpen:N,onListboxFocus:k,onListboxBlur:R,onListboxKeyDown:S,buttonChildren:P,children:B,caretClassName:O,listboxAria:z,..._}=e,L=(0,o.useRef)(null),Z=!m&&o.createElement(l.EndSlot,null,o.createElement(d.Caret,{isDropped:C,disabled:g,className:O}));return o.createElement(c.PopupMenuDisclosureView,{buttonRef:L,listboxId:n,listboxClassName:p,listboxTabIndex:h,isOpened:C,onClose:E,onOpen:N,listboxReference:y,scrollWrapReference:v,onListboxFocus:k,onListboxBlur:R,onListboxKeyDown:S,listboxAria:z,matchButtonAndListboxWidths:f,popupPosition:b,button:o.createElement(s.ControlSkeleton,{..._,"data-role":"listbox",disabled:g,className:a()(u.button,r),size:D,ref:(0,i.useMergedRefs)([L,t]),middleSlot:o.createElement(l.MiddleSlot,null,o.createElement("span",{className:a()(u["button-children"],m&&u.hiddenArrow)},P)),endSlot:Z}),popupChildren:B,repositionOnScroll:x,closeOnHeaderOverlap:w})}));p.displayName="ControlDisclosureView"},904925:(e,t,n)=>{"use strict";n.d(t,{PopupMenuDisclosureView:()=>d});var o=n(50959),r=n(624216),a=n(650151);const i={x:0,y:0};function s(e,t,n){return(0,o.useCallback)((()=>function(e,t,{x:n=i.x,y:o=i.y}=i){const r=(0,a.ensureNotNull)(e).getBoundingClientRect(),s={x:r.left+n,y:r.top+r.height+o,indentFromWindow:{top:4,bottom:4,left:4,right:4}};return t&&(s.overrideWidth=r.width),s}(e.current,t,n)),[e,t])}var l=n(586240);const c=parseInt(l["size-header-height"]);function d(e){
const{button:t,popupChildren:n,buttonRef:a,listboxId:i,listboxClassName:l,listboxTabIndex:d,matchButtonAndListboxWidths:u,isOpened:p,scrollWrapReference:h,listboxReference:m,onClose:f,onOpen:b,onListboxFocus:g,onListboxBlur:C,onListboxKeyDown:v,listboxAria:x,repositionOnScroll:w=!0,closeOnHeaderOverlap:y=!1,popupPositionCorrection:D={x:0,y:0},popupPosition:E}=e,N=s(a,u,D),k=y?c:0;return o.createElement(o.Fragment,null,t,o.createElement(r.PopupMenu,{...x,id:i,className:l,tabIndex:d,isOpened:p,position:E||N,repositionOnScroll:w,onClose:f,onOpen:b,doNotCloseOn:a.current,reference:m,scrollWrapReference:h,onFocus:g,onBlur:C,onKeyDown:v,closeOnScrollOutsideOffset:k},n))}},953517:(e,t,n)=>{"use strict";n.d(t,{useKeyboardActionHandler:()=>o.useKeyboardActionHandler,useKeyboardClose:()=>o.useKeyboardClose,useKeyboardEventHandler:()=>o.useKeyboardEventHandler,useKeyboardOpen:()=>o.useKeyboardOpen,useKeyboardToggle:()=>o.useKeyboardToggle});var o=n(865968)},364228:(e,t,n)=>{"use strict";n.d(t,{Caret:()=>d,CaretButton:()=>u});var o=n(50959),r=n(497754),a=n.n(r),i=n(72571),s=n(602948),l=n(323428);function c(e){const{isDropped:t}=e;return o.createElement(i.Icon,{className:a()(l.icon,t&&l.dropped),icon:s})}function d(e){const{className:t,disabled:n,isDropped:r}=e;return o.createElement("span",{className:a()(l.button,n&&l.disabled,t)},o.createElement(c,{isDropped:r}))}function u(e){const{className:t,tabIndex:n=-1,disabled:r,isDropped:i,...s}=e;return o.createElement("button",{...s,type:"button",tabIndex:n,disabled:r,className:a()(l.button,r&&l.disabled,t)},o.createElement(c,{isDropped:i}))}},529631:(e,t,n)=>{"use strict";n.d(t,{Select:()=>x});var o=n(50959),r=n(855393),a=n(414823),i=n(525388),s=n(930617),l=n(192063),c=n(12481),d=n(343370);var u=n(648621),p=n(953517),h=n(444144),m=n(942544),f=n(710263),b=n(760673);function g(e){return!e.readonly}function C(e,t){var n;return null!==(n=null==t?void 0:t.id)&&void 0!==n?n:(0,a.createDomId)(e,"item",null==t?void 0:t.value)}function v(e){var t,n;const{selectedItem:r,placeholder:a}=e;if(!r)return o.createElement("span",{className:b.placeholder},a);const i=null!==(n=null!==(t=r.selectedContent)&&void 0!==t?t:r.content)&&void 0!==n?n:r.value;return o.createElement("span",null,i)}const x=o.forwardRef(((e,t)=>{const{id:n,menuClassName:b,menuItemClassName:x,tabIndex:w,disabled:y,highlight:D,intent:E,hideArrowButton:N,placeholder:k,addPlaceholderToItems:R=!1,value:S,"aria-labelledby":P,onFocus:B,onBlur:O,onClick:z,onChange:_,onKeyDown:L,repositionOnScroll:Z=!0,openMenuOnEnter:W=!0,"aria-describedby":T,"aria-invalid":I,...A}=e;let{items:K}=e;if(k&&R){K=[{value:void 0,content:k,id:(0,a.createDomId)(n,"placeholder")},...K]}const{listboxId:M,isOpened:F,isFocused:V,buttonTabIndex:j,listboxTabIndex:H,highlight:U,intent:G,open:Q,onOpen:q,close:$,toggle:X,buttonFocusBindings:Y,onButtonClick:J,buttonRef:ee,listboxRef:te,buttonAria:ne}=(0,m.useControlDisclosure)({id:n,disabled:y,buttonTabIndex:w,intent:E,highlight:D,onFocus:B,onBlur:O,onClick:z
}),oe=K.filter(g),re=oe.find((e=>e.value===S)),[ae,ie]=o.useState(k&&R?oe[0].value:null==re?void 0:re.value),[se,le,ce]=(0,s.useKeepActiveItemIntoView)({activeItem:re});(0,r.useIsomorphicLayoutEffect)((()=>ie(null==re?void 0:re.value)),[S]);const de=(0,a.joinDomIds)(P,n),ue=de.length>0?de:void 0,pe=(0,o.useMemo)((()=>({role:"listbox","aria-labelledby":P,"aria-activedescendant":C(n,re)})),[P,re]),he=(0,o.useCallback)((e=>e.value===ae),[ae]),me=(0,o.useCallback)((()=>($(),_&&_(ae))),[$,_,ae]),fe=(0,u.useItemsKeyboardNavigation)("vertical",f.isRtl,oe,he,(e=>{ie(e.value)}),!1,{next:[40],previous:[38]}),be=(0,p.useKeyboardToggle)(X,F||W),ge=(0,p.useKeyboardToggle)(me),Ce=(0,p.useKeyboardClose)(F,Ee),ve=(0,p.useKeyboardOpen)(F,Q),xe=(0,p.useKeyboardEventHandler)([be,Ce,ve]),we=(0,p.useKeyboardEventHandler)([fe,ge,Ce]),ye=function(e){const t=(0,o.useRef)(""),n=(0,o.useMemo)((()=>(0,c.default)((()=>{t.current=""}),500)),[]),r=(0,o.useMemo)((()=>(0,d.default)(e,200)),[e]);return(0,o.useCallback)((e=>{e.key.length>0&&e.key.length<3&&(t.current+=e.key,r(t.current,e),n())}),[n,r])}(((t,n)=>{const o=function(e,t,n){return e.find((e=>{var o;const r=t.toLowerCase();return!e.readonly&&(n?n(e).toLowerCase().startsWith(r):!e.readonly&&("string"==typeof e.content&&e.content.toLowerCase().startsWith(r)||"string"==typeof e.textContent&&e.textContent.toLowerCase().startsWith(r)||String(null!==(o=e.value)&&void 0!==o?o:"").toLowerCase().startsWith(r)))}))}(oe,t,e.getSearchKey);void 0!==o&&_&&(n.stopPropagation(),F||Q(),_(o.value))}));return o.createElement(h.ControlDisclosureView,{...A,...ne,...Y,id:n,role:"button",tabIndex:j,"aria-owns":ne["aria-controls"],"aria-haspopup":"listbox","aria-labelledby":ue,disabled:y,hideArrowButton:N,isFocused:V,isOpened:F,highlight:U,intent:G,ref:(0,i.useMergedRefs)([ee,t]),onClick:J,onOpen:function(){ce(re,{duration:0}),q()},onClose:Ee,onKeyDown:function(e){xe(e),L&&L(e);e.defaultPrevented||ye(e)},listboxId:M,listboxTabIndex:H,listboxClassName:b,listboxAria:pe,"aria-describedby":T,"aria-invalid":I,listboxReference:te,scrollWrapReference:se,onListboxKeyDown:function(e){we(e),e.defaultPrevented||ye(e)},buttonChildren:o.createElement(v,{selectedItem:null!=re?re:null,placeholder:k}),repositionOnScroll:Z},K.map(((e,t)=>{var r;if(e.readonly)return o.createElement(o.Fragment,{key:`readonly_item_${t}`},e.content);const a=C(n,e);return o.createElement(l.PopupMenuItem,{key:a,id:a,className:x,role:"option","aria-selected":S===e.value,isActive:ae===e.value,label:null!==(r=e.content)&&void 0!==r?r:e.value,onClick:De,onClickArg:e.value,isDisabled:e.disabled,reference:t=>le(e,t)})})));function De(e){_&&(_(e),ie(e))}function Ee(){ie(null==re?void 0:re.value),$()}}));x.displayName="Select"},494707:(e,t,n)=>{"use strict";n.d(t,{Separator:()=>i});var o=n(50959),r=n(497754),a=n(345719);function i(e){return o.createElement("div",{className:r(a.separator,e.className)})}},678469:e=>{e.exports={body:"body-pdhUiHjR",text:"text-pdhUiHjR",exporting:"exporting-pdhUiHjR"}},432177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{
ExportDataDialogImpl:()=>m});var o=n(50959),r=n(609838),a=n(234404),i=n(6835),s=n(637401),l=n(976669),c=n(529631),d=n(678469);const u=(0,i.getLogger)("Trading.ExportData"),p="Export Trading Data";function h(e){const{isExporting:t}=e;return o.createElement("span",{className:t?d.exporting:void 0},r.t(null,void 0,n(912191)),t&&o.createElement(a.Loader,null))}function m(e){const{isOpened:t,onClose:a,dataExportController:i,trackEvent:m}=e,f=i.tabs();(0,o.useEffect)((()=>{t&&(null==m||m(p,"Open dialog"))}),[t]);const[b,g]=(0,o.useState)(!1),[C,v]=(0,o.useState)(f[0].value);return o.createElement(l.AdaptiveConfirmDialog,{title:r.t(null,void 0,n(125769)),isOpened:t,onClose:function(){g(!1),null==m||m(p,"Close dialog"),a()},showSeparator:!0,render:function(){return o.createElement("div",{className:d.body},o.createElement("p",{className:d.text},r.t(null,void 0,n(841214))),o.createElement(c.Select,{matchButtonAndListboxWidths:!0,stretch:!0,value:C,items:f,onChange:v}))},dataName:"data-export-dialog",onCancel:()=>{},onSubmit:async function(){g(!0),null==m||m(p,`Export ${C}`);try{await i.exportData(C)}catch(e){u.logError((0,s.getLoggerMessage)(e))}g(!1)},submitButtonText:o.createElement(h,{isExporting:b}),submitButtonDisabled:b,defaultActionOnClose:"cancel"})}},660538:(e,t,n)=>{"use strict";n.d(t,{mediaQueryAddEventListener:()=>o,mediaQueryRemoveEventListener:()=>r});const o=(e,t)=>{(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):e.addListener(t)},r=(e,t)=>{(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):e.removeListener(t)}},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>'},117105:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 21 21m0-21-21 21"/></svg>'},315130:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 15 15m0-15-15 15"/></svg>'},238822:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 11 11m0-11-11 11"/></svg>'},663346:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 9 9m0-9-9 9"/></svg>'},534983:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10"><path stroke="currentColor" stroke-width="1.2" d="m1.5 1.5 7 7m0-7-7 7"/></svg>'},680395:e=>{e.exports={ar:["إغلاق القائمة"],ca_ES:"Close menu",cs:"Close menu",de:["Menü schließen"],el:"Close menu",en:"Close menu",es:["Cerrar menú"],fa:"Close menu",fr:["Fermer le menu"],he_IL:["סגור תפריט"],hu_HU:"Close menu",id_ID:["Pilih menu"],it:["Chiudere menù"],ja:["メニューを閉じる"],ko:["메뉴 닫기"],ms_MY:["Tutup menu"],
nl_NL:"Close menu",pl:["Zamknij menu"],pt:["Fechar menu"],ro:"Close menu",ru:["Закрыть меню"],sv:["Stäng menyn"],th:["ปิดเมนู"],tr:["Menüyü kapat"],vi:["Đóng menu"],zh:["关闭菜单"],zh_TW:["關閉選單"]}},912191:e=>{e.exports={ar:["تصدير"],ca_ES:["Exporta"],cs:"Export",de:["Exportieren"],el:"Export",en:"Export",es:["Exportar"],fa:"Export",fr:["Exporter"],he_IL:["ייצא"],hu_HU:"Export",id_ID:["Ekspor"],it:["Esporta"],ja:["エクスポート"],ko:["익스포트"],ms_MY:["Eksport"],nl_NL:"Export",pl:["Eksportuj"],pt:["Exportar"],ro:"Export",ru:["Экспорт"],sv:"Export",th:["ส่งออก"],tr:["Dışa aktar"],vi:["Xuất"],zh:["导出"],zh_TW:["匯出"]}},468988:e=>{e.exports={ar:["موافق"],ca_ES:["Acceptar"],cs:"Ok",de:"Ok",el:"Ok",en:"Ok",es:["Aceptar"],fa:"Ok",fr:["D'accord"],he_IL:["אוקיי"],hu_HU:["Oké"],id_ID:"Ok",it:"Ok",ja:["OK"],ko:["확인"],ms_MY:"Ok",nl_NL:"Ok",pl:"Ok",pt:"Ok",ro:"Ok",ru:["Ок"],sv:["OK"],th:["ตกลง"],tr:["Tamam"],vi:"Ok",zh:["确认"],zh_TW:["確認"]}},841214:e=>{e.exports={ar:["حدد علامة تبويب التداول التي تريد تصديرها. سيتم حفظ المعلومات من علامة التبويب المحددة في ملف CSV."],ca_ES:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",cs:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",de:["Wählen Sie, welche Trading-Tab Sie exportieren möchten. Die Informationen der ausgewählten Tab werden in einer CSV-Datei gespeichert."],el:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",en:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",es:["Seleccione la pestaña de trading que desea exportar. La información de la pestaña seleccionada se guardará en un archivo CSV."],fa:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",fr:["Sélectionnez l'onglet de trading à exporter. Les informations de l'onglet sélectionné seront enregistrées dans un fichier CSV."],he_IL:["בחר איזו לשונית מסחר לייצא. מידע מהכרטיסייה שנבחרה יישמר בקובץ CSV."],hu_HU:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",id_ID:["Pilih tab trading yang mana untuk di ekspor, informasi dari tab yang dipilih akan disimpan menjadi file CSV."],it:["Seleziona quale scheda di trading esportare. Le informazioni saranno salvate in un file CSV."],ja:["エクスポートするトレードのタブを選択します。選択したタブの情報がCSVファイルに保存されます。"],ko:["익스포트할 트레이딩 탭을 고르면 그 탭의 정보가 CSV 화일로 세이브됩니다."],ms_MY:["Pilih tab dagangan mana untuk dieksport. Maklumat dari tab yang dipilih akan disimpan di dalam satu fail CSV."],nl_NL:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",pl:["Wybierz, którą zakładkę handlową chcesz wyeksportować. Informacje z wybranej zakładki zostaną zapisane do pliku CSV."],pt:["Selecione qual aba de negociação exportar. As informações da aba selecionada serão salvas em um arquivo CSV."],ro:"Select which trading tab to export. Information from the selected tab will be saved to a CSV file.",
ru:["Выберите вкладку с торговыми данными для экспорта. Информация будет сохранена в CSV-файл."],sv:["Välj vilken handelsflik som ska exporteras. Informationen från den valda fliken sparas i en CSV-fil."],th:["เลือกแท็บการซื้อขายที่จะส่งออก ข้อมูลจากแท็บที่เลือกจะถูกบันทึกเป็นไฟล์ CSV"],tr:["Hangi işlem sekmesinin dışa aktarılacağını seçin. Seçilen sekmedeki bilgiler bir CSV dosyasına kaydedilecektir."],vi:["Chọn tab giao dịch để xuất. Thông tin từ tab đã chọn sẽ được lưu vào tệp CSV."],zh:["选择要导出的交易标签。所选标签中的信息将保存到CSV文件中。"],zh_TW:["選擇要匯出的交易標籤。所選標籤的資訊將會保存到CSV檔案中。"]}}}]);