(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[2751],{66783:e=>{"use strict";var t=Object.prototype.hasOwnProperty;function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,o){if(r(e,o))return!0;if("object"!=typeof e||null===e||"object"!=typeof o||null===o)return!1;var n=Object.keys(e),l=Object.keys(o);if(n.length!==l.length)return!1;for(var a=0;a<n.length;a++)if(!t.call(o,n[a])||!r(e[n[a]],o[n[a]]))return!1;return!0}},62978:e=>{e.exports={primary:"primary-PVWoXu5j",gray:"gray-PVWoXu5j",selected:"selected-PVWoXu5j",grouped:"grouped-PVWoXu5j",pills:"pills-PVWoXu5j",active:"active-PVWoXu5j",disableActiveOnTouch:"disableActiveOnTouch-PVWoXu5j",disableActiveStateStyles:"disableActiveStateStyles-PVWoXu5j",withGrouped:"withGrouped-PVWoXu5j","quiet-primary":"quiet-primary-PVWoXu5j",green:"green-PVWoXu5j",red:"red-PVWoXu5j",secondary:"secondary-PVWoXu5j",ghost:"ghost-PVWoXu5j"}},29075:e=>{e.exports={lightButton:"lightButton-bYDQcOkp",link:"link-bYDQcOkp",ltr:"ltr-bYDQcOkp",rtl:"rtl-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",content:"content-bYDQcOkp",visuallyHidden:"visuallyHidden-bYDQcOkp",nowrap:"nowrap-bYDQcOkp",ellipsisContainer:"ellipsisContainer-bYDQcOkp",textWrapContainer:"textWrapContainer-bYDQcOkp",textWrapWithEllipsis:"textWrapWithEllipsis-bYDQcOkp",slot:"slot-bYDQcOkp",caret:"caret-bYDQcOkp",activeCaret:"activeCaret-bYDQcOkp",xsmall:"xsmall-bYDQcOkp",withStartSlot:"withStartSlot-bYDQcOkp",withEndSlot:"withEndSlot-bYDQcOkp",noContent:"noContent-bYDQcOkp",wrap:"wrap-bYDQcOkp",small:"small-bYDQcOkp",medium:"medium-bYDQcOkp"}},44576:e=>{e.exports={"tv-circle-logo-pair":"tv-circle-logo-pair-ocURKVwI","tv-circle-logo-pair--xxxxsmall":"tv-circle-logo-pair--xxxxsmall-ocURKVwI","tv-circle-logo-pair--xxxsmall":"tv-circle-logo-pair--xxxsmall-ocURKVwI","tv-circle-logo-pair--xxsmall":"tv-circle-logo-pair--xxsmall-ocURKVwI","tv-circle-logo-pair--xsmall":"tv-circle-logo-pair--xsmall-ocURKVwI","tv-circle-logo-pair--small":"tv-circle-logo-pair--small-ocURKVwI","tv-circle-logo-pair--medium":"tv-circle-logo-pair--medium-ocURKVwI","tv-circle-logo-pair--large":"tv-circle-logo-pair--large-ocURKVwI","tv-circle-logo-pair--xlarge":"tv-circle-logo-pair--xlarge-ocURKVwI","tv-circle-logo-pair--xxlarge":"tv-circle-logo-pair--xxlarge-ocURKVwI","tv-circle-logo-pair--xxxlarge":"tv-circle-logo-pair--xxxlarge-ocURKVwI","tv-circle-logo-pair__logo":"tv-circle-logo-pair__logo-ocURKVwI","tv-circle-logo-pair__logo--xxxxsmall":"tv-circle-logo-pair__logo--xxxxsmall-ocURKVwI","tv-circle-logo-pair__logo--xxxsmall":"tv-circle-logo-pair__logo--xxxsmall-ocURKVwI","tv-circle-logo-pair__logo--xxsmall":"tv-circle-logo-pair__logo--xxsmall-ocURKVwI","tv-circle-logo-pair__logo--xsmall":"tv-circle-logo-pair__logo--xsmall-ocURKVwI",
"tv-circle-logo-pair__logo--small":"tv-circle-logo-pair__logo--small-ocURKVwI","tv-circle-logo-pair__logo--medium":"tv-circle-logo-pair__logo--medium-ocURKVwI","tv-circle-logo-pair__logo--large":"tv-circle-logo-pair__logo--large-ocURKVwI","tv-circle-logo-pair__logo--xlarge":"tv-circle-logo-pair__logo--xlarge-ocURKVwI","tv-circle-logo-pair__logo--xxlarge":"tv-circle-logo-pair__logo--xxlarge-ocURKVwI","tv-circle-logo-pair__logo--xxxlarge":"tv-circle-logo-pair__logo--xxxlarge-ocURKVwI","tv-circle-logo-pair__logo-empty":"tv-circle-logo-pair__logo-empty-ocURKVwI"}},23348:e=>{e.exports={container:"container-M1mz4quA",pairContainer:"pairContainer-M1mz4quA",logo:"logo-M1mz4quA",hidden:"hidden-M1mz4quA"}},59086:e=>{e.exports={container:"container-qm7Rg5MB",mobile:"mobile-qm7Rg5MB",inputContainer:"inputContainer-qm7Rg5MB",withCancel:"withCancel-qm7Rg5MB",input:"input-qm7Rg5MB",icon:"icon-qm7Rg5MB",cancel:"cancel-qm7Rg5MB"}},25999:e=>{e.exports={actions:"actions-rarsm4ka",actionButton:"actionButton-rarsm4ka"}},75471:e=>{e.exports={logo:"logo-d0vVmGvT"}},35881:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",itemRow:"itemRow-oRSs8UQo",multiLine:"multiLine-oRSs8UQo",cell:"cell-oRSs8UQo",itemInfoCell:"itemInfoCell-oRSs8UQo",description:"description-oRSs8UQo",symbolDescription:"symbolDescription-oRSs8UQo",flag:"flag-oRSs8UQo",exchangeDescription:"exchangeDescription-oRSs8UQo",marketType:"marketType-oRSs8UQo",exchangeName:"exchangeName-oRSs8UQo",actionHandleWrap:"actionHandleWrap-oRSs8UQo",source:"source-oRSs8UQo",hover:"hover-oRSs8UQo",selected:"selected-oRSs8UQo",active:"active-oRSs8UQo",highlighted:"highlighted-oRSs8UQo",light:"light-oRSs8UQo","highlight-animation-theme-light":"highlight-animation-theme-light-oRSs8UQo",dark:"dark-oRSs8UQo","highlight-animation-theme-dark":"highlight-animation-theme-dark-oRSs8UQo",markedFlag:"markedFlag-oRSs8UQo",offset:"offset-oRSs8UQo",descriptionCell:"descriptionCell-oRSs8UQo",addition:"addition-oRSs8UQo",exchangeCell:"exchangeCell-oRSs8UQo",fixedWidth:"fixedWidth-oRSs8UQo",expandHandle:"expandHandle-oRSs8UQo",expanded:"expanded-oRSs8UQo",symbolTitle:"symbolTitle-oRSs8UQo",invalid:"invalid-oRSs8UQo",noDescription:"noDescription-oRSs8UQo",highlightedText:"highlightedText-oRSs8UQo",icon:"icon-oRSs8UQo",narrow:"narrow-oRSs8UQo",wide:"wide-oRSs8UQo",dataMode:"dataMode-oRSs8UQo",actionsCell:"actionsCell-oRSs8UQo",action:"action-oRSs8UQo",targetAction:"targetAction-oRSs8UQo",removeAction:"removeAction-oRSs8UQo",addAction:"addAction-oRSs8UQo",markedFlagWrap:"markedFlagWrap-oRSs8UQo",markedFlagMobile:"markedFlagMobile-oRSs8UQo",logo:"logo-oRSs8UQo",isExpandable:"isExpandable-oRSs8UQo",primaryIcon:"primaryIcon-oRSs8UQo"}},35599:e=>{e.exports={icon:"icon-OJpk_CAQ"}},78406:e=>{e.exports={wrap:"wrap-IxKZEhmO",libAllSelected:"libAllSelected-IxKZEhmO",container:"container-IxKZEhmO",iconWrap:"iconWrap-IxKZEhmO",icon:"icon-IxKZEhmO",title:"title-IxKZEhmO",highlighted:"highlighted-IxKZEhmO",description:"description-IxKZEhmO",mobile:"mobile-IxKZEhmO",allSelected:"allSelected-IxKZEhmO",
desktop:"desktop-IxKZEhmO",allSelectedIcon:"allSelectedIcon-IxKZEhmO",selected:"selected-IxKZEhmO",focused:"focused-IxKZEhmO",titleWithoutDesc:"titleWithoutDesc-IxKZEhmO",textBlock:"textBlock-IxKZEhmO",bordered:"bordered-IxKZEhmO"}},9854:e=>{e.exports={container:"container-dfKL9A7t",contentList:"contentList-dfKL9A7t",contentListDesktop:"contentListDesktop-dfKL9A7t",searchSourceItemsContainer:"searchSourceItemsContainer-dfKL9A7t",oneColumn:"oneColumn-dfKL9A7t",searchSourceItemsContainerDesktop:"searchSourceItemsContainerDesktop-dfKL9A7t",groupTitleDesktop:"groupTitleDesktop-dfKL9A7t",column:"column-dfKL9A7t",emptyText:"emptyText-dfKL9A7t",emptyIcon:"emptyIcon-dfKL9A7t",noResultsDesktop:"noResultsDesktop-dfKL9A7t"}},16872:e=>{e.exports={wrap:"wrap-gjrLBBL3",item:"item-gjrLBBL3",small:"small-gjrLBBL3",newStyles:"newStyles-gjrLBBL3",mobile:"mobile-gjrLBBL3",text:"text-gjrLBBL3",exchange:"exchange-gjrLBBL3",filterItem:"filterItem-gjrLBBL3",brokerWrap:"brokerWrap-gjrLBBL3"}},90349:e=>{e.exports={wrap:"wrap-dlewR1s1",watchlist:"watchlist-dlewR1s1",noFeed:"noFeed-dlewR1s1",newStyles:"newStyles-dlewR1s1",scrollContainer:"scrollContainer-dlewR1s1",listContainer:"listContainer-dlewR1s1",multiLineItemsContainer:"multiLineItemsContainer-dlewR1s1",withSpinner:"withSpinner-dlewR1s1",spinnerContainer:"spinnerContainer-dlewR1s1",largeSpinner:"largeSpinner-dlewR1s1"}},43376:e=>{e.exports={search:"search-ZXzPWcCf",upperCase:"upperCase-ZXzPWcCf",bubblesContainer:"bubblesContainer-ZXzPWcCf",mobile:"mobile-ZXzPWcCf",bubbles:"bubbles-ZXzPWcCf",withFilters:"withFilters-ZXzPWcCf",spinnerWrap:"spinnerWrap-ZXzPWcCf",emptyText:"emptyText-ZXzPWcCf",emptyIcon:"emptyIcon-ZXzPWcCf",noResultsDesktop:"noResultsDesktop-ZXzPWcCf",brokerButtonWrap:"brokerButtonWrap-ZXzPWcCf"}},54464:e=>{e.exports={flagWrap:"flagWrap-QKnxaZOG",icon:"icon-QKnxaZOG",caret:"caret-QKnxaZOG",title:"title-QKnxaZOG",button:"button-QKnxaZOG",withFlag:"withFlag-QKnxaZOG",buttonContent:"buttonContent-QKnxaZOG"}},26664:e=>{e.exports={dialog:"dialog-u2dP3kv1",tabletDialog:"tabletDialog-u2dP3kv1",desktopDialog:"desktopDialog-u2dP3kv1",backButton:"backButton-u2dP3kv1"}},99113:e=>{e.exports={childrenWrapper:"childrenWrapper-_RhDhmVQ",container:"container-_RhDhmVQ"}},32248:e=>{e.exports={highlighted:"highlighted-cwp8YRo6"}},18429:(e,t,r)=>{"use strict";r.d(t,{SEPARATOR_PREFIX:()=>o,isSeparatorItem:()=>n});const o="###";function n(e){return e.startsWith(o)}},48199:(e,t,r)=>{"use strict";r.d(t,{BackButton:()=>f});var o,n=r(50959),l=r(64388),a=r(95694),s=r(49498),i=r(60176),c=r(35369),u=r(58478),d=r(73063),m=r(14127),p=r(18073),h=r(99243),g=r(42576);function v(e="large",t="1.2"){switch(e){case"large":return"1.2"===t?a:d;case"medium":return"1.2"===t?s:m;case"small":return"1.2"===t?i:p;case"xsmall":return"1.2"===t?c:h;case"xxsmall":return"1.2"===t?u:g;default:return s}}!function(e){e.Thin="1.2",e.Medium="1.5"}(o||(o={}));const f=n.forwardRef(((e,t)=>{const{"aria-label":r,flipIconOnRtl:o,...a}=e;return n.createElement(l.NavButton,{...a,"aria-label":r,ref:t,icon:v(e.size,e.iconStrokeWidth),
flipIconOnRtl:o})}))},27011:(e,t,r)=>{"use strict";function o(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}r.d(t,{isIconOnly:()=>o})},14543:(e,t,r)=>{"use strict";r.d(t,{LightButton:()=>o.LightButton});r(9038);var o=r(15893);r(50959),r(21593),r(66860),r(29075),r(62978);r(78572)},9038:(e,t,r)=>{"use strict";r.d(t,{useLightButtonClasses:()=>c});var o=r(50959),n=r(97754),l=r(17946),a=r(27011),s=r(86332);const i=o.createContext({isInButtonGroup:!1,isGroupPrimary:!1}),c=(e,t,r)=>{const c=(0,o.useContext)(l.CustomBehaviourContext),{className:u,isSelected:d,children:m,showCaret:p,forceDirection:h,iconOnly:g,color:v="gray",variant:f="primary",size:y="medium",enableActiveStateStyles:S=c.enableActiveStateStyles,typography:b,isLink:x=!1,textWrap:w,isPills:k,isActive:C,startSlot:E,endSlot:I}=t,L=e[`typography-${((e,t,r)=>{if(r){const e=r.replace(/^\D+/g,"");return t?`semibold${e}`:r}switch(e){case"xsmall":return t?"semibold14px":"regular14px";case"small":case"medium":return t?"semibold16px":"regular16px";default:return""}})(y,d||k,b||void 0)}`],R=(0,o.useContext)(s.ControlGroupContext),{isInButtonGroup:_,isGroupPrimary:T}=(0,o.useContext)(i);return n(u,e.lightButton,x&&e.link,C&&e.active,d&&e.selected,(0,a.isIconOnly)(m,g)&&e.noContent,!!E&&e.withStartSlot,(p||!!I)&&e.withEndSlot,r&&e.withGrouped,h&&e[h],e[T?"primary":f],e[T?"gray":v],e[y],L,!S&&e.disableActiveStateStyles,R.isGrouped&&e.grouped,w&&e.wrap,_&&e.disableActiveOnTouch,k&&e.pills)}},66860:(e,t,r)=>{"use strict";r.d(t,{LightButtonContent:()=>d});var o=r(50959),n=r(97754),l=r(34094),a=r(27011),s=r(9745),i=r(2948),c=r(29075),u=r.n(c);function d(e){const{showCaret:t,iconOnly:r,ellipsis:c=!0,textWrap:d,tooltipText:m,children:p,endSlot:h,startSlot:g,isActiveCaret:v}=e;[h,t].filter((e=>!!e));return o.createElement(o.Fragment,null,g&&o.createElement("span",{className:n(u().slot,u().startSlot)},g),!(0,a.isIconOnly)(p,r)&&o.createElement("span",{className:n(u().content,!d&&u().nowrap,"apply-overflow-tooltip","apply-overflow-tooltip--check-children-recursively","apply-overflow-tooltip--allow-text"),"data-overflow-tooltip-text":null!=m?m:(0,l.getTextForTooltip)(p)},d||c?o.createElement(o.Fragment,null,o.createElement("span",{className:n(!d&&c&&u().ellipsisContainer,d&&u().textWrapContainer,d&&c&&u().textWrapWithEllipsis)},p),o.createElement("span",{className:u().visuallyHidden,"aria-hidden":!0},p)):o.createElement(o.Fragment,null,p,o.createElement("span",{className:u().visuallyHidden,"aria-hidden":!0},p))),h&&o.createElement("span",{className:n(u().slot,u().endSlot)},h),t&&(e=>o.createElement(s.Icon,{className:n(u().caret,e&&u().activeCaret),icon:i}))(v))}},15893:(e,t,r)=>{"use strict";r.d(t,{LightButton:()=>d});var o=r(50959),n=r(86332),l=r(9038),a=r(66860),s=r(29075),i=r.n(s),c=r(62978),u=r.n(c);function d(e){
const{isGrouped:t}=o.useContext(n.ControlGroupContext),{reference:r,className:s,isSelected:c,children:d,iconOnly:m,ellipsis:p,showCaret:h,forceDirection:g,endSlot:v,startSlot:f,color:y,variant:S,size:b,enableActiveStateStyles:x,typography:w,textWrap:k=!1,maxLines:C,style:E={},isPills:I,isActive:L,tooltipText:R,role:_,...T}=e,N=k?null!=C?C:2:1,B=N>0?{...E,"--ui-lib-light-button-content-max-lines":N}:E;return o.createElement("button",{...T,className:(0,l.useLightButtonClasses)({...u(),...i()},{className:s,isSelected:c,children:d,iconOnly:m,showCaret:h,forceDirection:g,endSlot:v,startSlot:f,color:y,variant:S,size:b,enableActiveStateStyles:x,typography:w,textWrap:k,isPills:I,isActive:L},t),ref:r,style:B,role:_},o.createElement(a.LightButtonContent,{showCaret:h,isActiveCaret:h&&(I||L||c),iconOnly:m,ellipsis:p,textWrap:k,tooltipText:R,endSlot:v,startSlot:f},d))}},34094:(e,t,r)=>{"use strict";r.d(t,{getTextForTooltip:()=>a});var o=r(50959);const n=e=>(0,o.isValidElement)(e)&&Boolean(e.props.children),l=e=>null==e||"boolean"==typeof e||"{}"===JSON.stringify(e)?"":e.toString()+" ",a=e=>Array.isArray(e)||(0,o.isValidElement)(e)?o.Children.toArray(e).reduce(((e,t)=>{let r="";return r=(0,o.isValidElement)(t)&&n(t)?a(t.props.children):(0,o.isValidElement)(t)&&!n(t)?"":l(t),e.concat(r)}),"").trim():l(e)},3685:(e,t,r)=>{"use strict";function o(){var e,t,r;return null!==(r=null===(t=null===(e=window.configurationData)||void 0===e?void 0:e.exchanges)||void 0===t?void 0:t.map((e=>({...e,country:"",providerId:"",flag:""}))))&&void 0!==r?r:[]}r.d(t,{getExchanges:()=>o})},36279:(e,t,r)=>{"use strict";var o;r.d(t,{LogoSize:()=>o,getLogoUrlResolver:()=>a}),function(e){e[e.Medium=0]="Medium",e[e.Large=1]="Large"}(o||(o={}));class n{getSymbolLogoUrl(e){return e}getCountryFlagUrl(){return""}getCryptoLogoUrl(e){return e}getProviderLogoUrl(e){return e}getSourceLogoUrl(e){return e}getBlockchainContractLogoUrl(e){return e}}let l;function a(){return l||(l=new n),l}},69654:(e,t,r)=>{"use strict";r.d(t,{DialogSearch:()=>d});var o=r(50959),n=r(97754),l=r.n(n),a=r(11542),s=r(9745),i=r(69859),c=r(54313),u=r(59086);function d(e){const{children:t,isMobile:n,renderInput:d,onCancel:p,containerClassName:h,inputContainerClassName:g,iconClassName:v,cancelTitle:f=a.t(null,void 0,r(4543)),...y}=e;return o.createElement("div",{className:l()(u.container,n&&u.mobile,h)},o.createElement("div",{className:l()(u.inputContainer,n&&u.mobile,g,p&&u.withCancel)},d||o.createElement(m,{isMobile:n,...y})),t,o.createElement(s.Icon,{className:l()(u.icon,n&&u.mobile,v),icon:n?c:i}),p&&(!n||""!==y.value)&&o.createElement("div",{className:l()(u.cancel,n&&u.mobile),onClick:p},f))}function m(e){const{className:t,reference:r,isMobile:n,value:a,onChange:s,onFocus:i,onBlur:c,onKeyDown:d,onSelect:m,placeholder:p,activeDescendant:h,...g}=e;return o.createElement("input",{...g,ref:r,type:"text",className:l()(t,u.input,n&&u.mobile),autoComplete:"off","data-role":"search",placeholder:p,value:a,onChange:s,onFocus:i,onBlur:c,onSelect:m,onKeyDown:d,"aria-activedescendant":h})}},
96967:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchDialogContentItem:()=>M});var o=r(50959),n=r(97754),l=r.n(n),a=(r(11542),r(50151)),s=r(9745),i=r(56570),c=r(24637),u=r(19785),d=r(84524),m=r(24633),p=r(77975),h=r(45345),g=r(32563),v=r(49406),f=r(618),y=r(36279),S=r(59695),b=r(58492),x=r(39330),w=r(19938),k=r(43010),C=r(23348);function E(e){const{className:t,placeholderLetter:r,url1:n,url2:a,size:s="xxxsmall"}=e,i=(0,o.useRef)(null),c=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(null),m=(0,o.useRef)(null),p=(0,o.useRef)(null);return(0,k.useIsomorphicLayoutEffect)((()=>{const e=void 0===n?[]:void 0===a?[n]:[n,a],t=p.current=(r=e,Promise.all(r.map((e=>(0,w.getImage)(`symbol_logo_${e}`,e,L).then((e=>e.cloneNode()))))));var r;t.then((e=>{var r,o,n,l,a,s,h,g,v;if(t===p.current)switch(e.length){case 0:null===(r=u.current)||void 0===r||r.classList.add(C.hidden),null===(o=c.current)||void 0===o||o.classList.add(S.hiddenCircleLogoClass),null===(n=i.current)||void 0===n||n.classList.remove(S.hiddenCircleLogoClass);break;case 1:I(c.current,e[0]),null===(l=u.current)||void 0===l||l.classList.add(C.hidden),null===(a=c.current)||void 0===a||a.classList.remove(S.hiddenCircleLogoClass),null===(s=i.current)||void 0===s||s.classList.add(S.hiddenCircleLogoClass);break;case 2:I(d.current,e[0]),I(m.current,e[1]),null===(h=u.current)||void 0===h||h.classList.remove(C.hidden),null===(g=c.current)||void 0===g||g.classList.add(S.hiddenCircleLogoClass),null===(v=i.current)||void 0===v||v.classList.add(S.hiddenCircleLogoClass)}}))}),[n,a]),o.createElement("span",{className:l()(t,C.container)},o.createElement("span",{ref:u,className:l()(C.pairContainer,C.hidden)},o.createElement("span",{className:(0,x.getBlockStyleClasses)(s)},o.createElement("span",{ref:m,className:l()(C.logo,(0,x.getLogoStyleClasses)(s))}),o.createElement("span",{ref:d,className:l()(C.logo,(0,x.getLogoStyleClasses)(s))}))),o.createElement("span",{ref:c,className:l()(C.logo,S.hiddenCircleLogoClass,(0,b.getStyleClasses)(s))}),o.createElement("span",{ref:i,className:l()(C.logo,(0,b.getStyleClasses)(s))},o.createElement(S.CircleLogo,{size:s,placeholderLetter:r})))}function I(e,t){e&&(e.innerHTML="",e.appendChild(t))}function L(e){e.crossOrigin="",e.decoding="async"}var R=r(75471);function _(e){const{logoId:t,baseCurrencyLogoId:r,currencyLogoId:n,placeholder:a,className:s,size:i="xsmall"}=e,c=(0,o.useMemo)((()=>{const e={logoid:t,"currency-logoid":n,"base-currency-logoid":r};return(0,f.removeUsdFromCryptoPairLogos)((0,f.resolveLogoUrls)(e,y.LogoSize.Medium))}),[t,n,r]);return o.createElement(E,{key:i,className:l()(R.logo,s),url1:c[0],url2:c[1],placeholderLetter:a,size:i})}var T=r(29562),N=r(69533),B=r(35881);function M(e){var t,r
;const{dangerousTitleHTML:n,title:f,dangerousDescriptionHTML:y,description:S,searchToken:b,exchangeName:x,marketType:w,onClick:k,isSelected:C,isEod:E=!1,isActive:I=!1,isOffset:L=!1,invalid:R=!1,isHighlighted:M=!1,hideExchange:D=!1,hideMarkedListFlag:O=!1,onExpandClick:F,isExpanded:P,hoverComponent:A,country:V,providerId:U,source:Q,source2:W,type:K,flag:z,itemRef:Z,onMouseOut:H,onMouseOver:q,className:$,actions:j,reference:G,fullSymbolName:Y,logoId:X,currencyLogoId:J,baseCurrencyLogoId:ee,shortName:te,hideLogo:re=!1,exchangeTooltip:oe,hideMarketType:ne,isPrimary:le}=e,{isSmallWidth:ae,isMobile:se}=(0,a.ensureNotNull)((0,o.useContext)(d.SymbolSearchItemsDialogContext)),ie=Boolean(A),ce=!R&&!D&&(se||!ie),ue=(0,p.useWatchedValueReadonly)({watchedValue:h.watchedTheme})===m.StdTheme.Dark?B.dark:B.light,de=A,me=i.enabled("show_symbol_logos"),pe=i.enabled("show_exchange_logos"),he=me||!1,ge=null!==(t=null==W?void 0:W.description)&&void 0!==t?t:Q,ve=null!==(r=null==W?void 0:W.name)&&void 0!==r?r:Q;return o.createElement("div",{className:l()(B.itemRow,ae&&B.multiLine,M&&B.highlighted,M&&ue,C&&B.selected,I&&B.active,R&&B.invalid,!se&&g.mobiletouch&&ie&&B.hover,$),onClick:function(e){if(!k||e.defaultPrevented)return;e.preventDefault(),k(e)},"data-role":e["data-role"]||"list-item","data-active":I,"data-type":w,"data-name":"symbol-search-dialog-content-item",onMouseOut:H,onMouseOver:q,ref:G},o.createElement("div",{ref:Z,className:l()(B.itemInfoCell,B.cell,L&&B.offset)},o.createElement("div",{className:l()(B.actionHandleWrap,!he&&B.fixedWidth)},o.createElement(o.Fragment,null,!1,F&&o.createElement("div",{onClick:function(e){if(!F||e.defaultPrevented)return;e.preventDefault(),F(e)}},o.createElement(s.Icon,{className:l()(B.expandHandle,P&&B.expanded,C&&B.selected),icon:N})),he&&!L&&o.createElement("div",{className:l()(B.logo,Boolean(F)&&B.isExpandable)},o.createElement(_,{key:Y,logoId:X,currencyLogoId:J,baseCurrencyLogoId:ee,placeholder:te?te[0]:void 0})))),o.createElement("div",{className:l()(B.description,he&&L&&B.offset)},f&&o.createElement("div",{className:l()(B.symbolTitle,I&&B.active,R&&B.invalid,!Boolean(y)&&B.noDescription),"data-name":"list-item-title"},"string"==typeof f&&b?o.createElement(c.HighlightedText,{className:B.highlightedText,text:f,queryString:b,rules:(0,u.createRegExpList)(b)}):f,E&&o.createElement("span",{className:B.dataMode},"E")),!f&&n&&o.createElement("div",{className:l()(B.symbolTitle,I&&B.active,R&&B.invalid),"data-name":"list-item-title"},o.createElement("span",{dangerouslySetInnerHTML:{__html:n}}),E&&o.createElement("span",{className:B.dataMode},"E")),ae&&fe())),!ae&&o.createElement("div",{className:l()(B.cell,B.descriptionCell,Boolean(de)&&B.addition)},fe(),de?o.createElement(de,{...e,className:B.actions,onMouseOver:void 0,onMouseOut:void 0}):null),ae&&de?o.createElement(de,{...e,className:B.cell,onMouseOver:void 0,onMouseOut:void 0}):null,ce&&o.createElement("div",{className:l()(B.exchangeCell,B.cell)},o.createElement("div",{className:l()(B.exchangeDescription)},!ne&&o.createElement("div",{
className:l()(B.marketType,I&&B.active)},w),o.createElement("div",{className:B.source},!1,"economic"===K&&ge&&ve?o.createElement("div",{className:l()(B.exchangeName,I&&B.active,"apply-common-tooltip",B.narrow,ne&&B.wide),title:ge},ve):o.createElement("div",{className:l()(B.exchangeName,I&&B.active,oe&&"apply-common-tooltip"),title:oe},x))),pe&&o.createElement("div",{className:B.flag},o.createElement(T.SymbolSearchFlag,{key:pe?`${Y}_exchange`:`${V}_${U}_${null==W?void 0:W.id}_${K}_${z}`,className:B.icon,country:V,providerId:U,sourceId:"economic"===K&&W?W.id:void 0}))),o.createElement("div",{className:l()(B.cell,Boolean(j)&&B.actionsCell)},j));function fe(){if(R)return null;const e=l()(B.symbolDescription,I&&B.active,!g.mobiletouch&&"apply-overflow-tooltip apply-overflow-tooltip--allow-text");return S?o.createElement("div",{className:e},b?o.createElement(c.HighlightedText,{className:B.highlightedText,text:S,queryString:b,rules:(0,u.createRegExpList)(b)}):S):y?o.createElement("div",{"data-overflow-tooltip-text":(0,v.removeTags)(y),className:e,dangerouslySetInnerHTML:{__html:y}}):null}}},29562:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchFlag:()=>v});var o=r(50959),n=r(97754),l=r.n(n),a=r(24633),s=r(36279);const i=r.p+"mock-dark.16b5f3a431f502b03ae3.svg",c=r.p+"mock-light.d201313017eb2c1b989f.svg";function u(e){return e===a.StdTheme.Dark?i:c}var d=r(77975),m=r(45345),p=r(50151);const h=s.LogoSize.Medium;var g=r(35599);function v(e){const{country:t,tooltip:r,providerId:n,sourceId:a,className:i}=e,c=(0,d.useWatchedValueReadonly)({watchedValue:m.watchedTheme}),[v,f]=(0,o.useState)(function({country:e,providerId:t,sourceId:r}){const o=(0,s.getLogoUrlResolver)();return n=>{const l=e=>o.getProviderLogoUrl(e,h),a=[{value:r,resolve:l},{value:e,resolve:e=>o.getCountryFlagUrl(e.toUpperCase(),h)},{value:t,resolve:l}].find((({value:e})=>void 0!==e&&e.length>0));return void 0!==a?a.resolve((0,p.ensureDefined)(a.value)):u(n)}}({country:t,providerId:n,sourceId:a})(c));return o.createElement("img",{className:l()(i,"apply-common-tooltip",g.icon),crossOrigin:"","data-tooltip":r,src:v,onError:function(){f(u(c))}})}},58442:(e,t,r)=>{"use strict";r.d(t,{QualifiedSources:()=>o,qualifyProName:()=>a});var o,n=r(50151),l=r(56570);r(81319);function a(e){return e}!function(e){function t(e){return e.pro_name}function r(e){{const t=l.enabled("pay_attention_to_ticker_not_symbol")?e.ticker:e.name;return(0,n.ensureDefined)(t)}}e.fromQuotesSnapshot=function(e){return"error"===e.status?e.symbolname:e.values.pro_name},e.fromQuotesResponse=function(e){const{values:r,symbolname:o,status:n}=e;return"error"===n&&o?o:t(r)},e.fromQuotes=t,e.fromSymbolSearchResult=function(e,t){{const{ticker:r,symbol:o}=null!=t?t:e;return l.enabled("pay_attention_to_ticker_not_symbol")?(0,n.ensureDefined)(null!=r?r:o):(0,n.ensureDefined)(o)}},e.fromSymbolInfo=r,e.fromSymbolMessage=function(e,t){return"symbol_resolved"===t.method?r(t.params[1]):e}}(o||(o={}))},20882:(e,t,r)=>{"use strict";r.d(t,{createSearchSources:()=>s,filterSearchSources:()=>l,isAllSearchSourcesSelected:()=>n,
splitSearchSourcesByGroup:()=>a});const o=[];function n(e){return""===e.value()}function l(e,t){return e.filter((e=>e.includes(t)))}function a(e){const t=new Map;e.forEach((e=>{t.has(e.group())?t.get(e.group()).push(e):t.set(e.group(),[e])}));for(const e of t.values()){e[0].group()!==ExchangeGroup.NorthAmerica&&e.sort(((e,t)=>e.name().toLowerCase()>t.name().toLowerCase()?1:-1))}return new Map([...t.entries()].sort((([e],[t])=>o.indexOf(e)-o.indexOf(t))))}function s(e,t){return t.map((t=>new e(t)))}},70613:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchDialogBodyContext:()=>o});const o=r(50959).createContext(null)},84524:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchItemsDialogContext:()=>o});const o=r(50959).createContext(null)},73280:(e,t,r)=>{"use strict";r.d(t,{SymbolSearchItemsDialog:()=>Xe});var o,n,l,a=r(50959),s=r(97754),i=r.n(s),c=r(11542),u=r(56570),d=r(44254),m=r(81319);function p(e){const t=function(e){let t,r=0,o=0;for(let n=0;n<e.length;n++){const l=e[n];if("whitespace"!==l.type)switch(r){case 0:if("number"!==l.type||1!=+l.value)return[];r=1;break;case 1:if(1!==r||"divide"!==l.type)return[];r=2,t=n+1;break;case 2:if("openBrace"===l.type)r=3,o=1;else if((0,d.isBinaryOperator)(l.type))return[];break;case 3:"openBrace"===l.type?o++:"closeBrace"===l.type&&(o--,o<=0&&(r=2))}}return e.slice(t)}(e);return t.length?(0,d.factorOutBraces)(t):(0,d.factorOutBraces)((0,d.tokenize)("1/("+h(e)+")"))}function h(e){return e.reduce(((e,t)=>"symbol"===t.type&&d.symbolTokenEscapeRe.test(t.value)?e+`'${t.value}'`:e+t.value),"")}function g(e){const t=function(e){const t=(0,d.tokenize)(e),r=[];return t.forEach((e=>{if("symbol"!==e.type)return;const[t]=(0,d.parseToken)(e);t&&r.push(t)})),r}(e);if(1===t.length)return t[0]}function v(e,t,r){const o=e.value,[n,l]=f(e,r),a=(0,m.getSymbolFullName)(t),s=d.symbolTokenEscapeRe.test(a)?`'${a}'`:a;return[o.substring(0,l)+s+o.substring(l+n.length),l+s.length]}function f(e,t){const{value:r,selectionStart:o}=e,n=(0,d.tokenize)(t?r.toUpperCase():r),l=(0,d.getTokenAtPos)(n,o||0);return[(null==l?void 0:l.value)||"",l?l.offset:r.length,n]}!function(e){e.Init="init",e.Var="var",e.Operator="operator"}(o||(o={})),function(e){e[e.Init=0]="Init",e[e.Div=1]="Div",e[e.Expression=2]="Expression",e[e.BracedExpression=3]="BracedExpression"}(n||(n={})),function(e){e.Stocks="stocks",e.Futures="futures",e.Funds="funds",e.Forex="forex",e.Crypto="bitcoin,crypto",e.Index="index",e.Bond="bond",e.Economic="economic",e.Options="options"}(l||(l={}));const y=["futures","forex","bond","economic","options"];var S=r(84877),b=r(24437),x=r(79418),w=r(9745),k=r(86240),C=r(86781),E=r(84524),I=r(69654),L=r(3343),R=r(19291);function _(e,t,r){return`source-item-${e}-${t}-${r}`}var T=r(20882),N=r(99113);function B(e){const{children:t,className:r}=e;return a.createElement("div",{className:i()(N.container,r)},a.createElement("div",{className:N.childrenWrapper},t))}var M=r(50151),D=r(78036),O=r(24637),F=r(19785),P=r(91540),A=r(78406);function V(e){
const{searchSource:t,onClick:r,queryString:o,isFocused:n,id:l}=e,{symbolSearchContent:s,isAllSearchSourcesSelected:c,allSearchSourcesTitle:u,isMobile:d}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),p=s.currentSelectedSearchSource,h=(0,M.ensureNotNull)(p).value(),g=c(t),v=t.value()===h,f=(0,a.useMemo)((()=>(0,F.createRegExpList)(o)),[o]),y=t.description(),S=y&&!g,b=m.isSeparateSymbolSearchTabs&&g&&u?u:t.name(),x=i()(A.container,d?A.mobile:A.desktop,v&&A.selected,n&&A.focused,g&&A.allSelected,g&&A.libAllSelected,!g&&d&&A.bordered);return a.createElement("div",{className:i()(!d&&A.wrap,g&&A.libAllSelected),onClick:r,id:l},a.createElement("div",{className:x},a.createElement("div",{className:A.iconWrap},!!g&&a.createElement(w.Icon,{className:i()(A.icon,A.allSelectedIcon),icon:P})),a.createElement("div",{className:A.textBlock},a.createElement("div",{className:i()(A.title,!S&&!d&&A.titleWithoutDesc)},a.createElement(O.HighlightedText,{className:i()(v&&A.highlighted),queryString:o,text:b,rules:f})),S&&a.createElement("div",{className:i()(A.description,"apply-overflow-tooltip")},a.createElement(O.HighlightedText,{className:A.highlighted,queryString:o,rules:f,text:y})))))}var U=r(77975),Q=r(45345),W=r(26843),K=r(70613),z=r(66619),Z=r(67562),H=r(9854);const q={emptyTextClassName:H.emptyText};function $(e){const{searchSources:t}=e,{setSelectedIndex:o,setSelectedSearchSource:n,setMode:l,isMobile:s,emptyState:u,autofocus:d}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),p=(0,U.useWatchedValueReadonly)({watchedValue:Q.watchedTheme})===W.StdTheme.Dark?z:Z,h=(0,C.useMatchMedia)(k["media-phone-vertical"]),[g,v]=(0,a.useState)(""),f=(0,a.useMemo)((()=>[{group:null,sources:(0,m.createGroupColumns)((0,T.filterSearchSources)(t,g),h?1:2)}]),[t,g,h]),y=((0,a.useMemo)((()=>({})),[]),(0,a.useRef)(null)),S=(0,a.useRef)(null),{focusedItem:b,activeDescendant:x,handleKeyDown:N,resetFocusedItem:M}=function(e,t,r){const[o,n]=(0,a.useState)(null),[l,s]=(0,a.useState)("");function i(t){const r=e[t.groupIndex].sources[t.col].length-1;if(t.row===r){const e=d(t.groupIndex+1);if(null===e)return;return t.col>0&&!u({...t,groupIndex:e,row:0})?void n({groupIndex:e,col:0,row:0}):void n({...t,groupIndex:e,row:0})}n({...t,row:t.row+1})}function c(t){var r,o;if(0===t.row){const l=d(t.groupIndex-1,-1);if(null===l)return;const a=null!==(o=null===(r=e[l].sources[t.col])||void 0===r?void 0:r.length)&&void 0!==o?o:0;return 0===a?void n({groupIndex:l,col:0,row:0}):void n({...t,groupIndex:l,row:a-1})}n({...t,row:t.row-1})}function u(t){var r,o;return Boolean(null===(o=null===(r=e[t.groupIndex])||void 0===r?void 0:r.sources[t.col])||void 0===o?void 0:o[t.row])}function d(t=0,r=1){const o=e.length;let n=(t+o)%o;for(;!u({groupIndex:n,col:0,row:0});)if(n=(n+r+o)%o,n===t)return null;return n}return(0,a.useEffect)((()=>{if(!r.current)return;if(!o)return void s("");const e=_(o.groupIndex,o.col,o.row),t=r.current.querySelector(`#${e}`);null==t||t.scrollIntoView({block:"nearest"}),s(e)}),[o]),(0,a.useEffect)((()=>{n(null)}),[t]),{focusedItem:o,
activeDescendant:l,handleKeyDown:function(l){if(!r.current)return;const a=(0,L.hashFromEvent)(l);if(32!==a&&13!==a)switch((0,R.mapKeyCodeToDirection)(a)){case"blockNext":if(l.preventDefault(),!o){const e=d();if(null===e)break;n({groupIndex:e,col:0,row:0});break}i(o);break;case"blockPrev":if(l.preventDefault(),!o)break;c(o);break;case"inlineNext":{if(!o||t)break;l.preventDefault();const r=e[o.groupIndex].sources.length;if(o.col===r-1||!u({...o,col:o.col+1})){i({...o,col:0});break}n({...o,col:o.col+1});break}case"inlinePrev":{if(!o||t)break;l.preventDefault();const r=e[o.groupIndex].sources.length;if(0===o.col){if(0!==o.row){c({...o,col:r-1});break}const t=d(o.groupIndex-1,-1);if(null===t)break;const l=e[t].sources.length,a=e[t].sources[0].length;if(!u({groupIndex:t,col:l-1,row:a-1})){c(o);break}n({groupIndex:t,col:l-1,row:a-1});break}n({...o,col:o.col-1});break}}else{if(!o)return;l.preventDefault();const e=r.current.querySelector(`#${_(o.groupIndex,o.col,o.row)}`);e instanceof HTMLElement&&e.click()}},resetFocusedItem:()=>n(null)}}(f,h,S);(0,a.useLayoutEffect)((()=>{var e;d&&(null===(e=null==y?void 0:y.current)||void 0===e||e.focus())}),[]);const O=u?a.createElement(u,null):a.createElement(B,{className:H.noResultsDesktop},a.createElement(w.Icon,{icon:p,className:H.emptyIcon}),a.createElement("div",{className:H.emptyText},c.t(null,void 0,r(53182)))),F=!(f.length&&f.every((e=>0===e.sources.length)));return a.createElement(K.SymbolSearchDialogBodyContext.Provider,{value:q},a.createElement(I.DialogSearch,{placeholder:c.t(null,void 0,r(8573)),onChange:function(e){M(),v(e.target.value),S&&S.current&&(S.current.scrollTop=0)},reference:y,onKeyDown:N,onBlur:M,"aria-activedescendant":x}),F?a.createElement("div",{ref:S,className:i()(H.contentList,!s&&H.contentListDesktop),onTouchStart:function(){var e;null===(e=y.current)||void 0===e||e.blur()}},f.map(((e,t)=>{const{group:r,sources:o}=e;return 0===o.length?a.createElement(a.Fragment,{key:r}):a.createElement(a.Fragment,{key:r},!1,a.createElement("div",{className:i()(H.searchSourceItemsContainer,!s&&H.searchSourceItemsContainerDesktop,h&&H.oneColumn)},o.map(((e,r)=>a.createElement("div",{key:`${t}-${r}`,className:H.column},e.map(((e,o)=>a.createElement(V,{id:_(t,r,o),isFocused:!!b&&(b.groupIndex===t&&b.col===r&&b.row===o),key:e.value(),searchSource:e,queryString:g,onClick:P.bind(null,e)}))))))))}))):O);function P(e){n(e),l("symbolSearch"),o(-1)}}var j,G,Y,X=r(32227),J=r(14051);r(67580);function ee(e){return e.hasOwnProperty("exchange")}async function te(e){{const t=await async function(e){return new Promise((t=>{window.ChartApiInstance.searchSymbols(e.text||"",e.exchange||"",e.type||"","",!1,!0,"",!0,"",(e=>{t(e)}))}))}(e);return{symbols:t,symbols_remaining:0}}}!function(e){e.SourceId="source_id",e.EconomicCategory="economic_category",e.SearchType="search_type",e.Sector="sector",e.Product="product",e.Centralization="centralization",e.OnlyHasOptions="only_has_options"}(j||(j={})),function(e){e[e.Prod=0]="Prod",e[e.Local=1]="Local"}(G||(G={})),function(e){
e[e.Paginated=0]="Paginated",e[e.NoLimit=1]="NoLimit"}(Y||(Y={}));new Map([].map((({value:e,search_type:t})=>[e,t])));var re=r(78136),oe=r(51768),ne=r(68335),le=r(81348),ae=r(486),se=r(81574),ie=r(35119),ce=r(32617),ue=r(69135),de=r(63861),me=r(25999);function pe(e){var t;const{state:r,update:o}=e,{searchRef:n,forceUpdate:l,upperCaseEnabled:s}=(0,M.ensureNotNull)((0,a.useContext)(E.SymbolSearchItemsDialogContext)),i=(0,d.tokenize)(null===(t=n.current)||void 0===t?void 0:t.value),c=function(e){const t={braceBalance:0,currentState:"var",warnings:[],errors:[]};if(u.enabled("charting_library_base")&&!u.enabled("show_spread_operators"))return t;let r="init";const o=[];for(let n=0;n<e.length;n++){const l=e[n];if("whitespace"!==l.type){if("incompleteSymbol"===l.type||"incompleteNumber"===l.type){const r=n!==e.length-1,o={status:r?"error":"incomplete",reason:"incomplete_token",offset:l.offset,token:l};if(r?t.errors.push(o):t.warnings.push(o),r)continue}switch(l.type){case"symbol":case"number":if("var"===r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}r="var";break;case"plus":case"minus":case"multiply":case"divide":case"power":if("var"!==r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}r="operator";break;case"openBrace":if("var"===r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}o.push(l),r="init";break;case"closeBrace":if("var"!==r){t.errors.push({status:"error",reason:"unexpected_token",offset:l.offset,token:l});continue}o.pop()||t.errors.push({status:"error",reason:"unbalanced_brace",offset:l.offset,token:l}),r="var";break;case"unparsed":t.errors.push({status:"error",reason:"unparsed_entity",offset:l.offset,token:l})}}}for(t.braceBalance=o.length,"var"!==r&&t.warnings.push({status:"incomplete",token:e[e.length-1]});o.length;){const e=o.pop();e&&t.warnings.push({status:"incomplete",reason:"unbalanced_brace",offset:e.offset,token:e})}return t.currentState=r,t}(i);let m=[{icon:ae,insert:"/",type:"binaryOp",name:"division"},{icon:se,insert:"-",type:"binaryOp",name:"subtraction"},{icon:ie,insert:"+",type:"binaryOp",name:"addition"},{icon:ce,insert:"*",type:"binaryOp",name:"multiplication"}];return u.enabled("hide_exponentiation_spread_operator")||(m=m.concat([{icon:ue,insert:"^",type:"binaryOp",name:"exponentiation"}])),u.enabled("hide_reciprocal_spread_operator")||(m=m.concat([{icon:de,type:"complete",name:"1/x",callback:()=>{!n.current||c.errors.length||c.warnings.length||(n.current.value=h(p(i)),l())}}])),a.createElement("div",{className:me.actions},m.map((e=>a.createElement(le.ToolWidgetButton,{className:me.actionButton,icon:e.icon,key:e.name,isDisabled:he(e,c),onClick:()=>function(e){var t;if(!he(e,c)){if(e.insert&&n.current){const t=n.current.value+e.insert;n.current.value=t,n.current.setSelectionRange(t.length,t.length);const[a,,i]=f(n.current,s);r.current&&(r.current.selectedIndexValue=-1,r.current.searchSpreadsValue=(0,d.isSpread)(i),r.current.searchTokenValue=a),l(),o()}
e.callback&&e.callback(),null===(t=n.current)||void 0===t||t.focus(),(0,oe.trackEvent)("GUI","SS",e.name)}}(e)}))))}function he(e,t){let r=!1;if(!t.errors.length)switch(e.type){case"binaryOp":r="var"===t.currentState;break;case"openBrace":r="var"!==t.currentState;break;case"closeBrace":r="var"===t.currentState&&t.braceBalance>0;break;case"complete":r=!t.errors.length&&!t.warnings.length}return!r}var ge=r(63932),ve=r(84952),fe=r(29006),ye=r(14543),Se=r(10381),be=r(52019),xe=r(54464);const we=(0,m.getDefaultSearchSource)();function ke(e){const{mode:t,setMode:o,searchRef:n,cachedInputValue:l,setSelectedIndex:s,setSelectedSearchSource:u,isAllSearchSourcesSelected:d,allSearchSourcesTitle:p,upperCaseEnabled:h,symbolSearchContent:g}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),v=g.currentSelectedSearchSource,f=(0,M.ensureNotNull)(v),y="symbolSearch"===t,S=d(f),b=m.isSeparateSymbolSearchTabs&&S&&p?p:f.name(),x=(0,a.useCallback)((()=>{var e;if(m.isSeparateSymbolSearchTabs&&!S&&we)return u(we),s(-1),void(null===(e=n.current)||void 0===e||e.focus());n.current&&(l.current=h?n.current.value.toUpperCase():n.current.value),o("exchange")}),[S,n,h,o,u]);return m.isSeparateSymbolSearchTabs?y?a.createElement(ye.LightButton,{onClick:x,isPills:!S,size:"xsmall",variant:S?"ghost":"quiet-primary",showCaret:S,endSlot:S?void 0:a.createElement(w.Icon,{icon:be}),enableActiveStateStyles:!1,className:i()(xe.button,!S&&xe.withFlag),tabIndex:-1,"data-name":"sources-button"},a.createElement("div",{className:xe.buttonContent},null,a.createElement("span",null,b))):null:y?a.createElement("div",{className:i()(xe.flagWrap,"apply-common-tooltip",!S&&xe.withFlag),title:c.t(null,void 0,r(57640)),onClick:x,"data-name":"sources-button"},S&&a.createElement(w.Icon,{className:xe.icon,icon:P}),null,a.createElement("div",{className:i()(xe.title)},b),a.createElement(Se.ToolWidgetCaret,{className:xe.caret,dropped:!1})):null}var Ce=r(16872);function Ee(e){const{brokerButton:t=null}=e,{isSmallWidth:o,selectedFilterValues:n,setSelectedFilterValues:l,setSelectedIndex:s,isMobile:u,searchRef:d,symbolSearchContent:p}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),h=p.tabSelectFilters;return m.isSeparateSymbolSearchTabs?a.createElement("div",{className:i()(Ce.wrap,Ce.small,Ce.newStyles,u&&Ce.mobile)},t&&a.createElement("div",{className:Ce.brokerWrap},t),p.canChangeExchange&&a.createElement("div",{className:Ce.filterItem},a.createElement(ke,null)),h&&h.map((e=>{const{id:t,options:r,label:o}=e,i=r.find((e=>e.value===FILTER_DEFAULT_VALUE));if(!i)throw new Error("There must be default filter value in filter definition");const c=r.find((e=>{var r;return e.value===(null===(r=n[p.currentSymbolType])||void 0===r?void 0:r[t])}))||i;return a.createElement("div",{key:t,className:Ce.filterItem},a.createElement(SymbolSearchSelectFilter,{selectedOption:c,defaultOption:i,options:r,onSelect:e=>{var r;l(p.currentSymbolType,{[t]:e.value}),trackEvent("New SS",p.currentSymbolType,null===e.value?e.analyticsLabel:e.value),s(-1),null===(r=d.current)||void 0===r||r.focus()
},label:o,isMobile:u,"data-name":t}))}))):a.createElement("div",{className:i()(Ce.wrap,o&&Ce.small)},a.createElement("div",{className:Ce.item},a.createElement("div",{className:Ce.text},o?c.t(null,void 0,r(74007)):c.t(null,void 0,r(95481)))),a.createElement("div",{className:Ce.item},!o&&a.createElement("div",{className:Ce.text},c.t(null,void 0,r(78734))),p.canChangeExchange&&a.createElement("div",{className:Ce.exchange},a.createElement(ke,null))))}var Ie=r(63273),Le=r(90349);function Re(e){const{onTouchMove:t,listRef:r,className:o,listWrapRef:n,virtualListKey:l,items:s,getItemSize:c,hideFeed:u,canLoadMore:d,onLoadMoreSymbols:p}=e,{mode:h,isSmallWidth:g,handleListWidth:v}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),[f,y]=(0,a.useState)(null),S=(0,fe.useResizeObserver)((function([e]){y(e.contentRect.height),v(e.contentRect.width)})),b=(0,a.useCallback)((e=>{const{index:t,style:r}=e;return a.createElement("div",{style:r},s[t])}),[s]),x=(0,a.useCallback)((e=>(0,M.ensure)(s[e].key)),[s]),w="watchlist"===h&&null!==f;return a.createElement("div",{className:i()(Le.wrap,w&&Le.watchlist,u&&Le.noFeed,u&&m.isSeparateSymbolSearchTabs&&Le.newStyles,o),onTouchMove:t,ref:S},a.createElement("div",{ref:n,className:i()(Le.scrollContainer,u&&Le.noFeed)},w?a.createElement(ve.VariableSizeList,{key:l,ref:r,className:Le.listContainer,width:"100%",height:(0,M.ensureNotNull)(f),itemCount:s.length,itemSize:c,children:b,itemKey:x,overscanCount:20,direction:(0,Ie.isRtl)()?"rtl":"ltr"}):a.createElement(a.Fragment,null,a.createElement("div",{className:i()(Le.listContainer,g&&Le.multiLineItemsContainer)},!m.isSeparateSymbolSearchTabs&&a.createElement(Ee,null),...s,!1))))}var _e=r(96967),Te=r(89846),Ne=r(43376);const Be=u.enabled("hide_image_invalid_symbol");function Me(e){const{otherSymbolsCount:t,onChangeSymbolTypeFilter:r,onResetFilters:o,onListTouchMove:n,brokerTitle:l,brokerLogoInfo:i,isBrokerActive:c,onBrokerToggle:u,listRef:d,listWrapRef:p,onLoadMoreSymbols:h,canLoadMore:g}=e,{mode:v,isMobile:f,selectedSymbolType:y,symbolTypes:S,feedItems:b,contentItem:x,emptyState:w=De,symbolSearchContent:k,symbolSearchState:C}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),I=l?a.createElement(BrokerButton,{brokerTitle:l,isActive:c,onToggle:u,onKeyDown:e=>{const t=(0,L.hashFromEvent)(e);t!==9+L.Modifiers.Shift&&9!==t&&e.stopPropagation()},logoInfo:i}):null,R=S.map((e=>({id:e.value,children:e.name}))),_="symbolSearch"===v&&["good","loadingWithPaginated"].includes(C),T=null!=x?x:_e.SymbolSearchDialogContentItem,N=(0,a.useMemo)((()=>b.map((e=>a.createElement(T,{...e,searchToken:k.token})))),[b]);return a.createElement(a.Fragment,null,"symbolSearch"===v&&a.createElement(a.Fragment,null,a.createElement("div",{className:s(Ne.bubblesContainer,!f&&I&&Ne.withButton,f&&Ne.mobile)},S.length>0&&a.createElement(Te.RoundButtonTabs,{id:"symbol-search-tabs",isActive:e=>e.id===y,onActivate:r,overflowBehaviour:f?"scroll":"wrap",className:s(Ne.bubbles,f&&Ne.mobile,m.isSeparateSymbolSearchTabs&&(k.withFilters||I)&&!f&&Ne.withFilters),items:R
},f?null:a.createElement("div",null,I)),!m.isSeparateSymbolSearchTabs&&f&&S.length>0&&l&&a.createElement("div",{className:Ne.brokerButtonWrap},I)),m.isSeparateSymbolSearchTabs&&a.createElement(Ee,{brokerButton:f?I:void 0})),a.createElement(Re,{listRef:d,listWrapRef:p,onTouchMove:n,items:N,getItemSize:()=>Fe,onLoadMoreSymbols:h,canLoadMore:g,hideFeed:!_}),"loading"===C&&a.createElement("div",{className:Ne.spinnerWrap},a.createElement(ge.Spinner,null)),"symbolSearch"===v&&a.createElement(a.Fragment,null,!1,"empty"===C&&a.createElement(w,null)))}function De(e){const t=(0,U.useWatchedValueReadonly)({watchedValue:Q.watchedTheme})===W.StdTheme.Dark?z:Z;return a.createElement(B,{className:Ne.noResultsDesktop},!Be&&a.createElement(w.Icon,{icon:t,className:Ne.emptyIcon}),a.createElement("div",{className:Ne.emptyText},c.t(null,void 0,r(76822))))}const Oe=(0,m.getDefaultSearchSource)(),Fe=52;function Pe(e){const{mode:t,setMode:o,setSelectedIndex:n,isMobile:l,selectedSearchSource:s,setSelectedSearchSource:p,isAllSearchSourcesSelected:h,selectedSymbolType:y,setSelectedSymbolType:S,symbolSearchContent:b,setSymbolSearchContent:x,searchRef:w,setSearchSpreads:k,showSpreadActions:C,selectedItem:L,forceUpdate:R,placeholder:_,initialScreen:T,footer:N,searchInput:B,upperCaseEnabled:M,externalInput:O,handleKeyDown:F,customSearchSymbols:P,filterDefinitions:A,filterQueryParams:V,searchSources:U,symbolSearchState:Q,setSymbolSearchState:W,onEmptyResults:z}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext),Z=null!=P?P:te,H=(0,a.useRef)(t);H.current=t;const q=(0,a.useRef)(new AbortController),[$,j]=(0,a.useState)(0),G=(0,a.useRef)(0),[Y,le]=(0,a.useState)(b.token),ae=(0,a.useRef)(null),se=(0,a.useRef)(null),ie=(0,a.useRef)({selectedIndexValue:-1,searchTokenValue:"",searchSpreadsValue:!0}),ce=(0,a.useRef)(null),ue=(0,a.useRef)(null),de=(0,a.useRef)(null),{broker:me=null,brokerId:he,brokerTitle:ge,brokerLogoInfo:ve,isBrokerChecked:fe=!1,setIsBrokerChecked:ye=(()=>{}),unhideSymbolSearchGroups:Se=""}={brokerId:void 0,brokerTitle:void 0,brokerLogoInfo:void 0};(0,a.useEffect)((()=>()=>{q.current.abort(),Pe(),Ae()}),[]),(0,a.useEffect)((()=>{(null==w?void 0:w.current)&&le(w.current.value)}),[]),(0,a.useEffect)((()=>{const e=w.current;if(e)return e.addEventListener("input",Ie),e.addEventListener("focus",De),e.addEventListener("select",Ee),e.addEventListener("click",Ee),e.addEventListener("keyup",Fe),O&&F&&e.addEventListener("keydown",F),()=>{e&&(e.removeEventListener("input",Ie),e.removeEventListener("focus",De),e.removeEventListener("select",Ee),e.removeEventListener("click",Ee),e.removeEventListener("keyup",Fe),O&&F&&e.removeEventListener("keydown",F))}}),[F]),(0,a.useEffect)((()=>{Boolean(T)&&""===Y.trim()||(x((e=>({...e,symbolStartIndex:0}))),Re(Y,y,s).then((()=>{ae.current&&(ae.current.scrollTop=0)})))}),[Y,y,s,fe,T,V]),(0,a.useEffect)((()=>{var e;if(!L||!w.current)return;if(!u.enabled("show_spread_operators"))return w.current.value=L.symbol,void R();const t=ee(L)?L.exchange:L.parent.exchange;let r
;r="contracts"in L&&(null===(e=L.contracts)||void 0===e?void 0:e.length)?L.contracts[0]:L;const o={name:r.symbol,exchange:t,prefix:r.prefix,fullName:r.full_name},[n,l]=v(w.current,o,M);w.current.value=n,w.current.setSelectionRange(l,l),R()}),[L]);const be=null!=T?T:"div",xe=Boolean(T)&&"symbolSearch"!==t,we=null!=B?B:I.DialogSearch,ke=(0,a.useMemo)((()=>({listRef:se,resetRecommends:Be,updateRecommends:Re,searchToken:Y,emptyTextClassName:Ne.emptyText,isBrokerChecked:fe,symbolSearchState:Q,currentMode:H})),[se,Y,fe,Q,H,V]);return a.createElement(K.SymbolSearchDialogBodyContext.Provider,{value:ke},!(O&&"symbolSearch"===t)&&a.createElement(we,{reference:w,className:i()(Ne.search,M&&Ne.upperCase),placeholder:_||c.t(null,void 0,r(8573))},C&&a.createElement(pe,{state:ie,update:Le})),xe?a.createElement(be,null):a.createElement(Me,{otherSymbolsCount:$,onListTouchMove:function(){var e;null===(e=w.current)||void 0===e||e.blur()},onChangeSymbolTypeFilter:function(e){const{id:t}=e;S(t),n(-1)},onResetFilters:function(){var e;m.isSeparateSymbolSearchTabs?"resetFilter"===Q?S((0,m.getAllSymbolTypesValue)()):Oe&&p(Oe):(S((0,m.getAllSymbolTypesValue)()),Oe&&p(Oe));ye(!1),l||null===(e=w.current)||void 0===e||e.focus()},brokerTitle:ge,brokerLogoInfo:ve,isBrokerActive:fe,onBrokerToggle:ye,listRef:se,listWrapRef:ae,onLoadMoreSymbols:void 0,canLoadMore:void 0}),N);function Ce(){if(!w.current)return;const[e,t,r]=f(w.current,M);G.current=t,ie.current={selectedIndexValue:-1,searchSpreadsValue:(0,d.isSpread)(r),searchTokenValue:e},ce.current||(ce.current=setTimeout(Le,0))}function Ee(){if(!w.current)return;const[,e]=f(w.current,M);e!==G.current&&Ce()}function Ie(){u.enabled("show_spread_operators")?Ce():w.current&&(ie.current={selectedIndexValue:-1,searchSpreadsValue:!1,searchTokenValue:w.current.value},ce.current||(ce.current=setTimeout(Le,0)))}function Le(){const{selectedIndexValue:e,searchTokenValue:t,searchSpreadsValue:r}=ie.current;ce.current=null,(0,X.unstable_batchedUpdates)((()=>{k(r),n(e),le(M?t.toUpperCase():t)}))}async function Re(e,t,r,o){var n,l,a;try{"noop"===Q?W("loading"):o?W("loadingWithPaginated"):(Pe(),Ae(),ue.current=setTimeout((()=>{const r=Boolean(s&&U.length>1&&!(0,m.exchangeSelectDisabled)(t)),o=null==A?void 0:A[t];x({token:e,canChangeExchange:r,tabSelectFilters:o,withFilters:Boolean(r||(null==o?void 0:o.length)),currentSymbolType:t,currentSelectedSearchSource:s,currentTabAvailableSearchSources:U,renderSymbolSearchList:[],symbolsRemaining:0,symbolStartIndex:0}),W("loading")}),500)),Ve();(0,m.getAllSymbolTypesValue)();const i=!1;let c;if(fe&&me){c=(await(0,J.respectAbort)(q.current.signal,me.accountMetainfo())).prefix}const d=u.enabled("show_spread_operators")?null!==(l=null!==(n=g(e))&&void 0!==n?n:c)&&void 0!==l?l:null==r?void 0:r.getRequestExchangeValue():null==s?void 0:s.getRequestExchangeValue(),p=g(e)||null===(a=r||s)||void 0===a?void 0:a.getRequestCountryValue(),[h,v]=await Promise.all([Te(q.current.signal,e,t,r,d,p,o),i&&!o?getRecent():Promise.resolve([])]),f=v.filter((e=>{var t,r
;return d?(null===(t=e.exchange)||void 0===t?void 0:t.toLowerCase())===d.toLowerCase():!p||(null===(r=e.country)||void 0===r?void 0:r.toLowerCase())===p.toLowerCase()})),y=new Set(f.map((e=>`${e.exchange}_${e.symbol}`))),S=h.symbols.filter((e=>!y.has(`${e.exchange}_${e.symbol}`)));let w=function(e,t=window.ChartApiInstance.symbolsGrouping()){var r;const o={},n=[];for(let l=0;l<e.length;++l){const a=e[l];if(a.prefix||Array.isArray(a.contracts))return e;const s=t[a.type];if(void 0===s){n.push(a);continue}const i=s.exec(a.symbol);if(i){const e=i[1];let t;o.hasOwnProperty(e)?t=o[e]:(t=n.length,o[e]=t,n.push({type:a.type,symbol:e,exchange:a.exchange,description:a.description,full_name:a.exchange+":"+e,contracts:[]})),null===(r=n[t].contracts)||void 0===r||r.push(a)}else n.push(a)}return n}([...f,...S]);if(o&&(w=[...b.renderSymbolSearchList,...w]),!w.length)return x((r=>{const o=Boolean(s&&U.length>1&&!(0,m.exchangeSelectDisabled)(t)),n=null==A?void 0:A[t];return{...r,canChangeExchange:o,tabSelectFilters:n,token:e,symbolsRemaining:0,withFilters:Boolean(o||(null==n?void 0:n.length)),currentSymbolType:t,currentSelectedSearchSource:s,currentTabAvailableSearchSources:U}})),Pe(),W("empty"),void _e();Pe(),x((r=>{const o=Boolean(s&&U.length>1&&!(0,m.exchangeSelectDisabled)(t)),n=null==A?void 0:A[t];return{...r,canChangeExchange:o,tabSelectFilters:n,renderSymbolSearchList:w,token:e,symbolsRemaining:h.symbols_remaining,withFilters:Boolean(o||(null==n?void 0:n.length)),currentSymbolType:t,currentSelectedSearchSource:s,currentTabAvailableSearchSources:U,symbolStartIndex:r.symbolStartIndex+h.symbols.length}})),W("good")}catch(e){(0,J.skipAbortError)(e)}}function _e(){z&&(de.current=setTimeout((()=>z()),1e3))}async function Te(e,t,r,o,n,l,a){var s;const i={serverHighlight:!1,text:u.enabled("show_spread_operators")?(0,d.shortName)(t):null===(s=w.current)||void 0===s?void 0:s.value,exchange:n,country:l,type:r,lang:window.language||"",sortByCountry:void 0,brokerId:he,onlyTradable:Boolean(he)&&fe,unhideSymbolSearchGroups:Se,signal:e,start:a,filterQueryParams:V},c=(0,re.getSearchRequestDelay)();return void 0!==c&&await(0,J.delay)(e,c),Z(i)}function Be(){Ve(),W("empty"),le(""),k(!1),x((e=>({...e,symbolStartIndex:0}))),Pe()}function De(){"watchlist"===H.current&&(o("symbolSearch"),(0,oe.trackEvent)("Watchlist","Mobile SS","Go to SS page"))}function Fe(e){switch((0,ne.hashFromEvent)(e)){case 37:case 39:Ee()}}function Pe(){ue.current&&clearTimeout(ue.current)}function Ae(){de.current&&clearTimeout(de.current)}function Ve(){q.current.abort(),q.current=new AbortController}}var Ae=r(48199),Ve=r(74395),Ue=r(58442),Qe=r(56840);function We(e){const[t,r]=(0,a.useState)((()=>{const{defaultSearchSource:t,searchSources:r}=e,o=Qe.getValue("symboledit.exchangefilter","");return r.find((e=>e.value()===o))||t}));return[t,(0,a.useCallback)((e=>{var t;r(e),t=e,Qe.setValue("symboledit.exchangefilter",t.value())}),[])]}function Ke(e){const[t,r]=(0,a.useState)((()=>{if(1===e.types.length)return e.types[0].value;const t=Qe.getValue("symboledit.filter",(0,
m.getAllSymbolTypesValue)());return e.types.find((e=>e.value===t))?t:(0,m.getAllSymbolTypesValue)()}));return[t,(0,a.useCallback)((e=>{var t;r(e),t=e,Qe.setValue("symboledit.filter",t)}),[])]}var ze=r(36947),Ze=r(82708),He=r(88145),qe=r(76460),$e=r(26664);const je=(0,m.getAvailableSearchSources)(),Ge=(0,m.getDefaultSearchSource)(),Ye=u.enabled("uppercase_instrument_names");function Xe(e){var t;const{onClose:o,initialMode:n,defaultValue:l="",showSpreadActions:s,hideMarkedListFlag:i,selectSearchOnInit:d=!0,onSearchComplete:p,dialogTitle:h=c.t(null,void 0,r(51165)),placeholder:g,fullscreen:f,initialScreen:x,wrapper:w,dialog:k,contentItem:C,footer:I,searchInput:L,emptyState:_,autofocus:N,dialogWidth:B,onKeyDown:M,searchSourcesScreen:D,customSearchSymbols:O,isDisableFiltering:F,disableRecents:P,shouldReturnFocus:A,onSymbolFiltersParamsChange:V,onEmptyResults:U}=e,Q=(0,a.useMemo)((()=>F?[]:e.symbolTypes?e.symbolTypes:(0,m.getAvailableSymbolTypes)()),[]),W=void 0!==e.input,K=F?[]:je,[z,Z]=(0,a.useState)(n),H=(0,a.useRef)(l),[q,j]=We({searchSources:K,defaultSearchSource:Ge}),[G,Y]=[],[X,J]=Ke({types:Q}),[re,oe]=[{},()=>{}],[le,ae]=(0,a.useState)(!1),[se,ie]=(0,a.useState)(-1),[ce,ue]=(0,a.useState)("noop"),de=m.isSeparateSymbolSearchTabs?TAB_SELECT_FILTER_MAP:void 0,me=m.isSeparateSymbolSearchTabs?(null==G?void 0:G[X])||Ge:q,pe=(0,a.useMemo)((()=>{if(!m.isSeparateSymbolSearchTabs)return K;return K.filter((e=>{const t=TAB_SOURCE_FILTER_MAP[X];if(!t)return!1;if(!X)return!0;const r=e.group();return r===ExchangeGroup.AllExchanges||r&&t.value.includes(r)}))}),[K,X]),[he,ge]=(0,a.useState)((()=>{const e=Boolean(q&&je.length>1&&!(0,m.exchangeSelectDisabled)(X)),t=null==de?void 0:de[X];return{canChangeExchange:e,tabSelectFilters:t,withFilters:Boolean(e||(null==t?void 0:t.length)),renderSymbolSearchList:[],token:H.current,symbolsRemaining:0,currentSymbolType:X,currentSelectedSearchSource:me,currentTabAvailableSearchSources:pe,symbolStartIndex:0}})),ve=(0,a.useCallback)((e=>{trackEvent("New SS",X,"Change sources"),null==Y||Y(X,e),ge((t=>({...t,currentSelectedSearchSource:e})))}),[X,ge]),fe=(0,a.useRef)(null!==(t=e.input)&&void 0!==t?t:null),[ye,Se]=(0,a.useState)(!1),be=(0,ze.useForceUpdate)(),[xe,we]=(0,a.useState)(new Set),{broker:ke=null,brokerId:Ce,unhideSymbolSearchGroups:Ee="",displayBrokerSymbol:Le=!1}={brokerId:void 0};(0,a.useLayoutEffect)((()=>{var e;!(null==fe?void 0:fe.current)||!W&&Boolean(null===(e=fe.current)||void 0===e?void 0:e.value)||(W||"compare"===z||(fe.current.value=H.current),!N||W&&"symbolSearch"!==z||fe.current.focus())}),[z]),(0,a.useEffect)((()=>{(null==fe?void 0:fe.current)&&d&&N&&fe.current.select()}),[]);const Re=(0,a.useMemo)((()=>he.renderSymbolSearchList.reduce(((e,t)=>{const r=tt(t),o=xe.has(r);return e.push(t),o&&t.contracts&&e.push(...t.contracts.map((e=>({...e,parent:t})))),e}),[])),[he.renderSymbolSearchList,xe]),_e=(0,a.useRef)(null);(0,a.useEffect)((()=>{var e;-1!==se&&(null===(e=_e.current)||void 0===e||e.scrollIntoView({block:"nearest"}))}),[se,_e]);const Te=y.includes(X),Ne=(0,
a.useMemo)((()=>Re.map(((e,t)=>{var r,o,n,l;if(ee(e)){const n=tt(e),l=e.contracts?xe.has(n):void 0,a=t===se,s=he.renderSymbolSearchList.findIndex((t=>t.symbol===e.symbol&&t.exchange===e.exchange))+1;return{key:t,numberInList:s,id:n,title:et(e,Le),description:e.description,isOffset:!1,onClick:at.bind(null,e,s),providerId:e.provider_id,source:e.source,source2:e.source2,country:null===(r=e.country)||void 0===r?void 0:r.toLocaleLowerCase(),type:e.type,exchangeName:null===e.exchange?void 0:e.exchange,exchangeTooltip:"",prefix:e.prefix||void 0,marketType:(0,Ve.marketType)(e.type,e.typespecs,!1),hideMarketType:Te,isEod:(null===(o=e.params)||void 0===o?void 0:o.includes("eod"))&&"economic"!==e.type,isYield:(0,He.isYield)(e),isExpanded:l,onExpandClick:e.contracts?st.bind(null,n):void 0,fullSymbolName:e.contracts?Ue.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):Ue.QualifiedSources.fromSymbolSearchResult(e),itemRef:a?_e:void 0,isSelected:t===se,hideMarkedListFlag:i,item:e,logoId:e.logoid,currencyLogoId:e["currency-logoid"],baseCurrencyLogoId:e["base-currency-logoid"],shortName:(0,Ze.safeShortName)(Ue.QualifiedSources.fromSymbolSearchResult(e)),currencyCode:e.currency_code,isPrimary:e.is_primary_listing}}{const{parent:r}=e,o=tt(r),a=t===se,s=he.renderSymbolSearchList.findIndex((e=>e.symbol===r.symbol&&e.exchange===r.exchange))+1;return{key:t,numberInList:s,id:o+e.symbol,dangerousTitleHTML:et(e,Le),dangerousDescriptionHTML:`${r.description}`+(e.description?` (${e.description})`:""),isOffset:!0,isEod:null===(n=e.params)||void 0===n?void 0:n.includes("eod"),isYield:(0,He.isYield)(e),onClick:it.bind(null,e.parent,e,s),providerId:r.provider_id,country:null===(l=r.country)||void 0===l?void 0:l.toLowerCase(),type:r.type,exchangeName:null===r.exchange?void 0:r.exchange,exchangeTooltip:"",marketType:(0,Ve.marketType)(r.type,e.typespecs,!1),hideMarketType:Te,fullSymbolName:Ue.QualifiedSources.fromSymbolSearchResult(e.parent,e),itemRef:a?_e:void 0,isSelected:a,hideMarkedListFlag:i,item:e}}}))),[he.renderSymbolSearchList,xe,z,se,M]),Be=(0,a.useMemo)((()=>function(e,t,r){const o=null==t?void 0:t[e],n=new Map(null==o?void 0:o.map((e=>[e.id,e.urlParam]))),l=r[e];let a;if(l){a={};for(const[e,t]of Object.entries(l)){const r=n.get(e);r&&(a[r]=t)}}return a}(X,de,re)),[X,de,re]),Me=(0,a.useMemo)((()=>he.renderSymbolSearchList.slice(0,20).map((e=>e.contracts?Ue.QualifiedSources.fromSymbolSearchResult(e,e.contracts[0]):Ue.QualifiedSources.fromSymbolSearchResult(e)))),[he.renderSymbolSearchList]);(0,a.useEffect)((()=>{var e,t,r;if(!V)return;const o=["resetFilter","resetTabFilter","empty"].includes(ce)?[]:Me,n={...Be,result_list:o};if(n.search_type||(n.search_type="bitcoin,crypto"===X?"crypto":X),!m.isSeparateSymbolSearchTabs)return n.exchange=null!==(e=null==me?void 0:me.getRequestCountryValue())&&void 0!==e?e:null,void V(n);if(X){const e=null!==(t=null==me?void 0:me.getRequestCountryValue())&&void 0!==t?t:null;e&&(n.country=e);const o=null!==(r=null==me?void 0:me.getRequestExchangeValue())&&void 0!==r?r:null;o&&(n.exchange=o)}V(n)
}),[X,Be,Me,me,ce]);const De=null!=k?k:ot,Oe=De!==ot&&!W,Fe=(e,t)=>{var r;return{mode:z,setMode:Z,selectedSearchSource:me,setSelectedSearchSource:m.isSeparateSymbolSearchTabs?ve:j,isAllSearchSourcesSelected:T.isAllSearchSourcesSelected,allSearchSourcesTitle:m.isSeparateSymbolSearchTabs?null===(r=TAB_SOURCE_FILTER_MAP[he.currentSymbolType])||void 0===r?void 0:r.allSearchSourcesTitle:void 0,selectedSymbolType:X,setSelectedSymbolType:J,selectedIndex:se,setSelectedIndex:ie,onClose:o,setSymbolSearchContent:ge,symbolSearchContent:he,searchRef:fe,cachedInputValue:H,searchSpreads:le,setSearchSpreads:ae,handleListWidth:ct,isSmallWidth:ye,feedItems:Ne,isMobile:e,showSpreadActions:s,selectSearchOnInit:d,isTablet:t,selectedItem:Re[se],forceUpdate:be,placeholder:g,initialScreen:x,toggleExpand:st,openedItems:xe,onSubmit:mt,onSearchComplete:p,footer:I,symbolTypes:Q,contentItem:C,searchInput:L,emptyState:_,autofocus:N,upperCaseEnabled:Ye,externalInput:W,handleKeyDown:Oe?void 0:dt,customSearchSymbols:O,searchSources:pe,filterDefinitions:de,selectedFilterValues:re,setSelectedFilterValues:oe,filterQueryParams:Be,symbolSearchState:ce,setSymbolSearchState:ue,onEmptyResults:void 0}},Qe=null!=D?D:$,Xe="exchange"===z,nt=Xe?{title:c.t(null,void 0,r(28628)),dataName:"exchanges-search",render:()=>a.createElement(Qe,{searchSources:he.currentTabAvailableSearchSources}),additionalHeaderElement:a.createElement(Ae.BackButton,{onClick:()=>Z("symbolSearch"),className:$e.backButton,size:"medium","aria-label":c.t(null,{context:"input"},r(41256)),preservePaddings:!0,flipIconOnRtl:(0,Ie.isRtl)()}),additionalElementPos:"before"}:{title:h,dataName:"symbol-search-items-dialog",render:()=>a.createElement(Pe,null),additionalElementPos:"after"},lt=null!=w?w:"div";return a.createElement(lt,null,a.createElement(S.MatchMediaMap,{rules:b.DialogBreakpoints},(({TabletSmall:e,TabletNormal:t})=>a.createElement(E.SymbolSearchItemsDialogContext.Provider,{value:Fe(e,t)},a.createElement(De,{...nt,shouldReturnFocus:A,fullScreen:f,onClose:o,onClickOutside:o,onKeyDown:Oe?void 0:dt,isOpened:!0})))));function at(e,t,r){if(e.contracts)return e.contracts.length?void it(e,e.contracts[0],t,r):void st(tt(e));it(e,void 0,t,r)}function st(e){const t=new Set(xe);t.has(e)?t.delete(e):t.add(e),we(t)}function it(e,t,r,n){const l=t||e,{exchange:a}=e;if(u.enabled("show_spread_operators")){const e={name:l.symbol,exchange:a,prefix:l.prefix,fullName:l.full_name};if(le)return ut(e),void be();if(fe.current&&fe.current.value.includes(","))return void ut(e)}pt([{resolved:!0,symbol:Ue.QualifiedSources.fromSymbolSearchResult(e,t),result:l}],r,n),o()}function ct(e){Se("fixed"===B||e<=640)}function ut(e){if(!fe.current)return;const[t,r]=v(fe.current,e,Ye);fe.current.value=t,fe.current.setSelectionRange(r,r),fe.current.focus()}function dt(e){if(e.target&&e.target!==fe.current)return;const t=(0,ne.hashFromEvent)(e);switch(t){case 13:e.preventDefault(),mt(!0);break;case 27:if(e.preventDefault(),Xe)return void Z("symbolSearch");o()}switch((0,R.mapKeyCodeToDirection)(t)){case"blockPrev":
if(e.preventDefault(),0===se||"good"!==ce)return;if(-1===se)return void ie(0);ie(se-1);break;case"blockNext":if(e.preventDefault(),se===Ne.length-1||"good"!==ce)return;ie(se+1);break;case"inlinePrev":{if(-1===se)return;const t=Ne[se],{id:r,isOffset:o,onExpandClick:n}=t;if(!o&&r&&xe.has(r)&&Boolean(n)&&!Boolean(M)&&(e.preventDefault(),st(r)),n)return void(null==M||M(e,!0));break}case"inlineNext":{if(-1===se)return;const t=Ne[se],{id:r,isOffset:o,onExpandClick:n}=t;if(o||!r||xe.has(r)||!Boolean(n)||Boolean(M)||(e.preventDefault(),st(r)),n)return void(null==M||M(e,!0));break}}null==M||M(e)}function mt(e){if(!fe.current)return;let t=fe.current.value;if(u.enabled("show_spread_operators")&&le&&t){const r=Ne[se];if(r&&void 0!==r.isExpanded&&(r.onClick(),t=fe.current.value),t.includes(",")){return pt(rt(t).map(Je),null),void(e&&o())}return pt([{symbol:Ye?t.toUpperCase():t,resolved:!1}],null),void(e&&o())}if(t.includes(","))return pt(rt(t).map(Je),null),void(e&&o());if(-1!==se){Ne[se].onClick()}else if(u.enabled("allow_arbitrary_symbol_search_input")){const r=Ye?t.toUpperCase():t;if(r&&""!==r.trim()){const e=rt(r);if(void 0!==Ce&&-1===r.indexOf(":"))(function(e){let t=!1;return Promise.all(e.map((e=>-1!==e.indexOf(":")||t?Promise.resolve({symbol:e,resolved:!1}):(t=!0,async function(e){var t;null===(t=await(null==ke?void 0:ke.accountMetainfo()))||void 0===t||t.prefix;const r=void 0,o=await te({strictMatch:!0,serverHighlight:!1,text:e,lang:window.language||"",brokerId:Ce,onlyTradable:!0,unhideSymbolSearchGroups:Ee,exchange:r});if(0!==o.symbols.length){const e=o.symbols[0],{contracts:t}=e,r=t&&t.length>0?t[0]:void 0,n=e.prefix||e.exchange,l=r?r.symbol:e.symbol;if(n&&l)return{symbol:Ue.QualifiedSources.fromSymbolSearchResult(e,r),resolved:!0,result:e}}return{symbol:e,resolved:!1}}(e)))))})(e).then((e=>pt(e,null)));else{pt(e.map(Je),null)}}e&&o()}else if("empty"!==ce&&Ne.length>0){Ne[0].onClick()}}async function pt(e,t,r){var o;const[{result:n,symbol:l,resolved:a}]=e,s=null===(o=fe.current)||void 0===o?void 0:o.value,i=!r||(0,qe.isKeyboardClick)(r);let c=le;void 0!==n&&ee(n)&&(c="spread"===n.type),p(e,{symbolType:X,isKeyboardEvent:i,numberInList:t,inputValue:s,isSpread:c})}}function Je(e){return{symbol:Ye?e.toUpperCase():e,resolved:!1}}function et(e,t){const{broker_symbol:r,symbol:o,description:n}=e;return`${"spread"===e.type?n:o}${t&&r?` (${r})`:""}`}function tt(e){return e.symbol+e.exchange+e.description}function rt(e){return e.split(",").map((e=>e.trim())).filter((e=>""!==e))}function ot(e){const{isMobile:t,isTablet:r}=(0,D.useEnsuredContext)(E.SymbolSearchItemsDialogContext);return a.createElement(x.AdaptivePopupDialog,{...e,className:i()($e.dialog,!t&&(r?$e.tabletDialog:$e.desktopDialog)),backdrop:!0,draggable:!1})}},81319:(e,t,r)=>{"use strict";r.d(t,{createGroupColumns:()=>p,exchangeSelectDisabled:()=>m,getAllSymbolTypesValue:()=>d,getAvailableSearchSources:()=>c,getAvailableSymbolTypes:()=>u,getDefaultSearchSource:()=>i,getSymbolFullName:()=>s,isSeparateSymbolSearchTabs:()=>h});var o=r(11542),n=r(20882);class l{
constructor(e){this._exchange=e}value(){return this._exchange.value}name(){return(0,n.isAllSearchSourcesSelected)(this)?o.t(null,void 0,r(34040)):this._exchange.name}description(){return this._exchange.desc}country(){return this._exchange.country}providerId(){return this._exchange.providerId}group(){return this._exchange.group}includes(e){return function(e,t){const r=t.toLowerCase(),{name:o,desc:n,searchTerms:l}=e;return o.toLowerCase().includes(r)||n.toLowerCase().includes(r)||void 0!==l&&l.some((e=>e.toLowerCase().includes(r)))}(this._exchange,e)}getRequestExchangeValue(){return this._exchange.value}getRequestCountryValue(){}}var a=r(3685);function s(e){if(e.fullName)return e.fullName;let t;return t=e.prefix||e.exchange?(e.prefix||e.exchange)+":"+e.name:e.name,t.replace(/<\/?[^>]+(>|$)/g,"")}function i(){const e=c();return e.find(n.isAllSearchSourcesSelected)||e[0]||null}function c(){return(0,n.createSearchSources)(l,(0,a.getExchanges)())}function u(){return window.ChartApiInstance.supportedSymbolsTypes()}function d(){return""}function m(e){return!!h&&!TAB_SOURCE_FILTER_MAP[e]}function p(e,t=2){if(0===e.length)return[];if(1===t)return[e];const r=Math.floor(e.length/2)+e.length%2;return[e.slice(0,r),e.slice(r)].filter((e=>e.length>0))}const h=!1},82708:(e,t,r)=>{"use strict";r.d(t,{safeShortName:()=>n});var o=r(13665);function n(e){try{return(0,o.shortName)(e)}catch(t){return e}}},44254:(e,t,r)=>{"use strict";r.d(t,{factorOutBraces:()=>h,getTokenAtPos:()=>p,isBinaryOperator:()=>d,isSpread:()=>m,parseToken:()=>v,shortName:()=>g,symbolTokenEscapeRe:()=>s,tokenize:()=>u});var o,n=r(56570),l=r(18429);!function(e){e.Symbol="symbol",e.IncompleteSymbol="incompleteSymbol",e.Number="number",e.IncompleteNumber="incompleteNumber",e.SeparatorPrefix="separatorPrefix",e.OpenBrace="openBrace",e.CloseBrace="closeBrace",e.Plus="plus",e.Minus="minus",e.Multiply="multiply",e.Divide="divide",e.Power="power",e.Whitespace="whitespace",e.Unparsed="unparsed"}(o||(o={}));const a=n.enabled("charting_library_base")?/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF^])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!:.&])*|'.+?'/:/(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0370-\u1FFF_\u2E80-\uFFFF])(?:[^-+\/*^\s]'|[a-zA-Z0-9_\u0020\u0370-\u1FFF_\u2E80-\uFFFF_!|:.&])*|'.+?'/,s=/[+\-/*]/,i={number:/\d+(?:\.\d*|(?![a-zA-Z0-9_!:.&]))|\.\d+/,incompleteNumber:/\./,symbol:a,incompleteSymbol:/'[^']*/,separatorPrefix:l.SEPARATOR_PREFIX,openBrace:"(",closeBrace:")",plus:"+",minus:"-",multiply:"*",divide:"/",power:"^",whitespace:/[\0-\x20\s]+/,unparsed:null},c=new RegExp(Object.values(i).map((e=>{return null===e?"":`(${"string"==typeof e?(t=e,t.replace(/[\^$()[\]{}*+?|\\]/g,"\\$&")):e.source})`;var t})).filter((e=>""!==e)).concat(".").join("|"),"g");function u(e){if(!e)return[];const t=[],r=Object.keys(i);let o;for(;o=c.exec(e);){let e=!1;for(let n=r.length;n--;)if(o[n+1]){r[n]&&t.push({value:o[n+1],type:r[n],precedence:0,offset:o.index}),e=!0;break}e||t.push({value:o[0],type:"unparsed",precedence:0,offset:o.index})}return t}function d(e){
return"plus"===e||"minus"===e||"multiply"===e||"divide"===e||"power"===e}function m(e){return e.length>1&&e.some((e=>d(e.type)))}function p(e,t){for(let r=0;r<e.length;r++){const o=e[r],n="symbol"===o.type||"incompleteSymbol"===o.type||"number"===o.type;if(o.offset<=t&&t<=o.offset+o.value.length&&n)return o}return null}function h(e){e=function(e){const t=[];for(const r of e)"whitespace"!==r.type&&t.push(r);return t}(e);const t=[],r=[];let o;for(let n=0;n<e.length;n++){const l=e[n];switch(l.type){case"plus":case"minus":case"multiply":case"divide":case"power":r.length&&r[r.length-1].minPrecedence>l.precedence&&(r[r.length-1].minPrecedence=l.precedence);break;case"openBrace":o={minPrecedence:1/0,openBraceIndex:n},r.push(o);break;case"closeBrace":{if(o=r.pop(),!o)break;const l=e[o.openBraceIndex-1],a=e[n+1],s=l&&("plus"===l.type||"multiply"===l.type);(!d(null==a?void 0:a.type)||(null==a?void 0:a.precedence)<=o.minPrecedence)&&(!d(null==l?void 0:l.type)||(null==l?void 0:l.precedence)<(null==o?void 0:o.minPrecedence)||(null==l?void 0:l.precedence)===(null==o?void 0:o.minPrecedence)&&s)&&(t.unshift(o.openBraceIndex),t.push(n),r.length&&r[r.length-1].minPrecedence>o.minPrecedence&&(r[r.length-1].minPrecedence=o.minPrecedence))}}}for(let r=t.length;r--;)e.splice(t[r],1);return e}function g(e){return h(u(e)).reduce(((e,t)=>{if("symbol"!==t.type)return e+t.value;const[,r]=v(t);return r?e+r:e}),"")}function v(e){const t=/^'?(?:([A-Z0-9_]+):)?(.*?)'?$/i.exec(e.value);return null===t?[void 0,void 0]:[t[1],t[2]]}},618:(e,t,r)=>{"use strict";r.d(t,{removeUsdFromCryptoPairLogos:()=>a,resolveLogoUrls:()=>l});var o=r(36279);const n=(0,o.getLogoUrlResolver)();function l(e,t=o.LogoSize.Medium){const r=e.logoid,l=e["base-currency-logoid"],a=e["currency-logoid"],s=r&&n.getSymbolLogoUrl(r,t);if(s)return[s];const i=l&&n.getSymbolLogoUrl(l,t),c=a&&n.getSymbolLogoUrl(a,t);return i&&c?[i,c]:i?[i]:c?[c]:[]}function a(e){return 2!==e.length?e:function(e){return e.some((e=>s(e)))}(e)&&!function(e){return e.some((e=>e.includes("country")&&!s(e)))}(e)?e.filter((e=>!s(e))):e}function s(e){return!1}},39330:(e,t,r)=>{"use strict";r.d(t,{getBlockStyleClasses:()=>a,getLogoStyleClasses:()=>s});var o=r(97754),n=r(44576),l=r.n(n);function a(e,t){return o(l()["tv-circle-logo-pair"],l()[`tv-circle-logo-pair--${e}`],t)}function s(e,t=!0){return o(l()["tv-circle-logo-pair__logo"],l()[`tv-circle-logo-pair__logo--${e}`],!t&&l()["tv-circle-logo-pair__logo-empty"])}},58492:(e,t,r)=>{"use strict";r.d(t,{getStyleClasses:()=>o.getStyleClasses});var o=r(53885)},19785:(e,t,r)=>{"use strict";r.d(t,{createRegExpList:()=>a,getHighlightedChars:()=>s,rankedSearch:()=>l});var o,n=r(37265);function l(e){const{data:t,rules:r,queryString:o,isPreventedFromFiltering:l,primaryKey:a,secondaryKey:s=a,optionalPrimaryKey:i,tertiaryKey:c}=e;return t.map((e=>{const t=i&&e[i]?e[i]:e[a],l=e[s],u=c&&e[c];let d,m=0;return r.forEach((e=>{var r,a,s,i,c;const{re:p,fullMatch:h}=e;if(p.lastIndex=0,(0,n.isString)(t)&&t&&t.toLowerCase()===o.toLowerCase())return m=4,
void(d=null===(r=t.match(h))||void 0===r?void 0:r.index);if((0,n.isString)(t)&&h.test(t))return m=3,void(d=null===(a=t.match(h))||void 0===a?void 0:a.index);if((0,n.isString)(l)&&h.test(l))return m=2,void(d=null===(s=l.match(h))||void 0===s?void 0:s.index);if((0,n.isString)(l)&&p.test(l))return m=2,void(d=null===(i=l.match(p))||void 0===i?void 0:i.index);if(Array.isArray(u))for(const e of u)if(h.test(e))return m=1,void(d=null===(c=e.match(h))||void 0===c?void 0:c.index)})),{matchPriority:m,matchIndex:d,item:e}})).filter((e=>l||e.matchPriority)).sort(((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0})).map((({item:e})=>e))}function a(e,t){const r=[],o=e.toLowerCase(),n=e.split("").map(((e,t)=>`(${0!==t?`[/\\s-]${i(e)}`:i(e)})`)).join("(.*?)")+"(.*)";return r.push({fullMatch:new RegExp(`(${i(e)})`,"i"),re:new RegExp(`^${n}`,"i"),reserveRe:new RegExp(n,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(o)&&r.push({fullMatch:t[o],re:t[o],fuzzyHighlight:!1}),r}function s(e,t,r){const o=[];return e&&r?(r.forEach((e=>{const{fullMatch:r,re:n,reserveRe:l}=e;r.lastIndex=0,n.lastIndex=0;const a=r.exec(t),s=a||n.exec(t)||l&&l.exec(t);if(e.fuzzyHighlight=!a,s)if(e.fuzzyHighlight){let e=s.index;for(let t=1;t<s.length;t++){const r=s[t],n=s[t].length;if(t%2){const t=r.startsWith(" ")||r.startsWith("/")||r.startsWith("-");o[t?e+1:e]=!0}e+=n}}else for(let e=0;e<s[0].length;e++)o[s.index+e]=!0})),o):o}function i(e){return e.replace(/[!-/[-^{-}?]/g,"\\$&")}!function(e){e[e.Low=0]="Low",e[e.MediumLow=1]="MediumLow",e[e.Medium=2]="Medium",e[e.High=3]="High",e[e.Highest=4]="Highest"}(o||(o={}))},24637:(e,t,r)=>{"use strict";r.d(t,{HighlightedText:()=>s});var o=r(50959),n=r(97754),l=r(19785),a=r(32248);function s(e){const{queryString:t,rules:r,text:s,className:i}=e,c=(0,o.useMemo)((()=>(0,l.getHighlightedChars)(t,s,r)),[t,r,s]);return o.createElement(o.Fragment,null,c.length?s.split("").map(((e,t)=>o.createElement(o.Fragment,{key:t},c[t]?o.createElement("span",{className:n(a.highlighted,i)},e):o.createElement("span",null,e)))):s)}},78036:(e,t,r)=>{"use strict";r.d(t,{useEnsuredContext:()=>l});var o=r(50959),n=r(50151);function l(e){return(0,n.ensureNotNull)((0,o.useContext)(e))}},29006:(e,t,r)=>{"use strict";r.d(t,{useResizeObserver:()=>o.useResizeObserver});var o=r(67842)},84877:(e,t,r)=>{"use strict";r.d(t,{MatchMediaMap:()=>a});var o=r(50959),n=r(66783),l=r.n(n);class a extends o.Component{constructor(e){super(e),this._handleMediaChange=()=>{const e=i(this.state.queries,((e,t)=>t.matches));let t=!1;for(const r in e)if(e.hasOwnProperty(r)&&this.state.matches[r]!==e[r]){t=!0;break}t&&this.setState({matches:e})};const{rules:t}=this.props;this.state=s(t)}shouldComponentUpdate(e,t){return!l()(e,this.props)||(!l()(t.rules,this.state.rules)||!l()(t.matches,this.state.matches))}componentDidMount(){
this._migrate(null,this.state.queries)}componentDidUpdate(e,t){l()(e.rules,this.props.rules)||this._migrate(t.queries,this.state.queries)}componentWillUnmount(){this._migrate(this.state.queries,null)}render(){return this.props.children(this.state.matches)}static getDerivedStateFromProps(e,t){if(l()(e.rules,t.rules))return null;const{rules:r}=e;return s(r)}_migrate(e,t){null!==e&&i(e,((e,t)=>{t.removeEventListener("change",this._handleMediaChange)})),null!==t&&i(t,((e,t)=>{t.addEventListener("change",this._handleMediaChange)}))}}function s(e){const t=i(e,((e,t)=>window.matchMedia(t)));return{queries:t,matches:i(t,((e,t)=>t.matches)),rules:{...e}}}function i(e,t){const r={};for(const o in e)e.hasOwnProperty(o)&&(r[o]=t(o,e[o]));return r}},4237:(e,t,r)=>{"use strict";var o=r(32227);t.createRoot=o.createRoot,o.hydrateRoot},74395:(e,t,r)=>{"use strict";r.d(t,{VISIBLE_TYPESPECS:()=>a,marketType:()=>s});var o=r(11542);const n=new Map([["cfd",o.t(null,void 0,r(79599))],["dr",o.t(null,void 0,r(47268))],["index",o.t(null,void 0,r(61833))],["forex",o.t(null,void 0,r(17770))],["right",o.t(null,{context:"symbol_type"},r(53174))],["bond",o.t(null,void 0,r(42358))],["bitcoin",o.t(null,void 0,r(46128))],["crypto",o.t(null,void 0,r(46128))],["economic",o.t(null,void 0,r(54094))],["indices",o.t(null,void 0,r(90250))],["futures",o.t(null,void 0,r(4723))],["stock",o.t(null,void 0,r(76752))],["commodity",o.t(null,void 0,r(70932))]]);r(21251);const l=new Map,a=new Set(["cfd","spreadbet","defi","yield","government","corporate","mutual","money","etf","unit","trust","reit","etn","convertible","closedend","crypto","oracle"]);function s(e,t=[],r=!0){const o=t.filter((e=>a.has(e))),s=`${e}_${o.sort().join("_")}`,i=l.get(s);if(void 0!==i)return i;const c=r?function(e){return n.get(e)||e}(e):e,u=Boolean(t.length)?[c,...o].join(" "):c;return l.set(s,u),u}},52019: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>'},95694:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M17 22.5 6.85 12.35a.5.5 0 0 1 0-.7L17 1.5"/></svg>'},49498: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" stroke-linecap="round" stroke-width="1.2" d="M12 16.5 4.85 9.35a.5.5 0 0 1 0-.7L12 1.5"/></svg>'},60176:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M9.5 12.5 3.9 7.37a.5.5 0 0 1 0-.74L9.5 1.5"/></svg>'},35369:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M8 10.5 3.85 6.35a.5.5 0 0 1 0-.7L8 1.5"/></svg>'},58478:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.2" d="M7 8.5 3.85 5.35a.5.5 0 0 1 0-.7L7 1.5"/></svg>'},73063:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M17 22.5 6.85 12.35a.5.5 0 0 1 0-.7L17 1.5"/></svg>'},14127: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" stroke-linecap="round" stroke-width="1.5" d="M12 16.5 4.85 9.35a.5.5 0 0 1 0-.7L12 1.5"/></svg>'},18073:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" width="14" height="14" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M9.5 12.5 3.9 7.37a.5.5 0 0 1 0-.74L9.5 1.5"/></svg>'},99243:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" width="12" height="12" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M8 10.5 3.85 6.35a.5.5 0 0 1 0-.7L8 1.5"/></svg>'},42576:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 8.5 3.85 5.35a.5.5 0 0 1 0-.7L7 1.5"/></svg>'},91540: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="M2.5 14.5c1.68-1.26 3.7-2 6.5-2s4.91.74 6.5 2m-13-11c1.68 1.26 3.7 2 6.5 2s4.91-.74 6.5-2"/><circle stroke="currentColor" cx="9" cy="9" r="8.5"/><path stroke="currentColor" d="M13.5 9c0 2.42-.55 4.58-1.4 6.12-.87 1.56-1.98 2.38-3.1 2.38s-2.23-.82-3.1-2.38c-.85-1.54-1.4-3.7-1.4-6.12s.55-4.58 1.4-6.12C6.77 1.32 7.88.5 9 .5s2.23.82 3.1 2.38c.85 1.54 1.4 3.7 1.4 6.12z"/></svg>'},66619:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#B2B5BE" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},67562:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120" width="120" height="120"><path fill="#131722" fill-rule="evenodd" d="M23 39a36 36 0 0 1 72 0v13.15l15.1 8.44 2.16 1.2-1.64 1.86-12.85 14.59 3.73 4.03L98.57 85 95 81.13V117H77v-12H67v9H50V95H40v22H23V81.28l-3.8 3.61-2.76-2.9 4.05-3.84-12.77-14.5-1.64-1.86 2.16-1.2L23 52.34V39Zm72 36.33 10.98-12.46L95 56.73v18.6ZM23 56.92v18.03L12.35 62.87 23 56.92ZM59 7a32 32 0 0 0-32 32v74h9V91h18v19h9v-9h18v12h10V39A32 32 0 0 0 59 7Zm-7 36a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm19 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/></svg>'},69859:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},486:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h9"/><circle fill="currentColor" cx="7" cy="3" r="1"/><circle fill="currentColor" cx="7" cy="10" r="1"/></svg>'},63861:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><g fill="none" fill-rule="evenodd" stroke="currentColor"><path stroke-linecap="square" stroke-linejoin="round" d="M3.5 10V2.5L1 5"/><path stroke-linecap="square" d="M1.5 10.5h4"/><path d="M8 12l3-11"/></g></svg>'},81574:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8"/></svg>'},32617:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 10l7-7M3 3l7 7"/></svg>'},35119:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8m-4-4v8"/></svg>'},69135:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 7l3.5-3.5L10 7"/></svg>'},54313: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="M18.5 12.5a6 6 0 1 1-12 0 6 6 0 0 1 12 0Zm-1.25 5.8a7.5 7.5 0 1 1 1.06-1.06l4.22 4.23.53.53L22 23.06l-.53-.53-4.22-4.22Z"/></svg>'}}]);